Class PartialManagedServiceIdentity
java.lang.Object
com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PartialManagedServiceIdentity>
public final class PartialManagedServiceIdentity
extends Object
implements com.azure.json.JsonSerializable<PartialManagedServiceIdentity>
Managed service identity (system assigned and/or user assigned identities).
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PartialManagedServiceIdentity class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PartialManagedServiceIdentity from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Managed service identity (system assigned and/or user assigned identities).Get the userAssignedIdentities property: The set of user assigned identities associated with the resource.voidvalidate()Validates the instance.Set the type property: Managed service identity (system assigned and/or user assigned identities).withUserAssignedIdentities(Map<String, Object> userAssignedIdentities) Set the userAssignedIdentities property: The set of user assigned identities associated with the resource.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
-
PartialManagedServiceIdentity
public PartialManagedServiceIdentity()Creates an instance of PartialManagedServiceIdentity class.
-
-
Method Details
-
type
Get the type property: Managed service identity (system assigned and/or user assigned identities).- Returns:
- the type value.
-
withType
Set the type property: Managed service identity (system assigned and/or user assigned identities).- Parameters:
type- the type value to set.- Returns:
- the PartialManagedServiceIdentity object itself.
-
userAssignedIdentities
Get the userAssignedIdentities property: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public PartialManagedServiceIdentity withUserAssignedIdentities(Map<String, Object> userAssignedIdentities) Set the userAssignedIdentities property: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.- Parameters:
userAssignedIdentities- the userAssignedIdentities value to set.- Returns:
- the PartialManagedServiceIdentity 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<PartialManagedServiceIdentity>- Throws:
IOException
-
fromJson
public static PartialManagedServiceIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PartialManagedServiceIdentity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PartialManagedServiceIdentity 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 PartialManagedServiceIdentity.
-