Class UserAssignedIdentityProperties
java.lang.Object
com.azure.resourcemanager.servicebus.models.UserAssignedIdentityProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserAssignedIdentityProperties>
public final class UserAssignedIdentityProperties
extends Object
implements com.azure.json.JsonSerializable<UserAssignedIdentityProperties>
The UserAssignedIdentityProperties model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UserAssignedIdentityProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserAssignedIdentityProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the userAssignedIdentity property: ARM ID of user Identity selected for encryption.voidvalidate()Validates the instance.withUserAssignedIdentity(String userAssignedIdentity) Set the userAssignedIdentity property: ARM ID of user Identity selected for encryption.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
-
UserAssignedIdentityProperties
public UserAssignedIdentityProperties()Creates an instance of UserAssignedIdentityProperties class.
-
-
Method Details
-
userAssignedIdentity
Get the userAssignedIdentity property: ARM ID of user Identity selected for encryption.- Returns:
- the userAssignedIdentity value.
-
withUserAssignedIdentity
Set the userAssignedIdentity property: ARM ID of user Identity selected for encryption.- Parameters:
userAssignedIdentity- the userAssignedIdentity value to set.- Returns:
- the UserAssignedIdentityProperties 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<UserAssignedIdentityProperties>- Throws:
IOException
-
fromJson
public static UserAssignedIdentityProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UserAssignedIdentityProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserAssignedIdentityProperties 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 UserAssignedIdentityProperties.
-