Interface CreatePublishingDestinationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreatePublishingDestinationRequest.Builder,
,CreatePublishingDestinationRequest> GuardDutyRequest.Builder
,SdkBuilder<CreatePublishingDestinationRequest.Builder,
,CreatePublishingDestinationRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreatePublishingDestinationRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) The idempotency token for the request.destinationProperties
(Consumer<DestinationProperties.Builder> destinationProperties) The properties of the publishing destination, including the ARNs for the destination and the KMS key used for encryption.destinationProperties
(DestinationProperties destinationProperties) The properties of the publishing destination, including the ARNs for the destination and the KMS key used for encryption.destinationType
(String destinationType) The type of resource for the publishing destination.destinationType
(DestinationType destinationType) The type of resource for the publishing destination.detectorId
(String detectorId) The ID of the GuardDuty detector associated with the publishing destination.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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.guardduty.model.GuardDutyRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
detectorId
The ID of the GuardDuty detector associated with the publishing destination.
To find the
detectorId
in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Parameters:
detectorId
- The ID of the GuardDuty detector associated with the publishing destination.To find the
detectorId
in 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.
-
destinationType
The type of resource for the publishing destination. Currently only Amazon S3 buckets are supported.
- Parameters:
destinationType
- The type of resource for the publishing destination. Currently only Amazon S3 buckets are supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destinationType
The type of resource for the publishing destination. Currently only Amazon S3 buckets are supported.
- Parameters:
destinationType
- The type of resource for the publishing destination. Currently only Amazon S3 buckets are supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destinationProperties
CreatePublishingDestinationRequest.Builder destinationProperties(DestinationProperties destinationProperties) The properties of the publishing destination, including the ARNs for the destination and the KMS key used for encryption.
- Parameters:
destinationProperties
- The properties of the publishing destination, including the ARNs for the destination and the KMS key used for encryption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationProperties
default CreatePublishingDestinationRequest.Builder destinationProperties(Consumer<DestinationProperties.Builder> destinationProperties) The properties of the publishing destination, including the ARNs for the destination and the KMS key used for encryption.
This is a convenience method that creates an instance of theDestinationProperties.Builder
avoiding the need to create one manually viaDestinationProperties.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todestinationProperties(DestinationProperties)
.- Parameters:
destinationProperties
- a consumer that will call methods onDestinationProperties.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
The idempotency token for the request.
- Parameters:
clientToken
- The idempotency token for the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreatePublishingDestinationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreatePublishingDestinationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-