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