Class AutoStorageProperties
java.lang.Object
com.azure.resourcemanager.batch.models.AutoStorageBaseProperties
com.azure.resourcemanager.batch.models.AutoStorageProperties
Contains information about the auto-storage account associated with a Batch account.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the lastKeySync property: The UTC time at which storage keys were last synchronized with the Batch account.void
validate()
Validates the instance.withAuthenticationMode
(AutoStorageAuthenticationMode authenticationMode) Set the authenticationMode property: The authentication mode which the Batch service will use to manage the auto-storage account.withLastKeySync
(OffsetDateTime lastKeySync) Set the lastKeySync property: The UTC time at which storage keys were last synchronized with the Batch account.withNodeIdentityReference
(ComputeNodeIdentityReference nodeIdentityReference) Set the nodeIdentityReference property: The identity referenced here must be assigned to pools which have compute nodes that need access to auto-storage.withStorageAccountId
(String storageAccountId) Set the storageAccountId property: The resource ID of the storage account to be used for auto-storage account.Methods inherited from class com.azure.resourcemanager.batch.models.AutoStorageBaseProperties
authenticationMode, nodeIdentityReference, storageAccountId
-
Constructor Details
-
AutoStorageProperties
public AutoStorageProperties()Creates an instance of AutoStorageProperties class.
-
-
Method Details
-
lastKeySync
Get the lastKeySync property: The UTC time at which storage keys were last synchronized with the Batch account.- Returns:
- the lastKeySync value.
-
withLastKeySync
Set the lastKeySync property: The UTC time at which storage keys were last synchronized with the Batch account.- Parameters:
lastKeySync
- the lastKeySync value to set.- Returns:
- the AutoStorageProperties object itself.
-
withStorageAccountId
Set the storageAccountId property: The resource ID of the storage account to be used for auto-storage account.- Overrides:
withStorageAccountId
in classAutoStorageBaseProperties
- Parameters:
storageAccountId
- the storageAccountId value to set.- Returns:
- the AutoStorageBaseProperties object itself.
-
withAuthenticationMode
public AutoStorageProperties withAuthenticationMode(AutoStorageAuthenticationMode authenticationMode) Set the authenticationMode property: The authentication mode which the Batch service will use to manage the auto-storage account.- Overrides:
withAuthenticationMode
in classAutoStorageBaseProperties
- Parameters:
authenticationMode
- the authenticationMode value to set.- Returns:
- the AutoStorageBaseProperties object itself.
-
withNodeIdentityReference
public AutoStorageProperties withNodeIdentityReference(ComputeNodeIdentityReference nodeIdentityReference) Set the nodeIdentityReference property: The identity referenced here must be assigned to pools which have compute nodes that need access to auto-storage.- Overrides:
withNodeIdentityReference
in classAutoStorageBaseProperties
- Parameters:
nodeIdentityReference
- the nodeIdentityReference value to set.- Returns:
- the AutoStorageBaseProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classAutoStorageBaseProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-