Class RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecr.events.RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity>
- Enclosing interface:
RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity
@Stability(Experimental)
public static final class RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.Builder
extends Object
implements software.amazon.jsii.Builder<RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity>
A builder for
RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessKeyId(List<String> accessKeyId) Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.getAccessKeyId()Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.getAccountId()Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.getArn()build()Builds the configured instance.Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.getInvokedBy()principalId(List<String> principalId) Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.getPrincipalId()Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessKeyId
@Stability(Experimental) public RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.Builder accessKeyId(List<String> accessKeyId) Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.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 RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.Builder accountId(List<String> accountId) Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.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
@Stability(Experimental) public RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.Builder arn(List<String> arn) Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.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
-
invokedBy
@Stability(Experimental) public RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.Builder invokedBy(List<String> invokedBy) Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.getInvokedBy()- Parameters:
invokedBy- invokedBy property. Specify an array of string values to match this event if the actual value of invokedBy 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 RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.Builder principalId(List<String> principalId) Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.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 RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.Builder sessionContext(RepositoryEvents.AWSAPICallViaCloudTrail.SessionContext sessionContext) - 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 RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity.Builder type(List<String> type) Sets the value ofRepositoryEvents.AWSAPICallViaCloudTrail.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity>- Returns:
- a new instance of
RepositoryEvents.AWSAPICallViaCloudTrail.UserIdentity - Throws:
NullPointerException- if any required attribute was not provided
-