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