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
-
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.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnFunction.DeploymentPreferenceProperty.getEnabled()
- Parameters:
enabled
-CfnFunction.DeploymentPreferenceProperty.Enabled
. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnFunction.DeploymentPreferenceProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnFunction.DeploymentPreferenceProperty.getEnabled()
- Parameters:
enabled
-CfnFunction.DeploymentPreferenceProperty.Enabled
. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnFunction.DeploymentPreferenceProperty.getType()
- Parameters:
type
-CfnFunction.DeploymentPreferenceProperty.Type
. This parameter is required.- Returns:
this
-
alarms
@Stability(Stable) public CfnFunction.DeploymentPreferenceProperty.Builder alarms(List<String> alarms) Sets the value ofCfnFunction.DeploymentPreferenceProperty.getAlarms()
- Parameters:
alarms
-CfnFunction.DeploymentPreferenceProperty.Alarms
.- Returns:
this
-
hooks
Sets the value ofCfnFunction.DeploymentPreferenceProperty.getHooks()
- Parameters:
hooks
-CfnFunction.DeploymentPreferenceProperty.Hooks
.- Returns:
this
-
hooks
@Stability(Stable) public CfnFunction.DeploymentPreferenceProperty.Builder hooks(CfnFunction.HooksProperty hooks) Sets the value ofCfnFunction.DeploymentPreferenceProperty.getHooks()
- Parameters:
hooks
-CfnFunction.DeploymentPreferenceProperty.Hooks
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunction.DeploymentPreferenceProperty>
- Returns:
- a new instance of
CfnFunction.DeploymentPreferenceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-