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