Class AWSAPICallViaCloudTrail.CreateFleetRequest.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.AWSAPICallViaCloudTrail.CreateFleetRequest.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.CreateFleetRequest>
- Enclosing interface:
AWSAPICallViaCloudTrail.CreateFleetRequest
@Stability(Experimental)
public static final class AWSAPICallViaCloudTrail.CreateFleetRequest.Builder
extends Object
implements software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.CreateFleetRequest>
A builder for
AWSAPICallViaCloudTrail.CreateFleetRequest-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clientToken(List<String> clientToken) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getClientToken()existingInstances(AWSAPICallViaCloudTrail.ExistingInstances existingInstances) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getExistingInstances()launchTemplateConfigs(AWSAPICallViaCloudTrail.LaunchTemplateConfigs launchTemplateConfigs) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getLaunchTemplateConfigs()onDemandOptions(AWSAPICallViaCloudTrail.OnDemandOptions onDemandOptions) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getOnDemandOptions()spotOptions(AWSAPICallViaCloudTrail.SpotOptions spotOptions) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getSpotOptions()tagSpecification(AWSAPICallViaCloudTrail.TagSpecification tagSpecification) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getTagSpecification()targetCapacitySpecification(AWSAPICallViaCloudTrail.TargetCapacitySpecification targetCapacitySpecification) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientToken
@Stability(Experimental) public AWSAPICallViaCloudTrail.CreateFleetRequest.Builder clientToken(List<String> clientToken) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getClientToken()- 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 AWSAPICallViaCloudTrail.CreateFleetRequest.Builder existingInstances(AWSAPICallViaCloudTrail.ExistingInstances existingInstances) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getExistingInstances()- 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 AWSAPICallViaCloudTrail.CreateFleetRequest.Builder launchTemplateConfigs(AWSAPICallViaCloudTrail.LaunchTemplateConfigs launchTemplateConfigs) Sets the value ofAWSAPICallViaCloudTrail.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 AWSAPICallViaCloudTrail.CreateFleetRequest.Builder onDemandOptions(AWSAPICallViaCloudTrail.OnDemandOptions onDemandOptions) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getOnDemandOptions()- 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 AWSAPICallViaCloudTrail.CreateFleetRequest.Builder spotOptions(AWSAPICallViaCloudTrail.SpotOptions spotOptions) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getSpotOptions()- 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 AWSAPICallViaCloudTrail.CreateFleetRequest.Builder tagSpecification(AWSAPICallViaCloudTrail.TagSpecification tagSpecification) Sets the value ofAWSAPICallViaCloudTrail.CreateFleetRequest.getTagSpecification()- 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 AWSAPICallViaCloudTrail.CreateFleetRequest.Builder targetCapacitySpecification(AWSAPICallViaCloudTrail.TargetCapacitySpecification targetCapacitySpecification) - 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 AWSAPICallViaCloudTrail.CreateFleetRequest.Builder type(List<String> type) Sets the value ofAWSAPICallViaCloudTrail.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<AWSAPICallViaCloudTrail.CreateFleetRequest>- Returns:
- a new instance of
AWSAPICallViaCloudTrail.CreateFleetRequest - Throws:
NullPointerException- if any required attribute was not provided
-