Class UserAssignedIdentity
java.lang.Object
com.azure.resourcemanager.containerservice.models.UserAssignedIdentity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserAssignedIdentity>
- Direct Known Subclasses:
ManagedClusterAddonProfileIdentity
public class UserAssignedIdentity
extends Object
implements com.azure.json.JsonSerializable<UserAssignedIdentity>
Details about a user assigned identity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the clientId property: The client ID of the user assigned identity.static UserAssignedIdentityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserAssignedIdentity from the JsonReader.objectId()Get the objectId property: The object ID of the user assigned identity.Get the resourceId property: The resource ID of the user assigned identity.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 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
-
UserAssignedIdentity
public UserAssignedIdentity()Creates an instance of UserAssignedIdentity class.
-
-
Method Details
-
resourceId
Get the resourceId property: The resource ID of the user assigned identity.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The resource ID of the user assigned identity.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the UserAssignedIdentity object itself.
-
clientId
Get the clientId property: The client ID of the user assigned identity.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: The client ID of the user assigned identity.- Parameters:
clientId- the clientId value to set.- Returns:
- the UserAssignedIdentity object itself.
-
objectId
Get the objectId property: The object ID of the user assigned identity.- Returns:
- the objectId value.
-
withObjectId
Set the objectId property: The object ID of the user assigned identity.- Parameters:
objectId- the objectId value to set.- Returns:
- the UserAssignedIdentity 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<UserAssignedIdentity>- Throws:
IOException
-
fromJson
public static UserAssignedIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UserAssignedIdentity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserAssignedIdentity 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 UserAssignedIdentity.
-