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