Class CfnPlan.EksResourceScalingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.arcregionswitch.CfnPlan.EksResourceScalingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlan.EksResourceScalingConfigurationProperty>
- Enclosing interface:
CfnPlan.EksResourceScalingConfigurationProperty
@Stability(Stable)
public static final class CfnPlan.EksResourceScalingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlan.EksResourceScalingConfigurationProperty>
A builder for
CfnPlan.EksResourceScalingConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityMonitoringApproach(String capacityMonitoringApproach) eksClusters(List<? extends Object> eksClusters) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getEksClusters()eksClusters(IResolvable eksClusters) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getEksClusters()kubernetesResourceType(IResolvable kubernetesResourceType) kubernetesResourceType(CfnPlan.KubernetesResourceTypeProperty kubernetesResourceType) scalingResources(List<? extends Object> scalingResources) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getScalingResources()scalingResources(IResolvable scalingResources) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getScalingResources()targetPercent(Number targetPercent) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getTargetPercent()timeoutMinutes(Number timeoutMinutes) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getTimeoutMinutes()ungraceful(IResolvable ungraceful) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getUngraceful()Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getUngraceful()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kubernetesResourceType
@Stability(Stable) public CfnPlan.EksResourceScalingConfigurationProperty.Builder kubernetesResourceType(IResolvable kubernetesResourceType) - Parameters:
kubernetesResourceType- The Kubernetes resource type for the configuration. This parameter is required.- Returns:
this
-
kubernetesResourceType
@Stability(Stable) public CfnPlan.EksResourceScalingConfigurationProperty.Builder kubernetesResourceType(CfnPlan.KubernetesResourceTypeProperty kubernetesResourceType) - Parameters:
kubernetesResourceType- The Kubernetes resource type for the configuration. This parameter is required.- Returns:
this
-
capacityMonitoringApproach
@Stability(Stable) public CfnPlan.EksResourceScalingConfigurationProperty.Builder capacityMonitoringApproach(String capacityMonitoringApproach) - 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 CfnPlan.EksResourceScalingConfigurationProperty.Builder eksClusters(IResolvable eksClusters) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getEksClusters()- Parameters:
eksClusters- The clusters for the configuration.- Returns:
this
-
eksClusters
@Stability(Stable) public CfnPlan.EksResourceScalingConfigurationProperty.Builder eksClusters(List<? extends Object> eksClusters) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getEksClusters()- Parameters:
eksClusters- The clusters for the configuration.- Returns:
this
-
scalingResources
@Stability(Stable) public CfnPlan.EksResourceScalingConfigurationProperty.Builder scalingResources(IResolvable scalingResources) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getScalingResources()- Parameters:
scalingResources- The scaling resources for the configuration.- Returns:
this
-
scalingResources
@Stability(Stable) public CfnPlan.EksResourceScalingConfigurationProperty.Builder scalingResources(List<? extends Object> scalingResources) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getScalingResources()- Parameters:
scalingResources- The scaling resources for the configuration.- Returns:
this
-
targetPercent
@Stability(Stable) public CfnPlan.EksResourceScalingConfigurationProperty.Builder targetPercent(Number targetPercent) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getTargetPercent()- Parameters:
targetPercent- The target percentage for the configuration.- Returns:
this
-
timeoutMinutes
@Stability(Stable) public CfnPlan.EksResourceScalingConfigurationProperty.Builder timeoutMinutes(Number timeoutMinutes) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getTimeoutMinutes()- Parameters:
timeoutMinutes- The timeout value specified for the configuration.- Returns:
this
-
ungraceful
@Stability(Stable) public CfnPlan.EksResourceScalingConfigurationProperty.Builder ungraceful(IResolvable ungraceful) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getUngraceful()- Parameters:
ungraceful- The settings for ungraceful execution.- Returns:
this
-
ungraceful
@Stability(Stable) public CfnPlan.EksResourceScalingConfigurationProperty.Builder ungraceful(CfnPlan.EksResourceScalingUngracefulProperty ungraceful) Sets the value ofCfnPlan.EksResourceScalingConfigurationProperty.getUngraceful()- Parameters:
ungraceful- The settings for ungraceful execution.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPlan.EksResourceScalingConfigurationProperty>- Returns:
- a new instance of
CfnPlan.EksResourceScalingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-