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