Class MicrosoftGraphOnenotePatchContentCommand
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOnenotePatchContentCommand
-
public final class MicrosoftGraphOnenotePatchContentCommand extends Object
onenotePatchContentCommand.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphOnenotePatchContentCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MicrosoftGraphOnenotePatchActionType
action()
Get the action property: onenotePatchActionType.Map<String,Object>
additionalProperties()
Get the additionalProperties property: onenotePatchContentCommand.String
content()
Get the content property: A string of well-formed HTML to add to the page, and any image or file binary data.MicrosoftGraphOnenotePatchInsertPosition
position()
Get the position property: onenotePatchInsertPosition.String
target()
Get the target property: The element to update.void
validate()
Validates the instance.MicrosoftGraphOnenotePatchContentCommand
withAction(MicrosoftGraphOnenotePatchActionType action)
Set the action property: onenotePatchActionType.MicrosoftGraphOnenotePatchContentCommand
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: onenotePatchContentCommand.MicrosoftGraphOnenotePatchContentCommand
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.MicrosoftGraphOnenotePatchContentCommand
withPosition(MicrosoftGraphOnenotePatchInsertPosition position)
Set the position property: onenotePatchInsertPosition.MicrosoftGraphOnenotePatchContentCommand
withTarget(String target)
Set the target property: The element to update.
-
-
-
Method Detail
-
action
public MicrosoftGraphOnenotePatchActionType 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
public String 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
public MicrosoftGraphOnenotePatchContentCommand 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. 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
public MicrosoftGraphOnenotePatchInsertPosition 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
public String 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
public MicrosoftGraphOnenotePatchContentCommand withTarget(String target)
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
public Map<String,Object> 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.
-
-