Class CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.arcregionswitch.CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlanPropsMixin.EksResourceScalingConfigurationProperty>
- Enclosing interface:
CfnPlanPropsMixin.EksResourceScalingConfigurationProperty
@Stability(Stable)
public static final class CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlanPropsMixin.EksResourceScalingConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityMonitoringApproach(String capacityMonitoringApproach) eksClusters(List<? extends Object> eksClusters) eksClusters(IResolvable eksClusters) kubernetesResourceType(CfnPlanPropsMixin.KubernetesResourceTypeProperty kubernetesResourceType) kubernetesResourceType(IResolvable kubernetesResourceType) scalingResources(List<? extends Object> scalingResources) scalingResources(IResolvable scalingResources) targetPercent(Number targetPercent) timeoutMinutes(Number timeoutMinutes) ungraceful(IResolvable ungraceful)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityMonitoringApproach
@Stability(Stable) public CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder capacityMonitoringApproach(String capacityMonitoringApproach) Sets the value ofCfnPlanPropsMixin.EksResourceScalingConfigurationProperty.getCapacityMonitoringApproach()- Parameters:
capacityMonitoringApproach- The monitoring approach for the configuration, that is, whether it was sampled in the last 24 hours or autoscaled in the last 24 hours.- Returns:
this
-
eksClusters
@Stability(Stable) public CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder eksClusters(IResolvable eksClusters) - Parameters:
eksClusters- The clusters for the configuration.- Returns:
this
-
eksClusters
@Stability(Stable) public CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder eksClusters(List<? extends Object> eksClusters) - Parameters:
eksClusters- The clusters for the configuration.- Returns:
this
-
kubernetesResourceType
@Stability(Stable) public CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder kubernetesResourceType(IResolvable kubernetesResourceType) Sets the value ofCfnPlanPropsMixin.EksResourceScalingConfigurationProperty.getKubernetesResourceType()- Parameters:
kubernetesResourceType- The Kubernetes resource type for the configuration.- Returns:
this
-
kubernetesResourceType
@Stability(Stable) public CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder kubernetesResourceType(CfnPlanPropsMixin.KubernetesResourceTypeProperty kubernetesResourceType) Sets the value ofCfnPlanPropsMixin.EksResourceScalingConfigurationProperty.getKubernetesResourceType()- Parameters:
kubernetesResourceType- The Kubernetes resource type for the configuration.- Returns:
this
-
scalingResources
@Stability(Stable) public CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder scalingResources(IResolvable scalingResources) - Parameters:
scalingResources- The scaling resources for the configuration.- Returns:
this
-
scalingResources
@Stability(Stable) public CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder scalingResources(List<? extends Object> scalingResources) - Parameters:
scalingResources- The scaling resources for the configuration.- Returns:
this
-
targetPercent
@Stability(Stable) public CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder targetPercent(Number targetPercent) - Parameters:
targetPercent- The target percentage for the configuration.- Returns:
this
-
timeoutMinutes
@Stability(Stable) public CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder timeoutMinutes(Number timeoutMinutes) - Parameters:
timeoutMinutes- The timeout value specified for the configuration.- Returns:
this
-
ungraceful
@Stability(Stable) public CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder ungraceful(IResolvable ungraceful) - Parameters:
ungraceful- The settings for ungraceful execution.- Returns:
this
-
ungraceful
@Stability(Stable) public CfnPlanPropsMixin.EksResourceScalingConfigurationProperty.Builder ungraceful(CfnPlanPropsMixin.EksResourceScalingUngracefulProperty ungraceful) - Parameters:
ungraceful- The settings for ungraceful execution.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPlanPropsMixin.EksResourceScalingConfigurationProperty>- Returns:
- a new instance of
CfnPlanPropsMixin.EksResourceScalingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-