Class MicrosoftGraphOnenotePatchContentCommand
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOnenotePatchContentCommand
onenotePatchContentCommand.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphOnenotePatchContentCommand class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: onenotePatchActionType.Get the additionalProperties property: onenotePatchContentCommand.content()Get the content property: A string of well-formed HTML to add to the page, and any image or file binary data.position()Get the position property: onenotePatchInsertPosition.target()Get the target property: The element to update.voidvalidate()Validates the instance.Set the action property: onenotePatchActionType.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: onenotePatchContentCommand.withContent(String content) Set the content property: A string of well-formed HTML to add to the page, and any image or file binary data.Set the position property: onenotePatchInsertPosition.withTarget(String target) Set the target property: The element to update.
-
Constructor Details
-
MicrosoftGraphOnenotePatchContentCommand
public MicrosoftGraphOnenotePatchContentCommand()Creates an instance of MicrosoftGraphOnenotePatchContentCommand class.
-
-
Method Details
-
action
Get the action property: onenotePatchActionType.- Returns:
- the action value.
-
withAction
public MicrosoftGraphOnenotePatchContentCommand withAction(MicrosoftGraphOnenotePatchActionType action) Set the action property: onenotePatchActionType.- Parameters:
action- the action value to set.- Returns:
- the MicrosoftGraphOnenotePatchContentCommand object itself.
-
content
Get the content property: 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:
- the content value.
-
withContent
Set the content property: 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:
content- the content value to set.- Returns:
- the MicrosoftGraphOnenotePatchContentCommand object itself.
-
position
Get the position property: onenotePatchInsertPosition.- Returns:
- the position value.
-
withPosition
public MicrosoftGraphOnenotePatchContentCommand withPosition(MicrosoftGraphOnenotePatchInsertPosition position) Set the position property: onenotePatchInsertPosition.- Parameters:
position- the position value to set.- Returns:
- the MicrosoftGraphOnenotePatchContentCommand object itself.
-
target
Get the target property: The element to update. Must be the #<data-id> or the generated <id> of the element, or the body or title keyword.- Returns:
- the target value.
-
withTarget
Set the target property: The element to update. Must be the #<data-id> or the generated <id> of the element, or the body or title keyword.- Parameters:
target- the target value to set.- Returns:
- the MicrosoftGraphOnenotePatchContentCommand object itself.
-
additionalProperties
Get the additionalProperties property: onenotePatchContentCommand.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphOnenotePatchContentCommand withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: onenotePatchContentCommand.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphOnenotePatchContentCommand object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-