Package com.microsoft.graph.models
Class OnenotePatchContentCommand
java.lang.Object
com.microsoft.graph.models.OnenotePatchContentCommand
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class OnenotePatchContentCommand
extends Object
implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.microsoft.kiota.store.BackingStoreStores model information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OnenotePatchContentCommandcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the action property value.Gets the AdditionalData property value.com.microsoft.kiota.store.BackingStoreGets the backingStore property value.Gets the content property value.The deserialization information for the current modelGets the @odata.type property value.Gets the position property value.Gets the target property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAction(OnenotePatchActionType value) Sets the action property value.voidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidsetBackingStore(com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value.voidsetContent(String value) Sets the content property value.voidsetOdataType(String value) Sets the @odata.type property value.voidSets the position property value.voidSets the target property value.
-
Field Details
-
backingStore
@Nonnull protected com.microsoft.kiota.store.BackingStore backingStoreStores model information.
-
-
Constructor Details
-
OnenotePatchContentCommand
public OnenotePatchContentCommand()Instantiates a newOnenotePatchContentCommandand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static OnenotePatchContentCommand createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
OnenotePatchContentCommand
-
getAction
Gets the action property value. The action property- Returns:
- a
OnenotePatchActionType
-
getAdditionalData
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getBackingStore
@Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()Gets the backingStore property value. Stores model information.- Specified by:
getBackingStorein interfacecom.microsoft.kiota.store.BackedModel- Returns:
- a
BackingStore
-
getContent
Gets the content property value. 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.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model -
getOdataType
Gets the @odata.type property value. The OdataType property- Returns:
- a
String
-
getPosition
Gets the position property value. The location to add the supplied content, relative to the target element. The possible values are: after (default) or before.- Returns:
- a
OnenotePatchInsertPosition
-
getTarget
Gets the target property value. The element to update. Must be the #<data-id> or the generated <id> of the element, or the body or title keyword.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAction
Sets the action property value. The action property- Parameters:
value- Value to set for the action property.
-
setAdditionalData
Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.- Parameters:
value- Value to set for the AdditionalData property.
-
setBackingStore
public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value. Stores model information.- Parameters:
value- Value to set for the backingStore property.
-
setContent
Sets the content property value. 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.- Parameters:
value- Value to set for the content property.
-
setOdataType
Sets the @odata.type property value. The OdataType property- Parameters:
value- Value to set for the @odata.type property.
-
setPosition
Sets the position property value. The location to add the supplied content, relative to the target element. The possible values are: after (default) or before.- Parameters:
value- Value to set for the position property.
-
setTarget
Sets the target property value. The element to update. Must be the #<data-id> or the generated <id> of the element, or the body or title keyword.- Parameters:
value- Value to set for the target property.
-