Class CfnSchedulingPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnSchedulingPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchedulingPolicyProps>
- Enclosing interface:
CfnSchedulingPolicyProps
@Stability(Stable)
public static final class CfnSchedulingPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchedulingPolicyProps>
A builder for
CfnSchedulingPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.fairsharePolicy(IResolvable fairsharePolicy) Sets the value ofCfnSchedulingPolicyProps.getFairsharePolicy()fairsharePolicy(CfnSchedulingPolicy.FairsharePolicyProperty fairsharePolicy) Sets the value ofCfnSchedulingPolicyProps.getFairsharePolicy()Sets the value ofCfnSchedulingPolicyProps.getName()Sets the value ofCfnSchedulingPolicyProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnSchedulingPolicyProps.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 ofCfnSchedulingPolicyProps.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<CfnSchedulingPolicyProps>- Returns:
- a new instance of
CfnSchedulingPolicyProps - Throws:
NullPointerException- if any required attribute was not provided