Class ManagedIdentityCredential
java.lang.Object
com.azure.resourcemanager.machinelearning.models.DataReferenceCredential
com.azure.resourcemanager.machinelearning.models.ManagedIdentityCredential
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataReferenceCredential>
Credential for user managed identity.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedIdentityCredential class. -
Method Summary
Modifier and TypeMethodDescriptionGet the credentialType property: [Required] Credential type used to authentication with storage.static ManagedIdentityCredentialfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedIdentityCredential from the JsonReader.Get the managedIdentityType property: ManagedIdentityCredential identity type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the userManagedIdentityClientId property: ClientId for the UAMI.Get the userManagedIdentityPrincipalId property: PrincipalId for the UAMI.Get the userManagedIdentityResourceId property: Full arm scope for the Id.Get the userManagedIdentityTenantId property: TenantId for the UAMI.voidvalidate()Validates the instance.withManagedIdentityType(String managedIdentityType) Set the managedIdentityType property: ManagedIdentityCredential identity type.withUserManagedIdentityClientId(String userManagedIdentityClientId) Set the userManagedIdentityClientId property: ClientId for the UAMI.withUserManagedIdentityPrincipalId(String userManagedIdentityPrincipalId) Set the userManagedIdentityPrincipalId property: PrincipalId for the UAMI.withUserManagedIdentityResourceId(String userManagedIdentityResourceId) Set the userManagedIdentityResourceId property: Full arm scope for the Id.withUserManagedIdentityTenantId(String userManagedIdentityTenantId) Set the userManagedIdentityTenantId property: TenantId for the UAMI.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
-
ManagedIdentityCredential
public ManagedIdentityCredential()Creates an instance of ManagedIdentityCredential class.
-
-
Method Details
-
credentialType
Get the credentialType property: [Required] Credential type used to authentication with storage.- Overrides:
credentialTypein classDataReferenceCredential- Returns:
- the credentialType value.
-
managedIdentityType
Get the managedIdentityType property: ManagedIdentityCredential identity type.- Returns:
- the managedIdentityType value.
-
withManagedIdentityType
Set the managedIdentityType property: ManagedIdentityCredential identity type.- Parameters:
managedIdentityType- the managedIdentityType value to set.- Returns:
- the ManagedIdentityCredential object itself.
-
userManagedIdentityResourceId
Get the userManagedIdentityResourceId property: Full arm scope for the Id. For ManagedIdentityType = SystemManaged, this field is null.- Returns:
- the userManagedIdentityResourceId value.
-
withUserManagedIdentityResourceId
public ManagedIdentityCredential withUserManagedIdentityResourceId(String userManagedIdentityResourceId) Set the userManagedIdentityResourceId property: Full arm scope for the Id. For ManagedIdentityType = SystemManaged, this field is null.- Parameters:
userManagedIdentityResourceId- the userManagedIdentityResourceId value to set.- Returns:
- the ManagedIdentityCredential object itself.
-
userManagedIdentityClientId
Get the userManagedIdentityClientId property: ClientId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.- Returns:
- the userManagedIdentityClientId value.
-
withUserManagedIdentityClientId
public ManagedIdentityCredential withUserManagedIdentityClientId(String userManagedIdentityClientId) Set the userManagedIdentityClientId property: ClientId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.- Parameters:
userManagedIdentityClientId- the userManagedIdentityClientId value to set.- Returns:
- the ManagedIdentityCredential object itself.
-
userManagedIdentityPrincipalId
Get the userManagedIdentityPrincipalId property: PrincipalId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.- Returns:
- the userManagedIdentityPrincipalId value.
-
withUserManagedIdentityPrincipalId
public ManagedIdentityCredential withUserManagedIdentityPrincipalId(String userManagedIdentityPrincipalId) Set the userManagedIdentityPrincipalId property: PrincipalId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.- Parameters:
userManagedIdentityPrincipalId- the userManagedIdentityPrincipalId value to set.- Returns:
- the ManagedIdentityCredential object itself.
-
userManagedIdentityTenantId
Get the userManagedIdentityTenantId property: TenantId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.- Returns:
- the userManagedIdentityTenantId value.
-
withUserManagedIdentityTenantId
public ManagedIdentityCredential withUserManagedIdentityTenantId(String userManagedIdentityTenantId) Set the userManagedIdentityTenantId property: TenantId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.- Parameters:
userManagedIdentityTenantId- the userManagedIdentityTenantId value to set.- Returns:
- the ManagedIdentityCredential object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classDataReferenceCredential- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DataReferenceCredential>- Overrides:
toJsonin classDataReferenceCredential- Throws:
IOException
-
fromJson
public static ManagedIdentityCredential fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedIdentityCredential from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedIdentityCredential 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 ManagedIdentityCredential.
-