Class CfnSchedulingPolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.batch.CfnSchedulingPolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchedulingPolicyMixinProps>
- Enclosing interface:
CfnSchedulingPolicyMixinProps
@Stability(Stable)
public static final class CfnSchedulingPolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchedulingPolicyMixinProps>
A builder for
CfnSchedulingPolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.fairsharePolicy(CfnSchedulingPolicyPropsMixin.FairsharePolicyProperty fairsharePolicy) Sets the value ofCfnSchedulingPolicyMixinProps.getFairsharePolicy()fairsharePolicy(IResolvable fairsharePolicy) Sets the value ofCfnSchedulingPolicyMixinProps.getFairsharePolicy()Sets the value ofCfnSchedulingPolicyMixinProps.getName()Sets the value ofCfnSchedulingPolicyMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnSchedulingPolicyMixinProps.getName()- Parameters:
name- The name of the fair-share scheduling policy. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).- Returns:
this
-
tags
Sets the value ofCfnSchedulingPolicyMixinProps.getTags()- Parameters:
tags- The tags that you apply to the scheduling policy to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS General Reference .These tags can be updated or removed using the TagResource and UntagResource API operations.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSchedulingPolicyMixinProps>- Returns:
- a new instance of
CfnSchedulingPolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided