Class CfnComputeNodeGroup.ScriptSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnComputeNodeGroup.ScriptSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeNodeGroup.ScriptSourceProperty>
- Enclosing interface:
CfnComputeNodeGroup.ScriptSourceProperty
@Stability(Stable)
public static final class CfnComputeNodeGroup.ScriptSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeNodeGroup.ScriptSourceProperty>
A builder for
CfnComputeNodeGroup.ScriptSourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnComputeNodeGroup.ScriptSourceProperty.getChecksum()s3VersionId(String s3VersionId) Sets the value ofCfnComputeNodeGroup.ScriptSourceProperty.getS3VersionId()scriptLocation(String scriptLocation) Sets the value ofCfnComputeNodeGroup.ScriptSourceProperty.getScriptLocation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scriptLocation
@Stability(Stable) public CfnComputeNodeGroup.ScriptSourceProperty.Builder scriptLocation(String scriptLocation) Sets the value ofCfnComputeNodeGroup.ScriptSourceProperty.getScriptLocation()- Parameters:
scriptLocation- The S3 URI or HTTPS URL where the script is stored. This parameter is required.- Returns:
this
-
checksum
@Stability(Stable) public CfnComputeNodeGroup.ScriptSourceProperty.Builder checksum(String checksum) Sets the value ofCfnComputeNodeGroup.ScriptSourceProperty.getChecksum()- Parameters:
checksum- A 64-character hexadecimal SHA-256 digest used to verify script integrity.- Returns:
this
-
s3VersionId
@Stability(Stable) public CfnComputeNodeGroup.ScriptSourceProperty.Builder s3VersionId(String s3VersionId) Sets the value ofCfnComputeNodeGroup.ScriptSourceProperty.getS3VersionId()- Parameters:
s3VersionId- The S3 object version ID of the script, when stored in a versioned bucket.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeNodeGroup.ScriptSourceProperty>- Returns:
- a new instance of
CfnComputeNodeGroup.ScriptSourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-