Class InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest>
- Enclosing interface:
InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest
@Stability(Experimental)
public static final class InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder
extends Object
implements software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clientToken(List<String> clientToken) existingInstances(InstanceEvents.AWSAPICallViaCloudTrail.ExistingInstances existingInstances) launchTemplateConfigs(InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateConfigs launchTemplateConfigs) onDemandOptions(InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions onDemandOptions) tagSpecification(InstanceEvents.AWSAPICallViaCloudTrail.TagSpecification tagSpecification) targetCapacitySpecification(InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification targetCapacitySpecification) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientToken
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder clientToken(List<String> clientToken) - Parameters:
clientToken- ClientToken property. Specify an array of string values to match this event if the actual value of ClientToken is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
existingInstances
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder existingInstances(InstanceEvents.AWSAPICallViaCloudTrail.ExistingInstances existingInstances) - Parameters:
existingInstances- ExistingInstances property. Specify an array of string values to match this event if the actual value of ExistingInstances is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
launchTemplateConfigs
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder launchTemplateConfigs(InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateConfigs launchTemplateConfigs) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.getLaunchTemplateConfigs()- Parameters:
launchTemplateConfigs- LaunchTemplateConfigs property. Specify an array of string values to match this event if the actual value of LaunchTemplateConfigs is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
onDemandOptions
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder onDemandOptions(InstanceEvents.AWSAPICallViaCloudTrail.OnDemandOptions onDemandOptions) - Parameters:
onDemandOptions- OnDemandOptions property. Specify an array of string values to match this event if the actual value of OnDemandOptions is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
spotOptions
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder spotOptions(InstanceEvents.AWSAPICallViaCloudTrail.SpotOptions spotOptions) - Parameters:
spotOptions- SpotOptions property. Specify an array of string values to match this event if the actual value of SpotOptions is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
tagSpecification
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder tagSpecification(InstanceEvents.AWSAPICallViaCloudTrail.TagSpecification tagSpecification) - Parameters:
tagSpecification- TagSpecification property. Specify an array of string values to match this event if the actual value of TagSpecification is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
targetCapacitySpecification
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder targetCapacitySpecification(InstanceEvents.AWSAPICallViaCloudTrail.TargetCapacitySpecification targetCapacitySpecification) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.getTargetCapacitySpecification()- Parameters:
targetCapacitySpecification- TargetCapacitySpecification property. Specify an array of string values to match this event if the actual value of TargetCapacitySpecification is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
type
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder type(List<String> type) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest.getType()- Parameters:
type- Type property. Specify an array of string values to match this event if the actual value of Type 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.CreateFleetRequest>- Returns:
- a new instance of
InstanceEvents.AWSAPICallViaCloudTrail.CreateFleetRequest - Throws:
NullPointerException- if any required attribute was not provided
-