Class PoolArgs.Builder

  • Enclosing class:
    PoolArgs

    public static final class PoolArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(PoolArgs defaults)
    • Method Detail

      • accountName

        public PoolArgs.Builder accountName​(com.pulumi.core.Output<java.lang.String> accountName)
        Parameters:
        accountName - The name of the Batch account.
        Returns:
        builder
      • accountName

        public PoolArgs.Builder accountName​(java.lang.String accountName)
        Parameters:
        accountName - The name of the Batch account.
        Returns:
        builder
      • applicationLicenses

        public PoolArgs.Builder applicationLicenses​(@Nullable
                                                    com.pulumi.core.Output<java.util.List<java.lang.String>> applicationLicenses)
        Parameters:
        applicationLicenses - The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, pool creation will fail.
        Returns:
        builder
      • applicationLicenses

        public PoolArgs.Builder applicationLicenses​(java.util.List<java.lang.String> applicationLicenses)
        Parameters:
        applicationLicenses - The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, pool creation will fail.
        Returns:
        builder
      • applicationLicenses

        public PoolArgs.Builder applicationLicenses​(java.lang.String... applicationLicenses)
        Parameters:
        applicationLicenses - The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, pool creation will fail.
        Returns:
        builder
      • applicationPackages

        public PoolArgs.Builder applicationPackages​(@Nullable
                                                    com.pulumi.core.Output<java.util.List<ApplicationPackageReferenceArgs>> applicationPackages)
        Parameters:
        applicationPackages - Changes to application package references affect all new compute nodes joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10 application package references on any given pool.
        Returns:
        builder
      • applicationPackages

        public PoolArgs.Builder applicationPackages​(java.util.List<ApplicationPackageReferenceArgs> applicationPackages)
        Parameters:
        applicationPackages - Changes to application package references affect all new compute nodes joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10 application package references on any given pool.
        Returns:
        builder
      • applicationPackages

        public PoolArgs.Builder applicationPackages​(ApplicationPackageReferenceArgs... applicationPackages)
        Parameters:
        applicationPackages - Changes to application package references affect all new compute nodes joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10 application package references on any given pool.
        Returns:
        builder
      • certificates

        public PoolArgs.Builder certificates​(@Nullable
                                             com.pulumi.core.Output<java.util.List<CertificateReferenceArgs>> certificates)
        Parameters:
        certificates - For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory. Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
        Returns:
        builder
      • certificates

        public PoolArgs.Builder certificates​(java.util.List<CertificateReferenceArgs> certificates)
        Parameters:
        certificates - For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory. Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
        Returns:
        builder
      • certificates

        public PoolArgs.Builder certificates​(CertificateReferenceArgs... certificates)
        Parameters:
        certificates - For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory. Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
        Returns:
        builder
      • deploymentConfiguration

        public PoolArgs.Builder deploymentConfiguration​(@Nullable
                                                        com.pulumi.core.Output<DeploymentConfigurationArgs> deploymentConfiguration)
        Parameters:
        deploymentConfiguration - Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS).
        Returns:
        builder
      • deploymentConfiguration

        public PoolArgs.Builder deploymentConfiguration​(DeploymentConfigurationArgs deploymentConfiguration)
        Parameters:
        deploymentConfiguration - Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS).
        Returns:
        builder
      • displayName

        public PoolArgs.Builder displayName​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> displayName)
        Parameters:
        displayName - The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
        Returns:
        builder
      • displayName

        public PoolArgs.Builder displayName​(java.lang.String displayName)
        Parameters:
        displayName - The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
        Returns:
        builder
      • identity

        public PoolArgs.Builder identity​(@Nullable
                                         com.pulumi.core.Output<BatchPoolIdentityArgs> identity)
        Parameters:
        identity - The type of identity used for the Batch Pool.
        Returns:
        builder
      • interNodeCommunication

        public PoolArgs.Builder interNodeCommunication​(@Nullable
                                                       com.pulumi.core.Output<InterNodeCommunicationState> interNodeCommunication)
        Parameters:
        interNodeCommunication - This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to 'Disabled'.
        Returns:
        builder
      • interNodeCommunication

        public PoolArgs.Builder interNodeCommunication​(InterNodeCommunicationState interNodeCommunication)
        Parameters:
        interNodeCommunication - This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to 'Disabled'.
        Returns:
        builder
      • metadata

        public PoolArgs.Builder metadata​(@Nullable
                                         com.pulumi.core.Output<java.util.List<MetadataItemArgs>> metadata)
        Parameters:
        metadata - The Batch service does not assign any meaning to metadata; it is solely for the use of user code.
        Returns:
        builder
      • metadata

        public PoolArgs.Builder metadata​(java.util.List<MetadataItemArgs> metadata)
        Parameters:
        metadata - The Batch service does not assign any meaning to metadata; it is solely for the use of user code.
        Returns:
        builder
      • metadata

        public PoolArgs.Builder metadata​(MetadataItemArgs... metadata)
        Parameters:
        metadata - The Batch service does not assign any meaning to metadata; it is solely for the use of user code.
        Returns:
        builder
      • mountConfiguration

        public PoolArgs.Builder mountConfiguration​(@Nullable
                                                   com.pulumi.core.Output<java.util.List<MountConfigurationArgs>> mountConfiguration)
        Parameters:
        mountConfiguration - This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
        Returns:
        builder
      • mountConfiguration

        public PoolArgs.Builder mountConfiguration​(java.util.List<MountConfigurationArgs> mountConfiguration)
        Parameters:
        mountConfiguration - This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
        Returns:
        builder
      • mountConfiguration

        public PoolArgs.Builder mountConfiguration​(MountConfigurationArgs... mountConfiguration)
        Parameters:
        mountConfiguration - This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
        Returns:
        builder
      • networkConfiguration

        public PoolArgs.Builder networkConfiguration​(@Nullable
                                                     com.pulumi.core.Output<NetworkConfigurationArgs> networkConfiguration)
        Parameters:
        networkConfiguration - The network configuration for a pool.
        Returns:
        builder
      • networkConfiguration

        public PoolArgs.Builder networkConfiguration​(NetworkConfigurationArgs networkConfiguration)
        Parameters:
        networkConfiguration - The network configuration for a pool.
        Returns:
        builder
      • poolName

        public PoolArgs.Builder poolName​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> poolName)
        Parameters:
        poolName - The pool name. This must be unique within the account.
        Returns:
        builder
      • poolName

        public PoolArgs.Builder poolName​(java.lang.String poolName)
        Parameters:
        poolName - The pool name. This must be unique within the account.
        Returns:
        builder
      • resourceGroupName

        public PoolArgs.Builder resourceGroupName​(com.pulumi.core.Output<java.lang.String> resourceGroupName)
        Parameters:
        resourceGroupName - The name of the resource group that contains the Batch account.
        Returns:
        builder
      • resourceGroupName

        public PoolArgs.Builder resourceGroupName​(java.lang.String resourceGroupName)
        Parameters:
        resourceGroupName - The name of the resource group that contains the Batch account.
        Returns:
        builder
      • scaleSettings

        public PoolArgs.Builder scaleSettings​(@Nullable
                                              com.pulumi.core.Output<ScaleSettingsArgs> scaleSettings)
        Parameters:
        scaleSettings - Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
        Returns:
        builder
      • scaleSettings

        public PoolArgs.Builder scaleSettings​(ScaleSettingsArgs scaleSettings)
        Parameters:
        scaleSettings - Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
        Returns:
        builder
      • startTask

        public PoolArgs.Builder startTask​(@Nullable
                                          com.pulumi.core.Output<StartTaskArgs> startTask)
        Parameters:
        startTask - In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the pool.
        Returns:
        builder
      • startTask

        public PoolArgs.Builder startTask​(StartTaskArgs startTask)
        Parameters:
        startTask - In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the pool.
        Returns:
        builder
      • targetNodeCommunicationMode

        public PoolArgs.Builder targetNodeCommunicationMode​(@Nullable
                                                            com.pulumi.core.Output<NodeCommunicationMode> targetNodeCommunicationMode)
        Parameters:
        targetNodeCommunicationMode - If omitted, the default value is Default.
        Returns:
        builder
      • targetNodeCommunicationMode

        public PoolArgs.Builder targetNodeCommunicationMode​(NodeCommunicationMode targetNodeCommunicationMode)
        Parameters:
        targetNodeCommunicationMode - If omitted, the default value is Default.
        Returns:
        builder
      • taskSchedulingPolicy

        public PoolArgs.Builder taskSchedulingPolicy​(@Nullable
                                                     com.pulumi.core.Output<TaskSchedulingPolicyArgs> taskSchedulingPolicy)
        Parameters:
        taskSchedulingPolicy - If not specified, the default is spread.
        Returns:
        builder
      • taskSchedulingPolicy

        public PoolArgs.Builder taskSchedulingPolicy​(TaskSchedulingPolicyArgs taskSchedulingPolicy)
        Parameters:
        taskSchedulingPolicy - If not specified, the default is spread.
        Returns:
        builder
      • taskSlotsPerNode

        public PoolArgs.Builder taskSlotsPerNode​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Integer> taskSlotsPerNode)
        Parameters:
        taskSlotsPerNode - The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.
        Returns:
        builder
      • taskSlotsPerNode

        public PoolArgs.Builder taskSlotsPerNode​(java.lang.Integer taskSlotsPerNode)
        Parameters:
        taskSlotsPerNode - The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.
        Returns:
        builder
      • vmSize

        public PoolArgs.Builder vmSize​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> vmSize)
        Parameters:
        vmSize - For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).
        Returns:
        builder
      • vmSize

        public PoolArgs.Builder vmSize​(java.lang.String vmSize)
        Parameters:
        vmSize - For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).
        Returns:
        builder