Class MicrosoftGraphOnenotePatchContentCommand

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOnenotePatchContentCommand

public final class MicrosoftGraphOnenotePatchContentCommand extends Object
onenotePatchContentCommand.
  • Constructor Details

    • MicrosoftGraphOnenotePatchContentCommand

      public MicrosoftGraphOnenotePatchContentCommand()
      Creates an instance of MicrosoftGraphOnenotePatchContentCommand class.
  • Method Details

    • action

      Get the action property: onenotePatchActionType.
      Returns:
      the action value.
    • withAction

      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

      Get the position property: onenotePatchInsertPosition.
      Returns:
      the position value.
    • withPosition

      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

      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.