Package software.amazon.awscdk
Class CfnHookTypeConfigProps.Builder
java.lang.Object
software.amazon.awscdk.CfnHookTypeConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHookTypeConfigProps>
- Enclosing interface:
CfnHookTypeConfigProps
@Stability(Stable)
public static final class CfnHookTypeConfigProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHookTypeConfigProps>
A builder for
CfnHookTypeConfigProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configuration
(String configuration) Sets the value ofCfnHookTypeConfigProps.getConfiguration()
configurationAlias
(String configurationAlias) Sets the value ofCfnHookTypeConfigProps.getConfigurationAlias()
Sets the value ofCfnHookTypeConfigProps.getTypeArn()
Sets the value ofCfnHookTypeConfigProps.getTypeName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configuration
Sets the value ofCfnHookTypeConfigProps.getConfiguration()
- Parameters:
configuration
- Specifies the activated Hook type configuration, in this AWS account and AWS Region . This parameter is required. You must specify eitherTypeName
andConfiguration
orTypeArn
andConfiguration
.- Returns:
this
-
configurationAlias
@Stability(Stable) public CfnHookTypeConfigProps.Builder configurationAlias(String configurationAlias) Sets the value ofCfnHookTypeConfigProps.getConfigurationAlias()
- Parameters:
configurationAlias
- Specifies the activated Hook type configuration, in this AWS account and AWS Region . Defaults todefault
alias. Hook types currently support default configuration alias.- Returns:
this
-
typeArn
Sets the value ofCfnHookTypeConfigProps.getTypeArn()
- Parameters:
typeArn
- The Amazon Resource Number (ARN) for the Hook to setConfiguration
for. You must specify eitherTypeName
andConfiguration
orTypeArn
andConfiguration
.- Returns:
this
-
typeName
Sets the value ofCfnHookTypeConfigProps.getTypeName()
- Parameters:
typeName
- The unique name for your Hook. Specifies a three-part namespace for your Hook, with a recommended pattern ofOrganization::Service::Hook
.You must specify either
TypeName
andConfiguration
orTypeArn
andConfiguration
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnHookTypeConfigProps>
- Returns:
- a new instance of
CfnHookTypeConfigProps
- Throws:
NullPointerException
- if any required attribute was not provided
-