Class GuardDutyFinding.KubernetesApiCallAction.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.KubernetesApiCallAction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.KubernetesApiCallAction>
- Enclosing interface:
GuardDutyFinding.KubernetesApiCallAction
@Stability(Experimental)
public static final class GuardDutyFinding.KubernetesApiCallAction.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.KubernetesApiCallAction>
A builder for
GuardDutyFinding.KubernetesApiCallAction-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.parameters(List<String> parameters) Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getParameters()remoteIpDetails(GuardDutyFinding.RemoteIpDetails2 remoteIpDetails) Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getRemoteIpDetails()requestUri(List<String> requestUri) Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getRequestUri()Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getSourceIPs()statusCode(List<String> statusCode) Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getStatusCode()Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getUserAgent()Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getVerb()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
parameters
@Stability(Experimental) public GuardDutyFinding.KubernetesApiCallAction.Builder parameters(List<String> parameters) Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getParameters()- Parameters:
parameters- parameters property. Specify an array of string values to match this event if the actual value of parameters is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
remoteIpDetails
@Stability(Experimental) public GuardDutyFinding.KubernetesApiCallAction.Builder remoteIpDetails(GuardDutyFinding.RemoteIpDetails2 remoteIpDetails) Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getRemoteIpDetails()- Parameters:
remoteIpDetails- remoteIpDetails property. Specify an array of string values to match this event if the actual value of remoteIpDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
requestUri
@Stability(Experimental) public GuardDutyFinding.KubernetesApiCallAction.Builder requestUri(List<String> requestUri) Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getRequestUri()- Parameters:
requestUri- requestUri property. Specify an array of string values to match this event if the actual value of requestUri is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
sourceIPs
@Stability(Experimental) public GuardDutyFinding.KubernetesApiCallAction.Builder sourceIPs(List<String> sourceIPs) Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getSourceIPs()- Parameters:
sourceIPs- sourceIPs property. Specify an array of string values to match this event if the actual value of sourceIPs is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
statusCode
@Stability(Experimental) public GuardDutyFinding.KubernetesApiCallAction.Builder statusCode(List<String> statusCode) Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getStatusCode()- Parameters:
statusCode- statusCode property. Specify an array of string values to match this event if the actual value of statusCode is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
userAgent
@Stability(Experimental) public GuardDutyFinding.KubernetesApiCallAction.Builder userAgent(List<String> userAgent) Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getUserAgent()- Parameters:
userAgent- userAgent property. Specify an array of string values to match this event if the actual value of userAgent is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
verb
@Stability(Experimental) public GuardDutyFinding.KubernetesApiCallAction.Builder verb(List<String> verb) Sets the value ofGuardDutyFinding.KubernetesApiCallAction.getVerb()- Parameters:
verb- verb property. Specify an array of string values to match this event if the actual value of verb 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.KubernetesApiCallAction>- Returns:
- a new instance of
GuardDutyFinding.KubernetesApiCallAction - Throws:
NullPointerException- if any required attribute was not provided
-