Interface UpdateDetectorRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateDetectorRequest.Builder,,UpdateDetectorRequest> GuardDutyRequest.Builder,SdkBuilder<UpdateDetectorRequest.Builder,,UpdateDetectorRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateDetectorRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault UpdateDetectorRequest.BuilderdataSources(Consumer<DataSourceConfigurations.Builder> dataSources) Deprecated.This parameter is deprecated, use Features insteaddataSources(DataSourceConfigurations dataSources) Deprecated.This parameter is deprecated, use Features insteaddetectorId(String detectorId) The unique ID of the detector to update.Specifies whether the detector is enabled or not enabled.features(Collection<DetectorFeatureConfiguration> features) Provides the features that will be updated for the detector.features(Consumer<DetectorFeatureConfiguration.Builder>... features) Provides the features that will be updated for the detector.features(DetectorFeatureConfiguration... features) Provides the features that will be updated for the detector.findingPublishingFrequency(String findingPublishingFrequency) An enum value that specifies how frequently findings are exported, such as to CloudWatch Events.findingPublishingFrequency(FindingPublishingFrequency findingPublishingFrequency) An enum value that specifies how frequently findings are exported, such as to CloudWatch Events.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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, sdkFieldNameToField, sdkFields
-
Method Details
-
detectorId
The unique ID of the detector to update.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Parameters:
detectorId- The unique ID of the detector to update.To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enable
Specifies whether the detector is enabled or not enabled.
- Parameters:
enable- Specifies whether the detector is enabled or not enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingPublishingFrequency
An enum value that specifies how frequently findings are exported, such as to CloudWatch Events.
- Parameters:
findingPublishingFrequency- An enum value that specifies how frequently findings are exported, such as to CloudWatch Events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
findingPublishingFrequency
UpdateDetectorRequest.Builder findingPublishingFrequency(FindingPublishingFrequency findingPublishingFrequency) An enum value that specifies how frequently findings are exported, such as to CloudWatch Events.
- Parameters:
findingPublishingFrequency- An enum value that specifies how frequently findings are exported, such as to CloudWatch Events.- 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 updated.
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 updated.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 UpdateDetectorRequest.Builder dataSources(Consumer<DataSourceConfigurations.Builder> dataSources) Deprecated.This parameter is deprecated, use Features insteadDescribes which data sources will be updated.
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:
-
features
Provides the features that will be updated for the detector.
- Parameters:
features- Provides the features that will be updated for the detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
features
Provides the features that will be updated for the detector.
- Parameters:
features- Provides the features that will be updated for the detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
features
Provides the features that will be updated 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
UpdateDetectorRequest.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
UpdateDetectorRequest.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.
-