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