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
Constructors -
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 eitherTypeNameandConfigurationorTypeArnandConfiguration.- Returns:
this
-
configurationAlias
@Stability(Stable) public CfnHookTypeConfigProps.Builder configurationAlias(String configurationAlias) Sets the value ofCfnHookTypeConfigProps.getConfigurationAlias()- Parameters:
configurationAlias- An alias by which to refer to this configuration data. Defaults todefaultalias. 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 setConfigurationfor. You must specify eitherTypeNameandConfigurationorTypeArnandConfiguration.- 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
TypeNameandConfigurationorTypeArnandConfiguration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHookTypeConfigProps>- Returns:
- a new instance of
CfnHookTypeConfigProps - Throws:
NullPointerException- if any required attribute was not provided
-