public static final class CfnDetectorProps.Builder
extends java.lang.Object
CfnDetectorProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnDetectorProps |
build()
Builds the configured instance.
|
CfnDetectorProps.Builder |
dataSources(CfnDetector.CFNDataSourceConfigurationsProperty dataSources)
Sets the value of
CfnDetectorProps.getDataSources() |
CfnDetectorProps.Builder |
dataSources(IResolvable dataSources)
Sets the value of
CfnDetectorProps.getDataSources() |
CfnDetectorProps.Builder |
enable(java.lang.Boolean enable)
Sets the value of
CfnDetectorProps.getEnable() |
CfnDetectorProps.Builder |
enable(IResolvable enable)
Sets the value of
CfnDetectorProps.getEnable() |
CfnDetectorProps.Builder |
findingPublishingFrequency(java.lang.String findingPublishingFrequency)
Sets the value of
CfnDetectorProps.getFindingPublishingFrequency() |
CfnDetectorProps.Builder |
tags(java.util.List<? extends CfnTag> tags)
Sets the value of
CfnDetectorProps.getTags() |
public CfnDetectorProps.Builder enable(java.lang.Boolean enable)
CfnDetectorProps.getEnable()
enable
- Specifies whether the detector is to be enabled on creation. This parameter is required.this
public CfnDetectorProps.Builder enable(IResolvable enable)
CfnDetectorProps.getEnable()
enable
- Specifies whether the detector is to be enabled on creation. This parameter is required.this
public CfnDetectorProps.Builder dataSources(IResolvable dataSources)
CfnDetectorProps.getDataSources()
dataSources
- Describes which data sources will be enabled for the detector.this
public CfnDetectorProps.Builder dataSources(CfnDetector.CFNDataSourceConfigurationsProperty dataSources)
CfnDetectorProps.getDataSources()
dataSources
- Describes which data sources will be enabled for the detector.this
public CfnDetectorProps.Builder findingPublishingFrequency(java.lang.String findingPublishingFrequency)
CfnDetectorProps.getFindingPublishingFrequency()
findingPublishingFrequency
- Specifies how frequently updated findings are exported.this
public CfnDetectorProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnDetectorProps.getTags()
tags
- The tags to be added to a new detector resource.
Each tag consists of a key and an optional value, both of which you define.
For more information, see Tag .
this
public CfnDetectorProps build()
CfnDetectorProps
java.lang.NullPointerException
- if any required attribute was not provided