Class InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions>
- Enclosing interface:
InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions
@Stability(Experimental)
public static final class InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions.Builder
extends Object
implements software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions>
A builder for
InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy(List<String> allocationStrategy) build()Builds the configured instance.instancePoolConstraintFilterDisabled(List<String> instancePoolConstraintFilterDisabled) instancePoolsToUseCount(List<String> instancePoolsToUseCount) maxInstanceCount(List<String> maxInstanceCount) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.SpotOptions.getMaxInstanceCount()maxTargetCapacity(List<String> maxTargetCapacity)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationStrategy
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions.Builder allocationStrategy(List<String> allocationStrategy) - Parameters:
allocationStrategy- AllocationStrategy property. Specify an array of string values to match this event if the actual value of AllocationStrategy is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
instancePoolConstraintFilterDisabled
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions.Builder instancePoolConstraintFilterDisabled(List<String> instancePoolConstraintFilterDisabled) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.SpotOptions.getInstancePoolConstraintFilterDisabled()- Parameters:
instancePoolConstraintFilterDisabled- InstancePoolConstraintFilterDisabled property. Specify an array of string values to match this event if the actual value of InstancePoolConstraintFilterDisabled is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
instancePoolsToUseCount
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions.Builder instancePoolsToUseCount(List<String> instancePoolsToUseCount) - Parameters:
instancePoolsToUseCount- InstancePoolsToUseCount property. Specify an array of string values to match this event if the actual value of InstancePoolsToUseCount is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
maxInstanceCount
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions.Builder maxInstanceCount(List<String> maxInstanceCount) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.SpotOptions.getMaxInstanceCount()- Parameters:
maxInstanceCount- MaxInstanceCount property. Specify an array of string values to match this event if the actual value of MaxInstanceCount is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
maxTargetCapacity
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions.Builder maxTargetCapacity(List<String> maxTargetCapacity) - Parameters:
maxTargetCapacity- MaxTargetCapacity property. Specify an array of string values to match this event if the actual value of MaxTargetCapacity 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<InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions>- Returns:
- a new instance of
InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions - Throws:
NullPointerException- if any required attribute was not provided
-