Class CfnSchedulingPolicy.ShareAttributesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnSchedulingPolicy.ShareAttributesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchedulingPolicy.ShareAttributesProperty>
- Enclosing interface:
CfnSchedulingPolicy.ShareAttributesProperty
@Stability(Stable)
public static final class CfnSchedulingPolicy.ShareAttributesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchedulingPolicy.ShareAttributesProperty>
A builder for
CfnSchedulingPolicy.ShareAttributesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.shareIdentifier
(String shareIdentifier) Sets the value ofCfnSchedulingPolicy.ShareAttributesProperty.getShareIdentifier()
weightFactor
(Number weightFactor) Sets the value ofCfnSchedulingPolicy.ShareAttributesProperty.getWeightFactor()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
weightFactor
@Stability(Stable) public CfnSchedulingPolicy.ShareAttributesProperty.Builder weightFactor(Number weightFactor) Sets the value ofCfnSchedulingPolicy.ShareAttributesProperty.getWeightFactor()
- Parameters:
weightFactor
- The weight factor for the fair share identifier. The default value is 1.0. A lower value has a higher priority for compute resources. For example, jobs that use a share identifier with a weight factor of 0.125 (1/8) get 8 times the compute resources of jobs that use a share identifier with a weight factor of 1.The smallest supported value is 0.0001, and the largest supported value is 999.9999.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSchedulingPolicy.ShareAttributesProperty>
- Returns:
- a new instance of
CfnSchedulingPolicy.ShareAttributesProperty
- Throws:
NullPointerException
- if any required attribute was not provided