Class DetectorEvents.GuardDutyFinding.AffectedResources1.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.DetectorEvents.GuardDutyFinding.AffectedResources1.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.AffectedResources1>
- Enclosing interface:
DetectorEvents.GuardDutyFinding.AffectedResources1
@Stability(Experimental)
public static final class DetectorEvents.GuardDutyFinding.AffectedResources1.Builder
extends Object
implements software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.AffectedResources1>
A builder for
DetectorEvents.GuardDutyFinding.AffectedResources1-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsCloudTrailTrail(List<String> awsCloudTrailTrail) awsEc2Instance(List<String> awsEc2Instance) Sets the value ofDetectorEvents.GuardDutyFinding.AffectedResources1.getAwsEc2Instance()awsS3Bucket(List<String> awsS3Bucket) Sets the value ofDetectorEvents.GuardDutyFinding.AffectedResources1.getAwsS3Bucket()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsCloudTrailTrail
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.AffectedResources1.Builder awsCloudTrailTrail(List<String> awsCloudTrailTrail) - Parameters:
awsCloudTrailTrail- AWS-CloudTrail-Trail property. Specify an array of string values to match this event if the actual value of AWS-CloudTrail-Trail is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
awsEc2Instance
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.AffectedResources1.Builder awsEc2Instance(List<String> awsEc2Instance) Sets the value ofDetectorEvents.GuardDutyFinding.AffectedResources1.getAwsEc2Instance()- Parameters:
awsEc2Instance- AWS-EC2-Instance property. Specify an array of string values to match this event if the actual value of AWS-EC2-Instance is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
awsS3Bucket
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.AffectedResources1.Builder awsS3Bucket(List<String> awsS3Bucket) Sets the value ofDetectorEvents.GuardDutyFinding.AffectedResources1.getAwsS3Bucket()- Parameters:
awsS3Bucket- AWS-S3-Bucket property. Specify an array of string values to match this event if the actual value of AWS-S3-Bucket 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.AffectedResources1>- Returns:
- a new instance of
DetectorEvents.GuardDutyFinding.AffectedResources1 - Throws:
NullPointerException- if any required attribute was not provided
-