BatchAccountCreateParameters Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. BatchAccountCreateParameters
- com.
Implements
public final class BatchAccountCreateParameters
implements JsonSerializable<BatchAccountCreateParameters>
Parameters supplied to the Create operation.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchAccountCreateParameters() |
Creates an instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Authentication |
allowedAuthenticationModes()
Get the allowed |
|
Auto |
autoStorage()
Get the auto |
|
Encryption |
encryption()
Get the encryption property: The encryption configuration for the Batch account. |
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
Batch |
identity()
Get the identity property: The identity of the Batch account. |
|
Key |
keyVaultReference()
Get the key |
| String |
location()
Get the location property: The region in which to create the account. |
|
Network |
networkProfile()
Get the network |
|
Pool |
poolAllocationMode()
Get the pool |
|
Public |
publicNetworkAccess()
Get the public |
| Map<String,String> |
tags()
Get the tags property: The user-specified tags associated with the account. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Batch |
withAllowedAuthenticationModes(List<AuthenticationMode> allowedAuthenticationModes)
Set the allowed |
|
Batch |
withAutoStorage(AutoStorageBaseProperties autoStorage)
Set the auto |
|
Batch |
withEncryption(EncryptionProperties encryption)
Set the encryption property: The encryption configuration for the Batch account. |
|
Batch |
withIdentity(BatchAccountIdentity identity)
Set the identity property: The identity of the Batch account. |
|
Batch |
withKeyVaultReference(KeyVaultReference keyVaultReference)
Set the key |
|
Batch |
withLocation(String location)
Set the location property: The region in which to create the account. |
|
Batch |
withNetworkProfile(NetworkProfile networkProfile)
Set the network |
|
Batch |
withPoolAllocationMode(PoolAllocationMode poolAllocationMode)
Set the pool |
|
Batch |
withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess)
Set the public |
|
Batch |
withTags(Map<String,String> tags)
Set the tags property: The user-specified tags associated with the account. |
Methods inherited from java.lang.Object
Constructor Details
BatchAccountCreateParameters
public BatchAccountCreateParameters()
Creates an instance of BatchAccountCreateParameters class.
Method Details
allowedAuthenticationModes
public List<AuthenticationMode> allowedAuthenticationModes()
Get the allowedAuthenticationModes property: List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. This does not affect authentication with the control plane.
Returns:
autoStorage
public AutoStorageBaseProperties autoStorage()
Get the autoStorage property: The properties related to the auto-storage account.
Returns:
encryption
public EncryptionProperties encryption()
Get the encryption property: The encryption configuration for the Batch account. Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead.
Returns:
fromJson
public static BatchAccountCreateParameters fromJson(JsonReader jsonReader)
Reads an instance of BatchAccountCreateParameters from the JsonReader.
Parameters:
Returns:
Throws:
identity
public BatchAccountIdentity identity()
Get the identity property: The identity of the Batch account.
Returns:
keyVaultReference
public KeyVaultReference keyVaultReference()
Get the keyVaultReference property: A reference to the Azure key vault associated with the Batch account.
Returns:
location
public String location()
Get the location property: The region in which to create the account.
Returns:
networkProfile
public NetworkProfile networkProfile()
Get the networkProfile property: Network profile for Batch account, which contains network rule settings for each endpoint. The network profile only takes effect when publicNetworkAccess is enabled.
Returns:
poolAllocationMode
public PoolAllocationMode poolAllocationMode()
Get the poolAllocationMode property: The allocation mode to use for creating pools in the Batch account. The pool allocation mode also affects how clients may authenticate to the Batch Service API. If the mode is BatchService, clients may authenticate using access keys or Microsoft Entra ID. If the mode is UserSubscription, clients must use Microsoft Entra ID. The default is BatchService.
Returns:
publicNetworkAccess
public PublicNetworkAccessType publicNetworkAccess()
Get the publicNetworkAccess property: The network access type for accessing Azure Batch account. The network access type for operating on the resources in the Batch account.
Returns:
tags
public Map<String,String> tags()
Get the tags property: The user-specified tags associated with the account.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAllowedAuthenticationModes
public BatchAccountCreateParameters withAllowedAuthenticationModes(List<AuthenticationMode> allowedAuthenticationModes)
Set the allowedAuthenticationModes property: List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. This does not affect authentication with the control plane.
Parameters:
Returns:
withAutoStorage
public BatchAccountCreateParameters withAutoStorage(AutoStorageBaseProperties autoStorage)
Set the autoStorage property: The properties related to the auto-storage account.
Parameters:
Returns:
withEncryption
public BatchAccountCreateParameters withEncryption(EncryptionProperties encryption)
Set the encryption property: The encryption configuration for the Batch account. Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead.
Parameters:
Returns:
withIdentity
public BatchAccountCreateParameters withIdentity(BatchAccountIdentity identity)
Set the identity property: The identity of the Batch account.
Parameters:
Returns:
withKeyVaultReference
public BatchAccountCreateParameters withKeyVaultReference(KeyVaultReference keyVaultReference)
Set the keyVaultReference property: A reference to the Azure key vault associated with the Batch account.
Parameters:
Returns:
withLocation
public BatchAccountCreateParameters withLocation(String location)
Set the location property: The region in which to create the account.
Parameters:
Returns:
withNetworkProfile
public BatchAccountCreateParameters withNetworkProfile(NetworkProfile networkProfile)
Set the networkProfile property: Network profile for Batch account, which contains network rule settings for each endpoint. The network profile only takes effect when publicNetworkAccess is enabled.
Parameters:
Returns:
withPoolAllocationMode
public BatchAccountCreateParameters withPoolAllocationMode(PoolAllocationMode poolAllocationMode)
Set the poolAllocationMode property: The allocation mode to use for creating pools in the Batch account. The pool allocation mode also affects how clients may authenticate to the Batch Service API. If the mode is BatchService, clients may authenticate using access keys or Microsoft Entra ID. If the mode is UserSubscription, clients must use Microsoft Entra ID. The default is BatchService.
Parameters:
Returns:
withPublicNetworkAccess
public BatchAccountCreateParameters withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess)
Set the publicNetworkAccess property: The network access type for accessing Azure Batch account. The network access type for operating on the resources in the Batch account.
Parameters:
Returns:
withTags
public BatchAccountCreateParameters withTags(Map<String,String> tags)
Set the tags property: The user-specified tags associated with the account.
Parameters:
Returns: