Package software.amazon.awscdk
Class CfnResourceDefaultVersionProps.Builder
java.lang.Object
software.amazon.awscdk.CfnResourceDefaultVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceDefaultVersionProps>
- Enclosing interface:
CfnResourceDefaultVersionProps
@Stability(Stable)
public static final class CfnResourceDefaultVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceDefaultVersionProps>
A builder for
CfnResourceDefaultVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnResourceDefaultVersionProps.getTypeName()
typeVersionArn
(String typeVersionArn) Sets the value ofCfnResourceDefaultVersionProps.getTypeVersionArn()
Sets the value ofCfnResourceDefaultVersionProps.getVersionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
typeName
Sets the value ofCfnResourceDefaultVersionProps.getTypeName()
- Parameters:
typeName
- The name of the resource. Conditional: You must specify eitherTypeVersionArn
, orTypeName
andVersionId
.- Returns:
this
-
typeVersionArn
@Stability(Stable) public CfnResourceDefaultVersionProps.Builder typeVersionArn(String typeVersionArn) Sets the value ofCfnResourceDefaultVersionProps.getTypeVersionArn()
- Parameters:
typeVersionArn
- The Amazon Resource Name (ARN) of the resource version. Conditional: You must specify eitherTypeVersionArn
, orTypeName
andVersionId
.- Returns:
this
-
versionId
Sets the value ofCfnResourceDefaultVersionProps.getVersionId()
- Parameters:
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
, orTypeName
andVersionId
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceDefaultVersionProps>
- Returns:
- a new instance of
CfnResourceDefaultVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-