Class AWSAPICallViaCloudTrail.InstancesDistribution.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.autoscaling.events.AWSAPICallViaCloudTrail.InstancesDistribution.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.InstancesDistribution>
- Enclosing interface:
AWSAPICallViaCloudTrail.InstancesDistribution
@Stability(Experimental)
public static final class AWSAPICallViaCloudTrail.InstancesDistribution.Builder
extends Object
implements software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.InstancesDistribution>
A builder for
AWSAPICallViaCloudTrail.InstancesDistribution-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.onDemandAllocationStrategy(List<String> onDemandAllocationStrategy) onDemandBaseCapacity(List<String> onDemandBaseCapacity) Sets the value ofAWSAPICallViaCloudTrail.InstancesDistribution.getOnDemandBaseCapacity()onDemandPercentageAboveBaseCapacity(List<String> onDemandPercentageAboveBaseCapacity) spotAllocationStrategy(List<String> spotAllocationStrategy) spotInstancePools(List<String> spotInstancePools) Sets the value ofAWSAPICallViaCloudTrail.InstancesDistribution.getSpotInstancePools()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onDemandAllocationStrategy
@Stability(Experimental) public AWSAPICallViaCloudTrail.InstancesDistribution.Builder onDemandAllocationStrategy(List<String> onDemandAllocationStrategy) - Parameters:
onDemandAllocationStrategy- onDemandAllocationStrategy property. Specify an array of string values to match this event if the actual value of onDemandAllocationStrategy is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
onDemandBaseCapacity
@Stability(Experimental) public AWSAPICallViaCloudTrail.InstancesDistribution.Builder onDemandBaseCapacity(List<String> onDemandBaseCapacity) Sets the value ofAWSAPICallViaCloudTrail.InstancesDistribution.getOnDemandBaseCapacity()- Parameters:
onDemandBaseCapacity- onDemandBaseCapacity property. Specify an array of string values to match this event if the actual value of onDemandBaseCapacity is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
onDemandPercentageAboveBaseCapacity
@Stability(Experimental) public AWSAPICallViaCloudTrail.InstancesDistribution.Builder onDemandPercentageAboveBaseCapacity(List<String> onDemandPercentageAboveBaseCapacity) Sets the value ofAWSAPICallViaCloudTrail.InstancesDistribution.getOnDemandPercentageAboveBaseCapacity()- Parameters:
onDemandPercentageAboveBaseCapacity- onDemandPercentageAboveBaseCapacity property. Specify an array of string values to match this event if the actual value of onDemandPercentageAboveBaseCapacity is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
spotAllocationStrategy
@Stability(Experimental) public AWSAPICallViaCloudTrail.InstancesDistribution.Builder spotAllocationStrategy(List<String> spotAllocationStrategy) - Parameters:
spotAllocationStrategy- spotAllocationStrategy property. Specify an array of string values to match this event if the actual value of spotAllocationStrategy is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
spotInstancePools
@Stability(Experimental) public AWSAPICallViaCloudTrail.InstancesDistribution.Builder spotInstancePools(List<String> spotInstancePools) Sets the value ofAWSAPICallViaCloudTrail.InstancesDistribution.getSpotInstancePools()- Parameters:
spotInstancePools- spotInstancePools property. Specify an array of string values to match this event if the actual value of spotInstancePools is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AWSAPICallViaCloudTrail.InstancesDistribution>- Returns:
- a new instance of
AWSAPICallViaCloudTrail.InstancesDistribution - Throws:
NullPointerException- if any required attribute was not provided
-