Class DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem>
- Enclosing interface:
DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem
@Stability(Experimental)
public static final class DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem.Builder
extends Object
implements software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofDetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem.getImage()imagePrefix(List<String> imagePrefix) Sets the value ofDetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem.getName()securityContext(DetectorEvents.GuardDutyFinding.SecurityContext securityContext)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
image
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem.Builder image(List<String> image) Sets the value ofDetectorEvents.GuardDutyFinding.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 DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem.Builder imagePrefix(List<String> imagePrefix) - 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 DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem.Builder name(List<String> name) Sets the value ofDetectorEvents.GuardDutyFinding.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 DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem.Builder securityContext(DetectorEvents.GuardDutyFinding.SecurityContext securityContext) Sets the value ofDetectorEvents.GuardDutyFinding.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
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem>- Returns:
- a new instance of
DetectorEvents.GuardDutyFinding.KubernetesWorkloadDetailsItem - Throws:
NullPointerException- if any required attribute was not provided
-