Class DetectorEvents.GuardDutyFinding.Resource.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.DetectorEvents.GuardDutyFinding.Resource.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.Resource>
- Enclosing interface:
DetectorEvents.GuardDutyFinding.Resource
@Stability(Experimental)
public static final class DetectorEvents.GuardDutyFinding.Resource.Builder
extends Object
implements software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.Resource>
A builder for
DetectorEvents.GuardDutyFinding.Resource-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessKeyDetails(DetectorEvents.GuardDutyFinding.AccessKeyDetails accessKeyDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getAccessKeyDetails()build()Builds the configured instance.containerDetails(DetectorEvents.GuardDutyFinding.ContainerDetails containerDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getContainerDetails()ebsVolumeDetails(DetectorEvents.GuardDutyFinding.EbsVolumeDetails ebsVolumeDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getEbsVolumeDetails()ecsClusterDetails(DetectorEvents.GuardDutyFinding.EcsClusterDetails ecsClusterDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getEcsClusterDetails()eksClusterDetails(DetectorEvents.GuardDutyFinding.EksClusterDetails eksClusterDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getEksClusterDetails()instanceDetails(DetectorEvents.GuardDutyFinding.InstanceDetails instanceDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getInstanceDetails()kubernetesDetails(DetectorEvents.GuardDutyFinding.KubernetesDetails kubernetesDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getKubernetesDetails()resourceType(List<String> resourceType) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getResourceType()s3BucketDetails(List<? extends DetectorEvents.GuardDutyFinding.ResourceItem> s3BucketDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getS3BucketDetails()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessKeyDetails
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.Resource.Builder accessKeyDetails(DetectorEvents.GuardDutyFinding.AccessKeyDetails accessKeyDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getAccessKeyDetails()- Parameters:
accessKeyDetails- accessKeyDetails property. Specify an array of string values to match this event if the actual value of accessKeyDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
containerDetails
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.Resource.Builder containerDetails(DetectorEvents.GuardDutyFinding.ContainerDetails containerDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getContainerDetails()- Parameters:
containerDetails- containerDetails property. Specify an array of string values to match this event if the actual value of containerDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
ebsVolumeDetails
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.Resource.Builder ebsVolumeDetails(DetectorEvents.GuardDutyFinding.EbsVolumeDetails ebsVolumeDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getEbsVolumeDetails()- Parameters:
ebsVolumeDetails- ebsVolumeDetails property. Specify an array of string values to match this event if the actual value of ebsVolumeDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
ecsClusterDetails
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.Resource.Builder ecsClusterDetails(DetectorEvents.GuardDutyFinding.EcsClusterDetails ecsClusterDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getEcsClusterDetails()- Parameters:
ecsClusterDetails- ecsClusterDetails property. Specify an array of string values to match this event if the actual value of ecsClusterDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
eksClusterDetails
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.Resource.Builder eksClusterDetails(DetectorEvents.GuardDutyFinding.EksClusterDetails eksClusterDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getEksClusterDetails()- Parameters:
eksClusterDetails- eksClusterDetails property. Specify an array of string values to match this event if the actual value of eksClusterDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
instanceDetails
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.Resource.Builder instanceDetails(DetectorEvents.GuardDutyFinding.InstanceDetails instanceDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getInstanceDetails()- Parameters:
instanceDetails- instanceDetails property. Specify an array of string values to match this event if the actual value of instanceDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
kubernetesDetails
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.Resource.Builder kubernetesDetails(DetectorEvents.GuardDutyFinding.KubernetesDetails kubernetesDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getKubernetesDetails()- Parameters:
kubernetesDetails- kubernetesDetails property. Specify an array of string values to match this event if the actual value of kubernetesDetails is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
resourceType
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.Resource.Builder resourceType(List<String> resourceType) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getResourceType()- Parameters:
resourceType- resourceType property. Specify an array of string values to match this event if the actual value of resourceType is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
s3BucketDetails
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.Resource.Builder s3BucketDetails(List<? extends DetectorEvents.GuardDutyFinding.ResourceItem> s3BucketDetails) Sets the value ofDetectorEvents.GuardDutyFinding.Resource.getS3BucketDetails()- Parameters:
s3BucketDetails- s3BucketDetails property. Specify an array of string values to match this event if the actual value of s3BucketDetails 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.Resource>- Returns:
- a new instance of
DetectorEvents.GuardDutyFinding.Resource - Throws:
NullPointerException- if any required attribute was not provided
-