Class ManagedIdentitySpec
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ManagedIdentitySpec
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedIdentitySpec>
public final class ManagedIdentitySpec
extends Object
implements com.azure.json.JsonSerializable<ManagedIdentitySpec>
The details of a managed identity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the clientId property: ClientId of the managed identity.static ManagedIdentitySpecfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedIdentitySpec from the JsonReader.objectId()Get the objectId property: ObjectId of the managed identity.Get the resourceId property: ResourceId of the managed identity.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of managed identity.voidvalidate()Validates the instance.withClientId(String clientId) Set the clientId property: ClientId of the managed identity.withObjectId(String objectId) Set the objectId property: ObjectId of the managed identity.withResourceId(String resourceId) Set the resourceId property: ResourceId of the managed identity.withType(ManagedIdentityType type) Set the type property: The type of managed identity.Methods inherited from class 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
-
ManagedIdentitySpec
public ManagedIdentitySpec()Creates an instance of ManagedIdentitySpec class.
-
-
Method Details
-
type
Get the type property: The type of managed identity.- Returns:
- the type value.
-
withType
Set the type property: The type of managed identity.- Parameters:
type- the type value to set.- Returns:
- the ManagedIdentitySpec object itself.
-
resourceId
Get the resourceId property: ResourceId of the managed identity.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: ResourceId of the managed identity.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the ManagedIdentitySpec object itself.
-
clientId
Get the clientId property: ClientId of the managed identity.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: ClientId of the managed identity.- Parameters:
clientId- the clientId value to set.- Returns:
- the ManagedIdentitySpec object itself.
-
objectId
Get the objectId property: ObjectId of the managed identity.- Returns:
- the objectId value.
-
withObjectId
Set the objectId property: ObjectId of the managed identity.- Parameters:
objectId- the objectId value to set.- Returns:
- the ManagedIdentitySpec 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<ManagedIdentitySpec>- Throws:
IOException
-
fromJson
Reads an instance of ManagedIdentitySpec from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedIdentitySpec 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 ManagedIdentitySpec.
-