Class ManagedIdentity
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.IdentityConfiguration
-
- com.azure.resourcemanager.machinelearning.models.ManagedIdentity
-
public class ManagedIdentity extends IdentityConfiguration
Managed identity configuration.
-
-
Constructor Summary
Constructors Constructor Description ManagedIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUID
clientId()
Get the clientId property: Specifies a user-assigned identity by client ID.UUID
objectId()
Get the objectId property: Specifies a user-assigned identity by object ID.String
resourceId()
Get the resourceId property: Specifies a user-assigned identity by ARM resource ID.void
validate()
Validates the instance.ManagedIdentity
withClientId(UUID clientId)
Set the clientId property: Specifies a user-assigned identity by client ID.ManagedIdentity
withObjectId(UUID objectId)
Set the objectId property: Specifies a user-assigned identity by object ID.ManagedIdentity
withResourceId(String resourceId)
Set the resourceId property: Specifies a user-assigned identity by ARM resource ID.
-
-
-
Method Detail
-
clientId
public UUID 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
public ManagedIdentity withClientId(UUID clientId)
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
public UUID 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
public ManagedIdentity withObjectId(UUID objectId)
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
public String 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
public ManagedIdentity withResourceId(String resourceId)
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:
validate
in classIdentityConfiguration
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-