Class CfnServicePropsMixin.ThresholdConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnServicePropsMixin.ThresholdConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.ThresholdConfigurationProperty>
- Enclosing interface:
CfnServicePropsMixin.ThresholdConfigurationProperty
@Stability(Stable)
public static final class CfnServicePropsMixin.ThresholdConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServicePropsMixin.ThresholdConfigurationProperty>
A builder for
CfnServicePropsMixin.ThresholdConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnServicePropsMixin.ThresholdConfigurationProperty.getType()Sets the value ofCfnServicePropsMixin.ThresholdConfigurationProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
@Stability(Stable) public CfnServicePropsMixin.ThresholdConfigurationProperty.Builder type(String type) Sets the value ofCfnServicePropsMixin.ThresholdConfigurationProperty.getType()- Parameters:
type- Determines how Amazon ECS usesvalueto calculate the failure threshold. For the percentage types (BOUNDED_PERCENTandUNBOUNDED_PERCENT), Amazon ECS multipliesvalueby the latest service desired count. ForCOUNT, Amazon ECS usesvaluedirectly as the threshold. The default isBOUNDED_PERCENT.- Returns:
this
-
value
@Stability(Stable) public CfnServicePropsMixin.ThresholdConfigurationProperty.Builder value(Number value) Sets the value ofCfnServicePropsMixin.ThresholdConfigurationProperty.getValue()- Parameters:
value- Specifies the integer that Amazon ECS uses to calculate the failure threshold. WhentypeisCOUNT, this value is the failure threshold itself. Whentypeis a percentage type, Amazon ECS multiplies this value by the latest service desired count to produce the failure threshold. The default is50.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServicePropsMixin.ThresholdConfigurationProperty>- Returns:
- a new instance of
CfnServicePropsMixin.ThresholdConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-