Class CfnDetectorProps.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnDetectorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorProps>
- Enclosing interface:
- CfnDetectorProps
@Stability(Stable)
public static final class CfnDetectorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorProps>
A builder for
CfnDetectorProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataSources(IResolvable dataSources) Sets the value ofCfnDetectorProps.getDataSources()Sets the value ofCfnDetectorProps.getDataSources()Sets the value ofCfnDetectorProps.getEnable()enable(IResolvable enable) Sets the value ofCfnDetectorProps.getEnable()Sets the value ofCfnDetectorProps.getFeatures()features(IResolvable features) Sets the value ofCfnDetectorProps.getFeatures()findingPublishingFrequency(String findingPublishingFrequency) Sets the value ofCfnDetectorProps.getFindingPublishingFrequency()Sets the value ofCfnDetectorProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enable
Sets the value ofCfnDetectorProps.getEnable()- Parameters:
enable- Specifies whether the detector is to be enabled on creation. This parameter is required.- Returns:
this
-
enable
Sets the value ofCfnDetectorProps.getEnable()- Parameters:
enable- Specifies whether the detector is to be enabled on creation. This parameter is required.- Returns:
this
-
dataSources
Sets the value ofCfnDetectorProps.getDataSources()- Parameters:
dataSources- Describes which data sources will be enabled for the detector.- Returns:
this
-
dataSources
@Stability(Stable) public CfnDetectorProps.Builder dataSources(CfnDetector.CFNDataSourceConfigurationsProperty dataSources) Sets the value ofCfnDetectorProps.getDataSources()- Parameters:
dataSources- Describes which data sources will be enabled for the detector.- Returns:
this
-
features
Sets the value ofCfnDetectorProps.getFeatures()- Parameters:
features- A list of features that will be configured for the detector.- Returns:
this
-
features
Sets the value ofCfnDetectorProps.getFeatures()- Parameters:
features- A list of features that will be configured for the detector.- Returns:
this
-
findingPublishingFrequency
@Stability(Stable) public CfnDetectorProps.Builder findingPublishingFrequency(String findingPublishingFrequency) Sets the value ofCfnDetectorProps.getFindingPublishingFrequency()- Parameters:
findingPublishingFrequency- Specifies how frequently updated findings are exported.- Returns:
this
-
tags
Sets the value ofCfnDetectorProps.getTags()- Parameters:
tags- Specifies tags added to a new detector resource. Each tag consists of a key and an optional value, both of which you define.Currently, support is available only for creating and deleting a tag. No support exists for updating the tags.
For more information, see Tag .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDetectorProps>- Returns:
- a new instance of
CfnDetectorProps - Throws:
NullPointerException- if any required attribute was not provided
-