你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphOnenotePatchContentCommand Class

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

Implements

public final class MicrosoftGraphOnenotePatchContentCommand
implements JsonSerializable<MicrosoftGraphOnenotePatchContentCommand>

onenotePatchContentCommand.

Constructor Summary

Constructor Description
MicrosoftGraphOnenotePatchContentCommand()

Creates an instance of MicrosoftGraphOnenotePatchContentCommand class.

Method Summary

Modifier and Type Method and 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.

static MicrosoftGraphOnenotePatchContentCommand fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOnenotePatchContentCommand from the JsonReader.

MicrosoftGraphOnenotePatchInsertPosition position()

Get the position property: onenotePatchInsertPosition.

String target()

Get the target property: The element to update.

JsonWriter toJson(JsonWriter jsonWriter)
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.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphOnenotePatchContentCommand

public MicrosoftGraphOnenotePatchContentCommand()

Creates an instance of MicrosoftGraphOnenotePatchContentCommand class.

Method Details

action

public MicrosoftGraphOnenotePatchActionType action()

Get the action property: onenotePatchActionType.

Returns:

the action value.

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: onenotePatchContentCommand.

Returns:

the additionalProperties value.

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.

fromJson

public static MicrosoftGraphOnenotePatchContentCommand fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOnenotePatchContentCommand from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphOnenotePatchContentCommand if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphOnenotePatchContentCommand.

position

public MicrosoftGraphOnenotePatchInsertPosition position()

Get the position property: onenotePatchInsertPosition.

Returns:

the position value.

target

public String target()

Get the target property: The element to update. Must be the # or the generated of the element, or the body or title keyword.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAction

public MicrosoftGraphOnenotePatchContentCommand withAction(MicrosoftGraphOnenotePatchActionType action)

Set the action property: onenotePatchActionType.

Parameters:

action - the action value to set.

Returns:

the MicrosoftGraphOnenotePatchContentCommand object itself.

withAdditionalProperties

public MicrosoftGraphOnenotePatchContentCommand withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: onenotePatchContentCommand.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphOnenotePatchContentCommand object itself.

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.

withPosition

public MicrosoftGraphOnenotePatchContentCommand withPosition(MicrosoftGraphOnenotePatchInsertPosition position)

Set the position property: onenotePatchInsertPosition.

Parameters:

position - the position value to set.

Returns:

the MicrosoftGraphOnenotePatchContentCommand object itself.

withTarget

public MicrosoftGraphOnenotePatchContentCommand withTarget(String target)

Set the target property: The element to update. Must be the # or the generated of the element, or the body or title keyword.

Parameters:

target - the target value to set.

Returns:

the MicrosoftGraphOnenotePatchContentCommand object itself.

Applies to