Class EncryptionPropertiesIdentity
java.lang.Object
com.azure.resourcemanager.automation.models.EncryptionPropertiesIdentity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionPropertiesIdentity>
public final class EncryptionPropertiesIdentity
extends Object
implements com.azure.json.JsonSerializable<EncryptionPropertiesIdentity>
User identity used for CMK.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EncryptionPropertiesIdentity class. -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionPropertiesIdentity
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of EncryptionPropertiesIdentity from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the userAssignedIdentity property: The user identity used for CMK.void
validate()
Validates the instance.withUserAssignedIdentity
(Object userAssignedIdentity) Set the userAssignedIdentity property: The user identity used for CMK.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EncryptionPropertiesIdentity
public EncryptionPropertiesIdentity()Creates an instance of EncryptionPropertiesIdentity class.
-
-
Method Details
-
userAssignedIdentity
Get the userAssignedIdentity property: The user identity used for CMK. It will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.- Returns:
- the userAssignedIdentity value.
-
withUserAssignedIdentity
Set the userAssignedIdentity property: The user identity used for CMK. It will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.- Parameters:
userAssignedIdentity
- the userAssignedIdentity value to set.- Returns:
- the EncryptionPropertiesIdentity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<EncryptionPropertiesIdentity>
- Throws:
IOException
-
fromJson
public static EncryptionPropertiesIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EncryptionPropertiesIdentity from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of EncryptionPropertiesIdentity 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 EncryptionPropertiesIdentity.
-