MicrosoftGraphItemBody Class

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

Implements

public final class MicrosoftGraphItemBody
implements JsonSerializable<MicrosoftGraphItemBody>

itemBody.

Constructor Summary

Constructor Description
MicrosoftGraphItemBody()

Creates an instance of MicrosoftGraphItemBody class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: itemBody.

String content()

Get the content property: The content of the item.

MicrosoftGraphBodyType contentType()

Get the contentType property: bodyType.

static MicrosoftGraphItemBody fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphItemBody from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphItemBody withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: itemBody.

MicrosoftGraphItemBody withContent(String content)

Set the content property: The content of the item.

MicrosoftGraphItemBody withContentType(MicrosoftGraphBodyType contentType)

Set the contentType property: bodyType.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphItemBody

public MicrosoftGraphItemBody()

Creates an instance of MicrosoftGraphItemBody class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: itemBody.

Returns:

the additionalProperties value.

content

public String content()

Get the content property: The content of the item.

Returns:

the content value.

contentType

public MicrosoftGraphBodyType contentType()

Get the contentType property: bodyType.

Returns:

the contentType value.

fromJson

public static MicrosoftGraphItemBody fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphItemBody from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphItemBody 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 MicrosoftGraphItemBody.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphItemBody withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: itemBody.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphItemBody object itself.

withContent

public MicrosoftGraphItemBody withContent(String content)

Set the content property: The content of the item.

Parameters:

content - the content value to set.

Returns:

the MicrosoftGraphItemBody object itself.

withContentType

public MicrosoftGraphItemBody withContentType(MicrosoftGraphBodyType contentType)

Set the contentType property: bodyType.

Parameters:

contentType - the contentType value to set.

Returns:

the MicrosoftGraphItemBody object itself.

Applies to