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