Class ManagedClusterPodIdentity
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterPodIdentity>
public final class ManagedClusterPodIdentity
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterPodIdentity>
Details about the pod identity assigned to the Managed Cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterPodIdentity class. -
Method Summary
Modifier and TypeMethodDescriptionGet the bindingSelector property: The binding selector to use for the AzureIdentityBinding resource.static ManagedClusterPodIdentityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterPodIdentity from the JsonReader.identity()Get the identity property: The user assigned identity details.name()Get the name property: The name of the pod identity.Get the namespace property: The namespace of the pod identity.Get the provisioningInfo property: The provisioningInfo property.Get the provisioningState property: The current provisioning state of the pod identity.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBindingSelector(String bindingSelector) Set the bindingSelector property: The binding selector to use for the AzureIdentityBinding resource.withIdentity(UserAssignedIdentity identity) Set the identity property: The user assigned identity details.Set the name property: The name of the pod identity.withNamespace(String namespace) Set the namespace property: The namespace of the pod identity.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
-
ManagedClusterPodIdentity
public ManagedClusterPodIdentity()Creates an instance of ManagedClusterPodIdentity class.
-
-
Method Details
-
name
Get the name property: The name of the pod identity.- Returns:
- the name value.
-
withName
Set the name property: The name of the pod identity.- Parameters:
name- the name value to set.- Returns:
- the ManagedClusterPodIdentity object itself.
-
namespace
Get the namespace property: The namespace of the pod identity.- Returns:
- the namespace value.
-
withNamespace
Set the namespace property: The namespace of the pod identity.- Parameters:
namespace- the namespace value to set.- Returns:
- the ManagedClusterPodIdentity object itself.
-
bindingSelector
Get the bindingSelector property: The binding selector to use for the AzureIdentityBinding resource.- Returns:
- the bindingSelector value.
-
withBindingSelector
Set the bindingSelector property: The binding selector to use for the AzureIdentityBinding resource.- Parameters:
bindingSelector- the bindingSelector value to set.- Returns:
- the ManagedClusterPodIdentity object itself.
-
identity
Get the identity property: The user assigned identity details.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The user assigned identity details.- Parameters:
identity- the identity value to set.- Returns:
- the ManagedClusterPodIdentity object itself.
-
provisioningState
Get the provisioningState property: The current provisioning state of the pod identity.- Returns:
- the provisioningState value.
-
provisioningInfo
Get the provisioningInfo property: The provisioningInfo property.- Returns:
- the provisioningInfo value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterPodIdentity>- Throws:
IOException
-
fromJson
public static ManagedClusterPodIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterPodIdentity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterPodIdentity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ManagedClusterPodIdentity.
-