public static interface CreateDetectorRequest.Builder extends GuardDutyRequest.Builder, SdkPojo, CopyableBuilder<CreateDetectorRequest.Builder,CreateDetectorRequest>
Modifier and Type | Method and Description |
---|---|
CreateDetectorRequest.Builder |
clientToken(String clientToken)
The idempotency token for the create request.
|
default CreateDetectorRequest.Builder |
dataSources(Consumer<DataSourceConfigurations.Builder> dataSources)
Describes which data sources will be enabled for the detector.
|
CreateDetectorRequest.Builder |
dataSources(DataSourceConfigurations dataSources)
Describes which data sources will be enabled for the detector.
|
CreateDetectorRequest.Builder |
enable(Boolean enable)
A Boolean value that specifies whether the detector is to be enabled.
|
CreateDetectorRequest.Builder |
findingPublishingFrequency(FindingPublishingFrequency findingPublishingFrequency)
A value that specifies how frequently updated findings are exported.
|
CreateDetectorRequest.Builder |
findingPublishingFrequency(String findingPublishingFrequency)
A value that specifies how frequently updated findings are exported.
|
CreateDetectorRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateDetectorRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateDetectorRequest.Builder |
tags(Map<String,String> tags)
The tags to be added to a new detector resource.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateDetectorRequest.Builder enable(Boolean enable)
A Boolean value that specifies whether the detector is to be enabled.
enable
- A Boolean value that specifies whether the detector is to be enabled.CreateDetectorRequest.Builder clientToken(String clientToken)
The idempotency token for the create request.
clientToken
- The idempotency token for the create request.CreateDetectorRequest.Builder findingPublishingFrequency(String findingPublishingFrequency)
A value that specifies how frequently updated findings are exported.
findingPublishingFrequency
- A value that specifies how frequently updated findings are exported.FindingPublishingFrequency
,
FindingPublishingFrequency
CreateDetectorRequest.Builder findingPublishingFrequency(FindingPublishingFrequency findingPublishingFrequency)
A value that specifies how frequently updated findings are exported.
findingPublishingFrequency
- A value that specifies how frequently updated findings are exported.FindingPublishingFrequency
,
FindingPublishingFrequency
CreateDetectorRequest.Builder dataSources(DataSourceConfigurations dataSources)
Describes which data sources will be enabled for the detector.
dataSources
- Describes which data sources will be enabled for the detector.default CreateDetectorRequest.Builder dataSources(Consumer<DataSourceConfigurations.Builder> dataSources)
Describes which data sources will be enabled for the detector.
This is a convenience that creates an instance of theDataSourceConfigurations.Builder
avoiding the
need to create one manually via DataSourceConfigurations.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to dataSources(DataSourceConfigurations)
.dataSources
- a consumer that will call methods on DataSourceConfigurations.Builder
dataSources(DataSourceConfigurations)
CreateDetectorRequest.Builder tags(Map<String,String> tags)
The tags to be added to a new detector resource.
tags
- The tags to be added to a new detector resource.CreateDetectorRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateDetectorRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.