Interface CreateDetectorRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateDetectorRequest.Builder,,CreateDetectorRequest> GuardDutyRequest.Builder,SdkBuilder<CreateDetectorRequest.Builder,,CreateDetectorRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateDetectorRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) The idempotency token for the create request.default CreateDetectorRequest.BuilderdataSources(Consumer<DataSourceConfigurations.Builder> dataSources) Deprecated.This parameter is deprecated, use Features insteaddataSources(DataSourceConfigurations dataSources) Deprecated.This parameter is deprecated, use Features insteadA Boolean value that specifies whether the detector is to be enabled.features(Collection<DetectorFeatureConfiguration> features) A list of features that will be configured for the detector.features(Consumer<DetectorFeatureConfiguration.Builder>... features) A list of features that will be configured for the detector.features(DetectorFeatureConfiguration... features) A list of features that will be configured for the detector.findingPublishingFrequency(String findingPublishingFrequency) A value that specifies how frequently updated findings are exported.findingPublishingFrequency(FindingPublishingFrequency findingPublishingFrequency) A value that specifies how frequently updated findings are exported.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The tags to be added to a new detector resource.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.guardduty.model.GuardDutyRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
enable
A Boolean value that specifies whether the detector is to be enabled.
- Parameters:
enable- A Boolean value that specifies whether the detector is to be enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
The idempotency token for the create request.
- Parameters:
clientToken- The idempotency token for the create request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingPublishingFrequency
A value that specifies how frequently updated findings are exported.
- Parameters:
findingPublishingFrequency- A value that specifies how frequently updated findings are exported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
findingPublishingFrequency
CreateDetectorRequest.Builder findingPublishingFrequency(FindingPublishingFrequency findingPublishingFrequency) A value that specifies how frequently updated findings are exported.
- Parameters:
findingPublishingFrequency- A value that specifies how frequently updated findings are exported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataSources
Deprecated.This parameter is deprecated, use Features insteadDescribes which data sources will be enabled for the detector.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
- Parameters:
dataSources- Describes which data sources will be enabled for the detector.There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSources
@Deprecated default CreateDetectorRequest.Builder dataSources(Consumer<DataSourceConfigurations.Builder> dataSources) Deprecated.This parameter is deprecated, use Features insteadDescribes which data sources will be enabled for the detector.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
This is a convenience method that creates an instance of theDataSourceConfigurations.Builderavoiding the need to create one manually viaDataSourceConfigurations.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataSources(DataSourceConfigurations).- Parameters:
dataSources- a consumer that will call methods onDataSourceConfigurations.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to be added to a new detector resource.
- Parameters:
tags- The tags to be added to a new detector resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
features
A list of features that will be configured for the detector.
- Parameters:
features- A list of features that will be configured for the detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
features
A list of features that will be configured for the detector.
- Parameters:
features- A list of features that will be configured for the detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
features
A list of features that will be configured for the detector.
This is a convenience method that creates an instance of theDetectorFeatureConfiguration.Builderavoiding the need to create one manually viaDetectorFeatureConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofeatures(List<DetectorFeatureConfiguration>).- Parameters:
features- a consumer that will call methods onDetectorFeatureConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateDetectorRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateDetectorRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-