Class DefaultIdentity
java.lang.Object
com.azure.resourcemanager.appservice.models.DefaultIdentity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DefaultIdentity>
public final class DefaultIdentity
extends Object
implements com.azure.json.JsonSerializable<DefaultIdentity>
The DefaultIdentity model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultIdentityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DefaultIdentity from the JsonReader.Get the identityType property: The identityType property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the userAssignedIdentityResourceId property: The userAssignedIdentityResourceId property.voidvalidate()Validates the instance.withIdentityType(ManagedServiceIdentityType identityType) Set the identityType property: The identityType property.withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId) Set the userAssignedIdentityResourceId property: The userAssignedIdentityResourceId property.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
-
DefaultIdentity
public DefaultIdentity()Creates an instance of DefaultIdentity class.
-
-
Method Details
-
identityType
Get the identityType property: The identityType property.- Returns:
- the identityType value.
-
withIdentityType
Set the identityType property: The identityType property.- Parameters:
identityType- the identityType value to set.- Returns:
- the DefaultIdentity object itself.
-
userAssignedIdentityResourceId
Get the userAssignedIdentityResourceId property: The userAssignedIdentityResourceId property.- Returns:
- the userAssignedIdentityResourceId value.
-
withUserAssignedIdentityResourceId
Set the userAssignedIdentityResourceId property: The userAssignedIdentityResourceId property.- Parameters:
userAssignedIdentityResourceId- the userAssignedIdentityResourceId value to set.- Returns:
- the DefaultIdentity 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<DefaultIdentity>- Throws:
IOException
-
fromJson
Reads an instance of DefaultIdentity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DefaultIdentity 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 DefaultIdentity.
-