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