Class CfnFunction.DeploymentPreferenceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnFunction.DeploymentPreferenceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.DeploymentPreferenceProperty>
- Enclosing interface:
CfnFunction.DeploymentPreferenceProperty
@Stability(Stable)
public static final class CfnFunction.DeploymentPreferenceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.DeploymentPreferenceProperty>
A builder for
CfnFunction.DeploymentPreferenceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFunction.DeploymentPreferenceProperty.getAlarms()build()Builds the configured instance.Sets the value ofCfnFunction.DeploymentPreferenceProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnFunction.DeploymentPreferenceProperty.getEnabled()hooks(IResolvable hooks) Sets the value ofCfnFunction.DeploymentPreferenceProperty.getHooks()hooks(CfnFunction.HooksProperty hooks) Sets the value ofCfnFunction.DeploymentPreferenceProperty.getHooks()Sets the value ofCfnFunction.DeploymentPreferenceProperty.getRole()Sets the value ofCfnFunction.DeploymentPreferenceProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarms
@Stability(Stable) public CfnFunction.DeploymentPreferenceProperty.Builder alarms(List<String> alarms) Sets the value ofCfnFunction.DeploymentPreferenceProperty.getAlarms()- Parameters:
alarms- the value to be set.- Returns:
this
-
enabled
Sets the value ofCfnFunction.DeploymentPreferenceProperty.getEnabled()- Parameters:
enabled- the value to be set.- Returns:
this
-
enabled
@Stability(Stable) public CfnFunction.DeploymentPreferenceProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnFunction.DeploymentPreferenceProperty.getEnabled()- Parameters:
enabled- the value to be set.- Returns:
this
-
hooks
Sets the value ofCfnFunction.DeploymentPreferenceProperty.getHooks()- Parameters:
hooks- the value to be set.- Returns:
this
-
hooks
@Stability(Stable) public CfnFunction.DeploymentPreferenceProperty.Builder hooks(CfnFunction.HooksProperty hooks) Sets the value ofCfnFunction.DeploymentPreferenceProperty.getHooks()- Parameters:
hooks- the value to be set.- Returns:
this
-
role
Sets the value ofCfnFunction.DeploymentPreferenceProperty.getRole()- Parameters:
role- the value to be set.- Returns:
this
-
type
Sets the value ofCfnFunction.DeploymentPreferenceProperty.getType()- Parameters:
type- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunction.DeploymentPreferenceProperty>- Returns:
- a new instance of
CfnFunction.DeploymentPreferenceProperty - Throws:
NullPointerException- if any required attribute was not provided
-