Class OnenotePatchContentCommand

java.lang.Object
com.microsoft.graph.models.OnenotePatchContentCommand
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class OnenotePatchContentCommand extends Object implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Onenote Patch Content Command.
  • Field Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • action

      @SerializedName(value="action", alternate="Action") @Expose @Nullable public OnenotePatchActionType action
      The Action. The action to perform on the target element. The possible values are: replace, append, delete, insert, or prepend.
    • content

      @SerializedName(value="content", alternate="Content") @Expose @Nullable public String content
      The Content. A string of well-formed HTML to add to the page, and any image or file binary data. If the content contains binary data, the request must be sent using the multipart/form-data content type with a 'Commands' part.
    • position

      @SerializedName(value="position", alternate="Position") @Expose @Nullable public OnenotePatchInsertPosition position
      The Position. The location to add the supplied content, relative to the target element. The possible values are: after (default) or before.
    • target

      @SerializedName(value="target", alternate="Target") @Expose @Nullable public String target
      The Target. The element to update. Must be the #<data-id> or the generated <id> of the element, or the body or title keyword.
  • Constructor Details

    • OnenotePatchContentCommand

      public OnenotePatchContentCommand()
  • Method Details

    • additionalDataManager

      @Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()
      Specified by:
      additionalDataManager in interface com.microsoft.graph.serializer.IJsonBackedObject
    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to