Class CfnHookDefaultVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnHookDefaultVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHookDefaultVersionProps>
- Enclosing interface:
CfnHookDefaultVersionProps
@Stability(Stable)
public static final class CfnHookDefaultVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHookDefaultVersionProps>
A builder for
CfnHookDefaultVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnHookDefaultVersionProps.getTypeName()
typeVersionArn
(String typeVersionArn) Sets the value ofCfnHookDefaultVersionProps.getTypeVersionArn()
Sets the value ofCfnHookDefaultVersionProps.getVersionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
typeName
Sets the value ofCfnHookDefaultVersionProps.getTypeName()
- Parameters:
typeName
- The name of the hook. You must specify eitherTypeVersionArn
, orTypeName
andVersionId
.- Returns:
this
-
typeVersionArn
Sets the value ofCfnHookDefaultVersionProps.getTypeVersionArn()
- Parameters:
typeVersionArn
- The version ID of the type configuration. You must specify eitherTypeVersionArn
, orTypeName
andVersionId
.- Returns:
this
-
versionId
Sets the value ofCfnHookDefaultVersionProps.getVersionId()
- Parameters:
versionId
- The version ID of the type specified. You must specify eitherTypeVersionArn
, orTypeName
andVersionId
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnHookDefaultVersionProps>
- Returns:
- a new instance of
CfnHookDefaultVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-