ManagedClusterPodIdentityProvisioningErrorBody Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProvisioningErrorBody

Implements

public final class ManagedClusterPodIdentityProvisioningErrorBody
implements JsonSerializable<ManagedClusterPodIdentityProvisioningErrorBody>

An error response from the pod identity provisioning.

Constructor Summary

Constructor Description
ManagedClusterPodIdentityProvisioningErrorBody()

Creates an instance of ManagedClusterPodIdentityProvisioningErrorBody class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: An identifier for the error.

List<ManagedClusterPodIdentityProvisioningErrorBody> details()

Get the details property: A list of additional details about the error.

static ManagedClusterPodIdentityProvisioningErrorBody fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterPodIdentityProvisioningErrorBody from the JsonReader.

String message()

Get the message property: A message describing the error, intended to be suitable for display in a user interface.

String target()

Get the target property: The target of the particular error.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterPodIdentityProvisioningErrorBody withCode(String code)

Set the code property: An identifier for the error.

ManagedClusterPodIdentityProvisioningErrorBody withDetails(List<ManagedClusterPodIdentityProvisioningErrorBody> details)

Set the details property: A list of additional details about the error.

ManagedClusterPodIdentityProvisioningErrorBody withMessage(String message)

Set the message property: A message describing the error, intended to be suitable for display in a user interface.

ManagedClusterPodIdentityProvisioningErrorBody withTarget(String target)

Set the target property: The target of the particular error.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterPodIdentityProvisioningErrorBody

public ManagedClusterPodIdentityProvisioningErrorBody()

Creates an instance of ManagedClusterPodIdentityProvisioningErrorBody class.

Method Details

code

public String code()

Get the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

Returns:

the code value.

details

public List details()

Get the details property: A list of additional details about the error.

Returns:

the details value.

fromJson

public static ManagedClusterPodIdentityProvisioningErrorBody fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterPodIdentityProvisioningErrorBody from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: A message describing the error, intended to be suitable for display in a user interface.

Returns:

the message value.

target

public String target()

Get the target property: The target of the particular error. For example, the name of the property in error.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCode

public ManagedClusterPodIdentityProvisioningErrorBody withCode(String code)

Set the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

Parameters:

code - the code value to set.

Returns:

the ManagedClusterPodIdentityProvisioningErrorBody object itself.

withDetails

public ManagedClusterPodIdentityProvisioningErrorBody withDetails(List details)

Set the details property: A list of additional details about the error.

Parameters:

details - the details value to set.

Returns:

the ManagedClusterPodIdentityProvisioningErrorBody object itself.

withMessage

public ManagedClusterPodIdentityProvisioningErrorBody withMessage(String message)

Set the message property: A message describing the error, intended to be suitable for display in a user interface.

Parameters:

message - the message value to set.

Returns:

the ManagedClusterPodIdentityProvisioningErrorBody object itself.

withTarget

public ManagedClusterPodIdentityProvisioningErrorBody withTarget(String target)

Set the target property: The target of the particular error. For example, the name of the property in error.

Parameters:

target - the target value to set.

Returns:

the ManagedClusterPodIdentityProvisioningErrorBody object itself.

Applies to

Azure SDK for Java

Latest