Interface LogPublishingOptions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LogPublishingOptions.Builder,,LogPublishingOptions> SdkBuilder<LogPublishingOptions.Builder,,LogPublishingOptions> SdkPojo
- Enclosing class:
LogPublishingOptions
public static interface LogPublishingOptions.Builder
extends SdkPojo, CopyableBuilder<LogPublishingOptions.Builder,LogPublishingOptions>
-
Method Summary
Modifier and TypeMethodDescriptiondefault LogPublishingOptions.BuildercloudWatchLogDestination(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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
IsLoggingEnabledis set totrue.- Parameters:
cloudWatchLogDestination- The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required ifIsLoggingEnabledis 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 theIsLoggingEnabledis set totrue.CloudWatchLogDestination.Builderavoiding the need to create one manually viaCloudWatchLogDestination.builder().When the
Consumercompletes,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:
-