Class InstanceEvents.AWSAPICallViaCloudTrail.Placement.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.InstanceEvents.AWSAPICallViaCloudTrail.Placement.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.Placement>
- Enclosing interface:
InstanceEvents.AWSAPICallViaCloudTrail.Placement
@Stability(Experimental)
public static final class InstanceEvents.AWSAPICallViaCloudTrail.Placement.Builder
extends Object
implements software.amazon.jsii.Builder<InstanceEvents.AWSAPICallViaCloudTrail.Placement>
A builder for
InstanceEvents.AWSAPICallViaCloudTrail.Placement-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(List<String> availabilityZone) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.Placement.getAvailabilityZone()build()Builds the configured instance.Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.Placement.getTenancy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.Placement.Builder availabilityZone(List<String> availabilityZone) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.Placement.getAvailabilityZone()- 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
-
tenancy
@Stability(Experimental) public InstanceEvents.AWSAPICallViaCloudTrail.Placement.Builder tenancy(List<String> tenancy) Sets the value ofInstanceEvents.AWSAPICallViaCloudTrail.Placement.getTenancy()- Parameters:
tenancy- tenancy property. Specify an array of string values to match this event if the actual value of tenancy 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.Placement>- Returns:
- a new instance of
InstanceEvents.AWSAPICallViaCloudTrail.Placement - Throws:
NullPointerException- if any required attribute was not provided
-