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