Interface CreateServiceEnvironmentRequest.Builder

    • Method Detail

      • serviceEnvironmentName

        CreateServiceEnvironmentRequest.Builder serviceEnvironmentName​(String serviceEnvironmentName)

        The name for the service environment. It can be up to 128 characters long and can contain letters, numbers, hyphens (-), and underscores (_).

        Parameters:
        serviceEnvironmentName - The name for the service environment. It can be up to 128 characters long and can contain letters, numbers, hyphens (-), and underscores (_).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serviceEnvironmentType

        CreateServiceEnvironmentRequest.Builder serviceEnvironmentType​(String serviceEnvironmentType)

        The type of service environment. For SageMaker Training jobs, specify SAGEMAKER_TRAINING.

        Parameters:
        serviceEnvironmentType - The type of service environment. For SageMaker Training jobs, specify SAGEMAKER_TRAINING.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ServiceEnvironmentType, ServiceEnvironmentType
      • state

        CreateServiceEnvironmentRequest.Builder state​(String state)

        The state of the service environment. Valid values are ENABLED and DISABLED. The default value is ENABLED.

        Parameters:
        state - The state of the service environment. Valid values are ENABLED and DISABLED. The default value is ENABLED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ServiceEnvironmentState, ServiceEnvironmentState
      • capacityLimits

        CreateServiceEnvironmentRequest.Builder capacityLimits​(Collection<CapacityLimit> capacityLimits)

        The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration.

        Parameters:
        capacityLimits - The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • capacityLimits

        CreateServiceEnvironmentRequest.Builder capacityLimits​(CapacityLimit... capacityLimits)

        The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration.

        Parameters:
        capacityLimits - The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • capacityLimits

        CreateServiceEnvironmentRequest.Builder capacityLimits​(Consumer<CapacityLimit.Builder>... capacityLimits)

        The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration.

        This is a convenience method that creates an instance of the CapacityLimit.Builder avoiding the need to create one manually via CapacityLimit.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #capacityLimits(List).

        Parameters:
        capacityLimits - a consumer that will call methods on CapacityLimit.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #capacityLimits(java.util.Collection)
      • tags

        CreateServiceEnvironmentRequest.Builder tags​(Map<String,​String> tags)

        The tags that you apply to the service environment to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources.

        Parameters:
        tags - The tags that you apply to the service environment to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.