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