Class GuardDutyFinding.AccessKeyDetails.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.AccessKeyDetails.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.AccessKeyDetails>
- Enclosing interface:
GuardDutyFinding.AccessKeyDetails
@Stability(Experimental)
public static final class GuardDutyFinding.AccessKeyDetails.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.AccessKeyDetails>
A builder for
GuardDutyFinding.AccessKeyDetails-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessKeyId(List<String> accessKeyId) Sets the value ofGuardDutyFinding.AccessKeyDetails.getAccessKeyId()build()Builds the configured instance.principalId(List<String> principalId) Sets the value ofGuardDutyFinding.AccessKeyDetails.getPrincipalId()Sets the value ofGuardDutyFinding.AccessKeyDetails.getUserName()Sets the value ofGuardDutyFinding.AccessKeyDetails.getUserType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessKeyId
@Stability(Experimental) public GuardDutyFinding.AccessKeyDetails.Builder accessKeyId(List<String> accessKeyId) Sets the value ofGuardDutyFinding.AccessKeyDetails.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
-
principalId
@Stability(Experimental) public GuardDutyFinding.AccessKeyDetails.Builder principalId(List<String> principalId) Sets the value ofGuardDutyFinding.AccessKeyDetails.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
-
userName
@Stability(Experimental) public GuardDutyFinding.AccessKeyDetails.Builder userName(List<String> userName) Sets the value ofGuardDutyFinding.AccessKeyDetails.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
-
userType
@Stability(Experimental) public GuardDutyFinding.AccessKeyDetails.Builder userType(List<String> userType) Sets the value ofGuardDutyFinding.AccessKeyDetails.getUserType()- Parameters:
userType- userType property. Specify an array of string values to match this event if the actual value of userType 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<GuardDutyFinding.AccessKeyDetails>- Returns:
- a new instance of
GuardDutyFinding.AccessKeyDetails - Throws:
NullPointerException- if any required attribute was not provided
-