Class BatchAccountCreateParameters

java.lang.Object
com.azure.resourcemanager.batch.models.BatchAccountCreateParameters

public final class BatchAccountCreateParameters extends Object
Parameters supplied to the Create operation.
  • Constructor Details

    • BatchAccountCreateParameters

      public BatchAccountCreateParameters()
      Creates an instance of BatchAccountCreateParameters class.
  • Method Details

    • location

      public String location()
      Get the location property: The region in which to create the account.
      Returns:
      the location value.
    • withLocation

      public BatchAccountCreateParameters withLocation(String location)
      Set the location property: The region in which to create the account.
      Parameters:
      location - the location value to set.
      Returns:
      the BatchAccountCreateParameters object itself.
    • tags

      public Map<String,String> tags()
      Get the tags property: The user-specified tags associated with the account.
      Returns:
      the tags value.
    • withTags

      public BatchAccountCreateParameters withTags(Map<String,String> tags)
      Set the tags property: The user-specified tags associated with the account.
      Parameters:
      tags - the tags value to set.
      Returns:
      the BatchAccountCreateParameters object itself.
    • identity

      public BatchAccountIdentity identity()
      Get the identity property: The identity of the Batch account.
      Returns:
      the identity value.
    • withIdentity

      public BatchAccountCreateParameters withIdentity(BatchAccountIdentity identity)
      Set the identity property: The identity of the Batch account.
      Parameters:
      identity - the identity value to set.
      Returns:
      the BatchAccountCreateParameters object itself.
    • autoStorage

      public AutoStorageBaseProperties autoStorage()
      Get the autoStorage property: The properties related to the auto-storage account.
      Returns:
      the autoStorage value.
    • withAutoStorage

      public BatchAccountCreateParameters withAutoStorage(AutoStorageBaseProperties autoStorage)
      Set the autoStorage property: The properties related to the auto-storage account.
      Parameters:
      autoStorage - the autoStorage value to set.
      Returns:
      the BatchAccountCreateParameters object itself.
    • poolAllocationMode

      public PoolAllocationMode poolAllocationMode()
      Get the poolAllocationMode property: 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 Azure Active Directory. If the mode is UserSubscription, clients must use Azure Active Directory. The default is BatchService.
      Returns:
      the poolAllocationMode value.
    • withPoolAllocationMode

      public BatchAccountCreateParameters withPoolAllocationMode(PoolAllocationMode poolAllocationMode)
      Set the poolAllocationMode property: 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 Azure Active Directory. If the mode is UserSubscription, clients must use Azure Active Directory. The default is BatchService.
      Parameters:
      poolAllocationMode - the poolAllocationMode value to set.
      Returns:
      the BatchAccountCreateParameters object itself.
    • keyVaultReference

      public KeyVaultReference keyVaultReference()
      Get the keyVaultReference property: A reference to the Azure key vault associated with the Batch account.
      Returns:
      the keyVaultReference value.
    • withKeyVaultReference

      public BatchAccountCreateParameters withKeyVaultReference(KeyVaultReference keyVaultReference)
      Set the keyVaultReference property: A reference to the Azure key vault associated with the Batch account.
      Parameters:
      keyVaultReference - the keyVaultReference value to set.
      Returns:
      the BatchAccountCreateParameters object itself.
    • publicNetworkAccess

      public PublicNetworkAccessType publicNetworkAccess()
      Get the publicNetworkAccess property: If not specified, the default value is 'enabled'.
      Returns:
      the publicNetworkAccess value.
    • withPublicNetworkAccess

      public BatchAccountCreateParameters withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess)
      Set the publicNetworkAccess property: If not specified, the default value is 'enabled'.
      Parameters:
      publicNetworkAccess - the publicNetworkAccess value to set.
      Returns:
      the BatchAccountCreateParameters object itself.
    • networkProfile

      public NetworkProfile networkProfile()
      Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
      Returns:
      the networkProfile value.
    • withNetworkProfile

      public BatchAccountCreateParameters withNetworkProfile(NetworkProfile networkProfile)
      Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
      Parameters:
      networkProfile - the networkProfile value to set.
      Returns:
      the BatchAccountCreateParameters object itself.
    • encryption

      public EncryptionProperties encryption()
      Get the encryption property: 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:
      the encryption value.
    • withEncryption

      public BatchAccountCreateParameters withEncryption(EncryptionProperties encryption)
      Set the encryption property: 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:
      encryption - the encryption value to set.
      Returns:
      the BatchAccountCreateParameters object itself.
    • 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:
      the allowedAuthenticationModes value.
    • 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:
      allowedAuthenticationModes - the allowedAuthenticationModes value to set.
      Returns:
      the BatchAccountCreateParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.