Class ManagedClusterAddonProfileIdentity
java.lang.Object
com.azure.resourcemanager.containerservice.models.UserAssignedIdentity
com.azure.resourcemanager.containerservice.models.ManagedClusterAddonProfileIdentity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserAssignedIdentity>
Information of user assigned identity used by this add-on.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterAddonProfileIdentity class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterAddonProfileIdentity from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClientId(String clientId) Set the clientId property: The client ID of the user assigned identity.withObjectId(String objectId) Set the objectId property: The object ID of the user assigned identity.withResourceId(String resourceId) Set the resourceId property: The resource ID of the user assigned identity.Methods inherited from class com.azure.resourcemanager.containerservice.models.UserAssignedIdentity
clientId, objectId, resourceIdMethods 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
-
ManagedClusterAddonProfileIdentity
public ManagedClusterAddonProfileIdentity()Creates an instance of ManagedClusterAddonProfileIdentity class.
-
-
Method Details
-
withResourceId
Set the resourceId property: The resource ID of the user assigned identity.- Overrides:
withResourceIdin classUserAssignedIdentity- Parameters:
resourceId- the resourceId value to set.- Returns:
- the UserAssignedIdentity object itself.
-
withClientId
Set the clientId property: The client ID of the user assigned identity.- Overrides:
withClientIdin classUserAssignedIdentity- Parameters:
clientId- the clientId value to set.- Returns:
- the UserAssignedIdentity object itself.
-
withObjectId
Set the objectId property: The object ID of the user assigned identity.- Overrides:
withObjectIdin classUserAssignedIdentity- Parameters:
objectId- the objectId value to set.- Returns:
- the UserAssignedIdentity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classUserAssignedIdentity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UserAssignedIdentity>- Overrides:
toJsonin classUserAssignedIdentity- Throws:
IOException
-
fromJson
public static ManagedClusterAddonProfileIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterAddonProfileIdentity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterAddonProfileIdentity 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 ManagedClusterAddonProfileIdentity.
-