Class ManagedIdentity
java.lang.Object
com.azure.resourcemanager.machinelearning.models.IdentityConfiguration
com.azure.resourcemanager.machinelearning.models.ManagedIdentity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IdentityConfiguration>
Managed identity configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the clientId property: Specifies a user-assigned identity by client ID.static ManagedIdentityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedIdentity from the JsonReader.Get the identityType property: [Required] Specifies the type of identity framework.objectId()Get the objectId property: Specifies a user-assigned identity by object ID.Get the resourceId property: Specifies a user-assigned identity by ARM resource ID.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClientId(UUID clientId) Set the clientId property: Specifies a user-assigned identity by client ID.withObjectId(UUID objectId) Set the objectId property: Specifies a user-assigned identity by object ID.withResourceId(String resourceId) Set the resourceId property: Specifies a user-assigned identity by ARM resource ID.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
-
ManagedIdentity
public ManagedIdentity()Creates an instance of ManagedIdentity class.
-
-
Method Details
-
identityType
Get the identityType property: [Required] Specifies the type of identity framework.- Overrides:
identityTypein classIdentityConfiguration- Returns:
- the identityType value.
-
clientId
Get the clientId property: Specifies a user-assigned identity by client ID. For system-assigned, do not set this field.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: Specifies a user-assigned identity by client ID. For system-assigned, do not set this field.- Parameters:
clientId- the clientId value to set.- Returns:
- the ManagedIdentity object itself.
-
objectId
Get the objectId property: Specifies a user-assigned identity by object ID. For system-assigned, do not set this field.- Returns:
- the objectId value.
-
withObjectId
Set the objectId property: Specifies a user-assigned identity by object ID. For system-assigned, do not set this field.- Parameters:
objectId- the objectId value to set.- Returns:
- the ManagedIdentity object itself.
-
resourceId
Get the resourceId property: Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the ManagedIdentity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classIdentityConfiguration- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<IdentityConfiguration>- Overrides:
toJsonin classIdentityConfiguration- Throws:
IOException
-
fromJson
Reads an instance of ManagedIdentity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedIdentity 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 ManagedIdentity.
-