Class CfnDetector.CFNDataSourceConfigurationsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnDetector.CFNDataSourceConfigurationsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetector.CFNDataSourceConfigurationsProperty>
- Enclosing interface:
CfnDetector.CFNDataSourceConfigurationsProperty
@Stability(Stable)
public static final class CfnDetector.CFNDataSourceConfigurationsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetector.CFNDataSourceConfigurationsProperty>
A builder for
CfnDetector.CFNDataSourceConfigurationsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.kubernetes
(IResolvable kubernetes) Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getKubernetes()
Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getKubernetes()
malwareProtection
(IResolvable malwareProtection) Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getMalwareProtection()
malwareProtection
(CfnDetector.CFNMalwareProtectionConfigurationProperty malwareProtection) Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getMalwareProtection()
s3Logs
(IResolvable s3Logs) Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getS3Logs()
Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getS3Logs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kubernetes
@Stability(Stable) public CfnDetector.CFNDataSourceConfigurationsProperty.Builder kubernetes(IResolvable kubernetes) Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getKubernetes()
- Parameters:
kubernetes
- Describes which Kubernetes data sources are enabled for a detector.- Returns:
this
-
kubernetes
@Stability(Stable) public CfnDetector.CFNDataSourceConfigurationsProperty.Builder kubernetes(CfnDetector.CFNKubernetesConfigurationProperty kubernetes) Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getKubernetes()
- Parameters:
kubernetes
- Describes which Kubernetes data sources are enabled for a detector.- Returns:
this
-
malwareProtection
@Stability(Stable) public CfnDetector.CFNDataSourceConfigurationsProperty.Builder malwareProtection(IResolvable malwareProtection) Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getMalwareProtection()
- Parameters:
malwareProtection
- Describes whether Malware Protection will be enabled as a data source.- Returns:
this
-
malwareProtection
@Stability(Stable) public CfnDetector.CFNDataSourceConfigurationsProperty.Builder malwareProtection(CfnDetector.CFNMalwareProtectionConfigurationProperty malwareProtection) Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getMalwareProtection()
- Parameters:
malwareProtection
- Describes whether Malware Protection will be enabled as a data source.- Returns:
this
-
s3Logs
@Stability(Stable) public CfnDetector.CFNDataSourceConfigurationsProperty.Builder s3Logs(IResolvable s3Logs) Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getS3Logs()
- Parameters:
s3Logs
- Describes whether S3 data event logs are enabled as a data source.- Returns:
this
-
s3Logs
@Stability(Stable) public CfnDetector.CFNDataSourceConfigurationsProperty.Builder s3Logs(CfnDetector.CFNS3LogsConfigurationProperty s3Logs) Sets the value ofCfnDetector.CFNDataSourceConfigurationsProperty.getS3Logs()
- Parameters:
s3Logs
- Describes whether S3 data event logs are enabled as a data source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetector.CFNDataSourceConfigurationsProperty>
- Returns:
- a new instance of
CfnDetector.CFNDataSourceConfigurationsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-