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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default LogPublishingOptions.BuildercloudWatchLogDestination(Consumer<CloudWatchLogDestination.Builder> cloudWatchLogDestination)The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs.LogPublishingOptions.BuildercloudWatchLogDestination(CloudWatchLogDestination cloudWatchLogDestination)The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs.LogPublishingOptions.BuilderisLoggingEnabled(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, sdkFields
-
-
-
-
Method Detail
-
isLoggingEnabled
LogPublishingOptions.Builder isLoggingEnabled(Boolean 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:
cloudWatchLogDestination(CloudWatchLogDestination)
-
-