Class CfnDeployment.DeploymentPoliciesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrassv2.CfnDeployment.DeploymentPoliciesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeployment.DeploymentPoliciesProperty>
- Enclosing interface:
CfnDeployment.DeploymentPoliciesProperty
@Stability(Stable)
public static final class CfnDeployment.DeploymentPoliciesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeployment.DeploymentPoliciesProperty>
A builder for
CfnDeployment.DeploymentPoliciesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.componentUpdatePolicy(IResolvable componentUpdatePolicy) Sets the value ofCfnDeployment.DeploymentPoliciesProperty.getComponentUpdatePolicy()componentUpdatePolicy(CfnDeployment.DeploymentComponentUpdatePolicyProperty componentUpdatePolicy) Sets the value ofCfnDeployment.DeploymentPoliciesProperty.getComponentUpdatePolicy()configurationValidationPolicy(IResolvable configurationValidationPolicy) configurationValidationPolicy(CfnDeployment.DeploymentConfigurationValidationPolicyProperty configurationValidationPolicy) failureHandlingPolicy(String failureHandlingPolicy) Sets the value ofCfnDeployment.DeploymentPoliciesProperty.getFailureHandlingPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
componentUpdatePolicy
@Stability(Stable) public CfnDeployment.DeploymentPoliciesProperty.Builder componentUpdatePolicy(IResolvable componentUpdatePolicy) Sets the value ofCfnDeployment.DeploymentPoliciesProperty.getComponentUpdatePolicy()- 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 CfnDeployment.DeploymentPoliciesProperty.Builder componentUpdatePolicy(CfnDeployment.DeploymentComponentUpdatePolicyProperty componentUpdatePolicy) Sets the value ofCfnDeployment.DeploymentPoliciesProperty.getComponentUpdatePolicy()- 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 CfnDeployment.DeploymentPoliciesProperty.Builder configurationValidationPolicy(IResolvable configurationValidationPolicy) - 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 CfnDeployment.DeploymentPoliciesProperty.Builder configurationValidationPolicy(CfnDeployment.DeploymentConfigurationValidationPolicyProperty configurationValidationPolicy) - 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 CfnDeployment.DeploymentPoliciesProperty.Builder failureHandlingPolicy(String failureHandlingPolicy) Sets the value ofCfnDeployment.DeploymentPoliciesProperty.getFailureHandlingPolicy()- 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<CfnDeployment.DeploymentPoliciesProperty>- Returns:
- a new instance of
CfnDeployment.DeploymentPoliciesProperty - Throws:
NullPointerException- if any required attribute was not provided
-