Class CfnResourceDefaultVersion.Builder

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

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

    • create

      @Stability(Stable) public static CfnResourceDefaultVersion.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 CfnResourceDefaultVersion.Builder.
    • typeName

      @Stability(Stable) public CfnResourceDefaultVersion.Builder typeName(String typeName)
      The name of the resource.

      Conditional: You must specify either TypeVersionArn , or TypeName and VersionId .

      Parameters:
      typeName - The name of the resource. This parameter is required.
      Returns:
      this
    • typeVersionArn

      @Stability(Stable) public CfnResourceDefaultVersion.Builder typeVersionArn(String typeVersionArn)
      The Amazon Resource Name (ARN) of the resource version.

      Conditional: You must specify either TypeVersionArn , or TypeName and VersionId .

      Parameters:
      typeVersionArn - The Amazon Resource Name (ARN) of the resource version. This parameter is required.
      Returns:
      this
    • versionId

      @Stability(Stable) public CfnResourceDefaultVersion.Builder versionId(String versionId)
      The ID of a specific version of the resource.

      The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the resource version when it's registered.

      Conditional: You must specify either TypeVersionArn , or TypeName and VersionId .

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

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