Class GuardDutyFinding.Resource.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.Resource.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.Resource>
- Enclosing interface:
GuardDutyFinding.Resource
@Stability(Experimental)
public static final class GuardDutyFinding.Resource.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.Resource>
A builder for
GuardDutyFinding.Resource-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessKeyDetails(GuardDutyFinding.AccessKeyDetails accessKeyDetails) Sets the value ofGuardDutyFinding.Resource.getAccessKeyDetails()build()Builds the configured instance.containerDetails(GuardDutyFinding.ContainerDetails containerDetails) Sets the value ofGuardDutyFinding.Resource.getContainerDetails()ebsVolumeDetails(GuardDutyFinding.EbsVolumeDetails ebsVolumeDetails) Sets the value ofGuardDutyFinding.Resource.getEbsVolumeDetails()ecsClusterDetails(GuardDutyFinding.EcsClusterDetails ecsClusterDetails) Sets the value ofGuardDutyFinding.Resource.getEcsClusterDetails()eksClusterDetails(GuardDutyFinding.EksClusterDetails eksClusterDetails) Sets the value ofGuardDutyFinding.Resource.getEksClusterDetails()instanceDetails(GuardDutyFinding.InstanceDetails instanceDetails) Sets the value ofGuardDutyFinding.Resource.getInstanceDetails()kubernetesDetails(GuardDutyFinding.KubernetesDetails kubernetesDetails) Sets the value ofGuardDutyFinding.Resource.getKubernetesDetails()resourceType(List<String> resourceType) Sets the value ofGuardDutyFinding.Resource.getResourceType()s3BucketDetails(List<? extends GuardDutyFinding.ResourceItem> s3BucketDetails) Sets the value ofGuardDutyFinding.Resource.getS3BucketDetails()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessKeyDetails
@Stability(Experimental) public GuardDutyFinding.Resource.Builder accessKeyDetails(GuardDutyFinding.AccessKeyDetails accessKeyDetails) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.Resource.Builder containerDetails(GuardDutyFinding.ContainerDetails containerDetails) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.Resource.Builder ebsVolumeDetails(GuardDutyFinding.EbsVolumeDetails ebsVolumeDetails) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.Resource.Builder ecsClusterDetails(GuardDutyFinding.EcsClusterDetails ecsClusterDetails) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.Resource.Builder eksClusterDetails(GuardDutyFinding.EksClusterDetails eksClusterDetails) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.Resource.Builder instanceDetails(GuardDutyFinding.InstanceDetails instanceDetails) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.Resource.Builder kubernetesDetails(GuardDutyFinding.KubernetesDetails kubernetesDetails) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.Resource.Builder resourceType(List<String> resourceType) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.Resource.Builder s3BucketDetails(List<? extends GuardDutyFinding.ResourceItem> s3BucketDetails) Sets the value ofGuardDutyFinding.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<GuardDutyFinding.Resource>- Returns:
- a new instance of
GuardDutyFinding.Resource - Throws:
NullPointerException- if any required attribute was not provided
-