Class CfnDeploymentPropsMixin.DeploymentPoliciesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.greengrassv2.CfnDeploymentPropsMixin.DeploymentPoliciesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentPropsMixin.DeploymentPoliciesProperty>
- Enclosing interface:
CfnDeploymentPropsMixin.DeploymentPoliciesProperty
@Stability(Stable)
public static final class CfnDeploymentPropsMixin.DeploymentPoliciesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentPropsMixin.DeploymentPoliciesProperty>
A builder for
CfnDeploymentPropsMixin.DeploymentPoliciesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.componentUpdatePolicy(CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty componentUpdatePolicy) componentUpdatePolicy(IResolvable componentUpdatePolicy) configurationValidationPolicy(CfnDeploymentPropsMixin.DeploymentConfigurationValidationPolicyProperty configurationValidationPolicy) configurationValidationPolicy(IResolvable configurationValidationPolicy) failureHandlingPolicy(String failureHandlingPolicy)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
componentUpdatePolicy
@Stability(Stable) public CfnDeploymentPropsMixin.DeploymentPoliciesProperty.Builder componentUpdatePolicy(IResolvable componentUpdatePolicy) - Parameters:
componentUpdatePolicy- The component update policy for the configuration deployment. This policy defines when it's safe to deploy the configuration to devices.- Returns:
this
-
componentUpdatePolicy
@Stability(Stable) public CfnDeploymentPropsMixin.DeploymentPoliciesProperty.Builder componentUpdatePolicy(CfnDeploymentPropsMixin.DeploymentComponentUpdatePolicyProperty componentUpdatePolicy) - Parameters:
componentUpdatePolicy- The component update policy for the configuration deployment. This policy defines when it's safe to deploy the configuration to devices.- Returns:
this
-
configurationValidationPolicy
@Stability(Stable) public CfnDeploymentPropsMixin.DeploymentPoliciesProperty.Builder configurationValidationPolicy(IResolvable configurationValidationPolicy) Sets the value ofCfnDeploymentPropsMixin.DeploymentPoliciesProperty.getConfigurationValidationPolicy()- Parameters:
configurationValidationPolicy- The configuration validation policy for the configuration deployment. This policy defines how long each component has to validate its configure updates.- Returns:
this
-
configurationValidationPolicy
@Stability(Stable) public CfnDeploymentPropsMixin.DeploymentPoliciesProperty.Builder configurationValidationPolicy(CfnDeploymentPropsMixin.DeploymentConfigurationValidationPolicyProperty configurationValidationPolicy) Sets the value ofCfnDeploymentPropsMixin.DeploymentPoliciesProperty.getConfigurationValidationPolicy()- Parameters:
configurationValidationPolicy- The configuration validation policy for the configuration deployment. This policy defines how long each component has to validate its configure updates.- Returns:
this
-
failureHandlingPolicy
@Stability(Stable) public CfnDeploymentPropsMixin.DeploymentPoliciesProperty.Builder failureHandlingPolicy(String failureHandlingPolicy) - Parameters:
failureHandlingPolicy- The failure handling policy for the configuration deployment. This policy defines what to do if the deployment fails. Default:ROLLBACK- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentPropsMixin.DeploymentPoliciesProperty>- Returns:
- a new instance of
CfnDeploymentPropsMixin.DeploymentPoliciesProperty - Throws:
NullPointerException- if any required attribute was not provided
-