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

MicrosoftGraphKeyValue Class

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

Implements

public final class MicrosoftGraphKeyValue
implements JsonSerializable<MicrosoftGraphKeyValue>

keyValue.

Constructor Summary

Constructor Description
MicrosoftGraphKeyValue()

Creates an instance of MicrosoftGraphKeyValue class.

Method Summary

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

Get the additionalProperties property: keyValue.

static MicrosoftGraphKeyValue fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphKeyValue from the JsonReader.

String key()

Get the key property: Key for the key-value pair.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Value for the key-value pair.

MicrosoftGraphKeyValue withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: keyValue.

MicrosoftGraphKeyValue withKey(String key)

Set the key property: Key for the key-value pair.

MicrosoftGraphKeyValue withValue(String value)

Set the value property: Value for the key-value pair.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphKeyValue

public MicrosoftGraphKeyValue()

Creates an instance of MicrosoftGraphKeyValue class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: keyValue.

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphKeyValue fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphKeyValue from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

key

public String key()

Get the key property: Key for the key-value pair.

Returns:

the key value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Value for the key-value pair.

Returns:

the value value.

withAdditionalProperties

public MicrosoftGraphKeyValue withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: keyValue.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphKeyValue object itself.

withKey

public MicrosoftGraphKeyValue withKey(String key)

Set the key property: Key for the key-value pair.

Parameters:

key - the key value to set.

Returns:

the MicrosoftGraphKeyValue object itself.

withValue

public MicrosoftGraphKeyValue withValue(String value)

Set the value property: Value for the key-value pair.

Parameters:

value - the value value to set.

Returns:

the MicrosoftGraphKeyValue object itself.

Applies to