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

MicrosoftGraphPublicErrorDetail Class

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

Implements

public final class MicrosoftGraphPublicErrorDetail
implements JsonSerializable<MicrosoftGraphPublicErrorDetail>

publicErrorDetail.

Constructor Summary

Constructor Description
MicrosoftGraphPublicErrorDetail()

Creates an instance of MicrosoftGraphPublicErrorDetail class.

Method Summary

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

Get the additionalProperties property: publicErrorDetail.

String code()

Get the code property: The code property.

static MicrosoftGraphPublicErrorDetail fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPublicErrorDetail from the JsonReader.

String message()

Get the message property: The message property.

String target()

Get the target property: The target property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphPublicErrorDetail withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: publicErrorDetail.

MicrosoftGraphPublicErrorDetail withCode(String code)

Set the code property: The code property.

MicrosoftGraphPublicErrorDetail withMessage(String message)

Set the message property: The message property.

MicrosoftGraphPublicErrorDetail withTarget(String target)

Set the target property: The target property.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPublicErrorDetail

public MicrosoftGraphPublicErrorDetail()

Creates an instance of MicrosoftGraphPublicErrorDetail class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: publicErrorDetail.

Returns:

the additionalProperties value.

code

public String code()

Get the code property: The code property.

Returns:

the code value.

fromJson

public static MicrosoftGraphPublicErrorDetail fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPublicErrorDetail from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: The message property.

Returns:

the message value.

target

public String target()

Get the target property: The target property.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphPublicErrorDetail withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: publicErrorDetail.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPublicErrorDetail object itself.

withCode

public MicrosoftGraphPublicErrorDetail withCode(String code)

Set the code property: The code property.

Parameters:

code - the code value to set.

Returns:

the MicrosoftGraphPublicErrorDetail object itself.

withMessage

public MicrosoftGraphPublicErrorDetail withMessage(String message)

Set the message property: The message property.

Parameters:

message - the message value to set.

Returns:

the MicrosoftGraphPublicErrorDetail object itself.

withTarget

public MicrosoftGraphPublicErrorDetail withTarget(String target)

Set the target property: The target property.

Parameters:

target - the target value to set.

Returns:

the MicrosoftGraphPublicErrorDetail object itself.

Applies to