Class InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification>
- Enclosing interface:
InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification
@Stability(Experimental)
public static final class InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification.Builder
extends Object
implements software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultTargetCapacityType(List<String> defaultTargetCapacityType) onDemandTargetCapacity(List<String> onDemandTargetCapacity) spotTargetCapacity(List<String> spotTargetCapacity) totalTargetCapacity(List<String> totalTargetCapacity)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultTargetCapacityType
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification.Builder defaultTargetCapacityType(List<String> defaultTargetCapacityType) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification.getDefaultTargetCapacityType()- Parameters:
defaultTargetCapacityType- DefaultTargetCapacityType property. Specify an array of string values to match this event if the actual value of DefaultTargetCapacityType is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
onDemandTargetCapacity
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification.Builder onDemandTargetCapacity(List<String> onDemandTargetCapacity) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification.getOnDemandTargetCapacity()- Parameters:
onDemandTargetCapacity- OnDemandTargetCapacity property. Specify an array of string values to match this event if the actual value of OnDemandTargetCapacity is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
spotTargetCapacity
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification.Builder spotTargetCapacity(List<String> spotTargetCapacity) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification.getSpotTargetCapacity()- Parameters:
spotTargetCapacity- SpotTargetCapacity property. Specify an array of string values to match this event if the actual value of SpotTargetCapacity is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
totalTargetCapacity
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification.Builder totalTargetCapacity(List<String> totalTargetCapacity) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification.getTotalTargetCapacity()- Parameters:
totalTargetCapacity- TotalTargetCapacity property. Specify an array of string values to match this event if the actual value of TotalTargetCapacity is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification>- Returns:
- a new instance of
InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification - Throws:
NullPointerException- if any required attribute was not provided
-