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