com.microsoft.graph.models.OnenotePatchContentCommand Maven / Gradle / Ivy
// Template Source: BaseEntity.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.EnumSet;
import com.microsoft.graph.models.OnenotePatchActionType;
import com.microsoft.graph.models.OnenotePatchInsertPosition;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Onenote Patch Content Command.
*/
public class OnenotePatchContentCommand implements IJsonBackedObject {
/** the OData type of the object as returned by the service */
@SerializedName("@odata.type")
@Expose
@Nullable
public String oDataType;
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
@Override
@Nonnull
public final AdditionalDataManager additionalDataManager() {
return additionalDataManager;
}
/**
* The Action.
* The action to perform on the target element. The possible values are: replace, append, delete, insert, or prepend.
*/
@SerializedName(value = "action", alternate = {"Action"})
@Expose
@Nullable
public OnenotePatchActionType action;
/**
* 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.
*/
@SerializedName(value = "content", alternate = {"Content"})
@Expose
@Nullable
public String content;
/**
* The Position.
* The location to add the supplied content, relative to the target element. The possible values are: after (default) or before.
*/
@SerializedName(value = "position", alternate = {"Position"})
@Expose
@Nullable
public OnenotePatchInsertPosition position;
/**
* The Target.
* The element to update. Must be the #<data-id> or the generated <id> of the element, or the body or title keyword.
*/
@SerializedName(value = "target", alternate = {"Target"})
@Expose
@Nullable
public String target;
/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
}
}