Class CfnModuleDefaultVersion.Builder

java.lang.Object
software.amazon.awscdk.core.CfnModuleDefaultVersion.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModuleDefaultVersion>
Enclosing class:
CfnModuleDefaultVersion

@Stability(Stable) public static final class CfnModuleDefaultVersion.Builder extends Object implements software.amazon.jsii.Builder<CfnModuleDefaultVersion>
A fluent builder for CfnModuleDefaultVersion.
  • Method Details

    • create

      @Stability(Stable) public static CfnModuleDefaultVersion.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnModuleDefaultVersion.Builder.
    • arn

      @Stability(Stable) public CfnModuleDefaultVersion.Builder arn(String arn)
      The Amazon Resource Name (ARN) of the module version to set as the default version.

      Conditional: You must specify either Arn , or ModuleName and VersionId .

      Parameters:
      arn - The Amazon Resource Name (ARN) of the module version to set as the default version. This parameter is required.
      Returns:
      this
    • moduleName

      @Stability(Stable) public CfnModuleDefaultVersion.Builder moduleName(String moduleName)
      The name of the module.

      Conditional: You must specify either Arn , or ModuleName and VersionId .

      Parameters:
      moduleName - The name of the module. This parameter is required.
      Returns:
      this
    • versionId

      @Stability(Stable) public CfnModuleDefaultVersion.Builder versionId(String versionId)
      The ID for the specific version of the module.

      Conditional: You must specify either Arn , or ModuleName and VersionId .

      Parameters:
      versionId - The ID for the specific version of the module. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnModuleDefaultVersion build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnModuleDefaultVersion>
      Returns:
      a newly built instance of CfnModuleDefaultVersion.