Class InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData>
- Enclosing interface:
InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData
@Stability(Experimental)
public static final class InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.Builder
extends Object
implements software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.getImageId()instanceMarketOptions(InstanceEvents.AWSAPICallViaCloudTrail.InstanceMarketOptions1 instanceMarketOptions) instanceType(List<String> instanceType) networkInterface(InstanceEvents.AWSAPICallViaCloudTrail.NetworkInterface1 networkInterface) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.getUserData()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageId
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.Builder imageId(List<String> imageId) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.getImageId()- Parameters:
imageId- ImageId property. Specify an array of string values to match this event if the actual value of ImageId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
instanceMarketOptions
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.Builder instanceMarketOptions(InstanceEvents.AWSAPICallViaCloudTrail.InstanceMarketOptions1 instanceMarketOptions) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.getInstanceMarketOptions()- Parameters:
instanceMarketOptions- InstanceMarketOptions property. Specify an array of string values to match this event if the actual value of InstanceMarketOptions is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
instanceType
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.Builder instanceType(List<String> instanceType) - Parameters:
instanceType- InstanceType property. Specify an array of string values to match this event if the actual value of InstanceType is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
networkInterface
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.Builder networkInterface(InstanceEvents.AWSAPICallViaCloudTrail.NetworkInterface1 networkInterface) - Parameters:
networkInterface- NetworkInterface property. Specify an array of string values to match this event if the actual value of NetworkInterface is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
userData
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.Builder userData(List<String> userData) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData.getUserData()- Parameters:
userData- UserData property. Specify an array of string values to match this event if the actual value of UserData 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.LaunchTemplateData>- Returns:
- a new instance of
InstanceEvents.AWSAPICallViaCloudTrail.LaunchTemplateData - Throws:
NullPointerException- if any required attribute was not provided
-