Class IdentityProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.IdentityProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IdentityProfile>
- Direct Known Subclasses:
AksClusterProfileAksClusterAgentPoolIdentityProfile
public class IdentityProfile
extends Object
implements com.azure.json.JsonSerializable<IdentityProfile>
Identity Profile with details of an MSI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IdentityProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IdentityProfile from the JsonReader.Get the msiClientId property: ClientId of the MSI.Get the msiObjectId property: ObjectId of the MSI.Get the msiResourceId property: ResourceId of the MSI.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMsiClientId(String msiClientId) Set the msiClientId property: ClientId of the MSI.withMsiObjectId(String msiObjectId) Set the msiObjectId property: ObjectId of the MSI.withMsiResourceId(String msiResourceId) Set the msiResourceId property: ResourceId of the MSI.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
-
IdentityProfile
public IdentityProfile()Creates an instance of IdentityProfile class.
-
-
Method Details
-
msiResourceId
Get the msiResourceId property: ResourceId of the MSI.- Returns:
- the msiResourceId value.
-
withMsiResourceId
Set the msiResourceId property: ResourceId of the MSI.- Parameters:
msiResourceId- the msiResourceId value to set.- Returns:
- the IdentityProfile object itself.
-
msiClientId
Get the msiClientId property: ClientId of the MSI.- Returns:
- the msiClientId value.
-
withMsiClientId
Set the msiClientId property: ClientId of the MSI.- Parameters:
msiClientId- the msiClientId value to set.- Returns:
- the IdentityProfile object itself.
-
msiObjectId
Get the msiObjectId property: ObjectId of the MSI.- Returns:
- the msiObjectId value.
-
withMsiObjectId
Set the msiObjectId property: ObjectId of the MSI.- Parameters:
msiObjectId- the msiObjectId value to set.- Returns:
- the IdentityProfile 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<IdentityProfile>- Throws:
IOException
-
fromJson
Reads an instance of IdentityProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IdentityProfile 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 IdentityProfile.
-