Class CfnModuleDefaultVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnModuleDefaultVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModuleDefaultVersionProps>
- Enclosing interface:
- CfnModuleDefaultVersionProps
@Stability(Stable)
public static final class CfnModuleDefaultVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModuleDefaultVersionProps>
A builder for
CfnModuleDefaultVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnModuleDefaultVersionProps.getArn()
build()
Builds the configured instance.moduleName
(String moduleName) Sets the value ofCfnModuleDefaultVersionProps.getModuleName()
Sets the value ofCfnModuleDefaultVersionProps.getVersionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnModuleDefaultVersionProps.getArn()
- Parameters:
arn
- The Amazon Resource Name (ARN) of the module version to set as the default version. Conditional: You must specify eitherArn
, orModuleName
andVersionId
.- Returns:
this
-
moduleName
Sets the value ofCfnModuleDefaultVersionProps.getModuleName()
- Parameters:
moduleName
- The name of the module. Conditional: You must specify eitherArn
, orModuleName
andVersionId
.- Returns:
this
-
versionId
Sets the value ofCfnModuleDefaultVersionProps.getVersionId()
- Parameters:
versionId
- The ID for the specific version of the module. Conditional: You must specify eitherArn
, orModuleName
andVersionId
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModuleDefaultVersionProps>
- Returns:
- a new instance of
CfnModuleDefaultVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-