Interface LogPublishingOptions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LogPublishingOptions.Builder,
,LogPublishingOptions> SdkBuilder<LogPublishingOptions.Builder,
,LogPublishingOptions> SdkPojo
- Enclosing class:
LogPublishingOptions
@Mutable
@NotThreadSafe
public static interface LogPublishingOptions.Builder
extends SdkPojo, CopyableBuilder<LogPublishingOptions.Builder,LogPublishingOptions>
-
Method Summary
Modifier and TypeMethodDescriptiondefault LogPublishingOptions.Builder
cloudWatchLogDestination
(Consumer<CloudWatchLogDestination.Builder> cloudWatchLogDestination) The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs.cloudWatchLogDestination
(CloudWatchLogDestination cloudWatchLogDestination) The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs.isLoggingEnabled
(Boolean isLoggingEnabled) Whether logs should be published.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
isLoggingEnabled
Whether logs should be published.
- Parameters:
isLoggingEnabled
- Whether logs should be published.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudWatchLogDestination
LogPublishingOptions.Builder cloudWatchLogDestination(CloudWatchLogDestination cloudWatchLogDestination) The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if
IsLoggingEnabled
is set totrue
.- Parameters:
cloudWatchLogDestination
- The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required ifIsLoggingEnabled
is set totrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudWatchLogDestination
default LogPublishingOptions.Builder cloudWatchLogDestination(Consumer<CloudWatchLogDestination.Builder> cloudWatchLogDestination) The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if
This is a convenience method that creates an instance of theIsLoggingEnabled
is set totrue
.CloudWatchLogDestination.Builder
avoiding the need to create one manually viaCloudWatchLogDestination.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocloudWatchLogDestination(CloudWatchLogDestination)
.- Parameters:
cloudWatchLogDestination
- a consumer that will call methods onCloudWatchLogDestination.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-