Class InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions>
- Enclosing interface:
InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions
@Stability(Experimental)
public static final class InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions.Builder
extends Object
implements software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions>
A builder for
InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy(List<String> allocationStrategy) build()Builds the configured instance.instancePoolConstraintFilterDisabled(List<String> instancePoolConstraintFilterDisabled) maxInstanceCount(List<String> maxInstanceCount) maxTargetCapacity(List<String> maxTargetCapacity)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationStrategy
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions.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.OnDemandOptions.Builder instancePoolConstraintFilterDisabled(List<String> instancePoolConstraintFilterDisabled) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions.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
-
maxInstanceCount
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions.Builder maxInstanceCount(List<String> maxInstanceCount) - 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.OnDemandOptions.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.OnDemandOptions>- Returns:
- a new instance of
InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions - Throws:
NullPointerException- if any required attribute was not provided
-