Class BatchPoolIdentity
java.lang.Object
com.azure.resourcemanager.batch.models.BatchPoolIdentity
The identity of the Batch pool, if configured. If the pool identity is updated during update an existing pool, only
the new vms which are created after the pool shrinks to 0 will have the updated identities.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontype()
Get the type property: The type of identity used for the Batch Pool.Get the userAssignedIdentities property: The list of user identities associated with the Batch pool.void
validate()
Validates the instance.withType
(PoolIdentityType type) Set the type property: The type of identity used for the Batch Pool.withUserAssignedIdentities
(Map<String, UserAssignedIdentities> userAssignedIdentities) Set the userAssignedIdentities property: The list of user identities associated with the Batch pool.
-
Constructor Details
-
BatchPoolIdentity
public BatchPoolIdentity()Creates an instance of BatchPoolIdentity class.
-
-
Method Details
-
type
Get the type property: The type of identity used for the Batch Pool.- Returns:
- the type value.
-
withType
Set the type property: The type of identity used for the Batch Pool.- Parameters:
type
- the type value to set.- Returns:
- the BatchPoolIdentity object itself.
-
userAssignedIdentities
Get the userAssignedIdentities property: The list of user identities associated with the Batch pool.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public BatchPoolIdentity withUserAssignedIdentities(Map<String, UserAssignedIdentities> userAssignedIdentities) Set the userAssignedIdentities property: The list of user identities associated with the Batch pool.- Parameters:
userAssignedIdentities
- the userAssignedIdentities value to set.- Returns:
- the BatchPoolIdentity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-