Class ManagedClusterPodIdentityProvisioningErrorBody
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProvisioningErrorBody
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterPodIdentityProvisioningErrorBody>
public final class ManagedClusterPodIdentityProvisioningErrorBody
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterPodIdentityProvisioningErrorBody>
An error response from the pod identity provisioning.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterPodIdentityProvisioningErrorBody class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Get the code property: An identifier for the error.details()Get the details property: A list of additional details about the error.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterPodIdentityProvisioningErrorBody from the JsonReader.message()Get the message property: A message describing the error, intended to be suitable for display in a user interface.target()Get the target property: The target of the particular error.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the code property: An identifier for the error.Set the details property: A list of additional details about the error.withMessage(String message) Set the message property: A message describing the error, intended to be suitable for display in a user interface.withTarget(String target) Set the target property: The target of the particular error.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedClusterPodIdentityProvisioningErrorBody
public ManagedClusterPodIdentityProvisioningErrorBody()Creates an instance of ManagedClusterPodIdentityProvisioningErrorBody class.
-
-
Method Details
-
code
Get the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.- Returns:
- the code value.
-
withCode
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.
-
message
Get the message property: A message describing the error, intended to be suitable for display in a user interface.- Returns:
- the message value.
-
withMessage
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.
-
target
Get the target property: The target of the particular error. For example, the name of the property in error.- Returns:
- the target value.
-
withTarget
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.
-
details
Get the details property: A list of additional details about the error.- Returns:
- the details value.
-
withDetails
public ManagedClusterPodIdentityProvisioningErrorBody withDetails(List<ManagedClusterPodIdentityProvisioningErrorBody> 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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterPodIdentityProvisioningErrorBody>- Throws:
IOException
-
fromJson
public static ManagedClusterPodIdentityProvisioningErrorBody fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-