Interface TextLogDestination.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TextLogDestination.Builder,
,TextLogDestination> SdkBuilder<TextLogDestination.Builder,
,TextLogDestination> SdkPojo
- Enclosing class:
TextLogDestination
public static interface TextLogDestination.Builder
extends SdkPojo, CopyableBuilder<TextLogDestination.Builder,TextLogDestination>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TextLogDestination.Builder
cloudWatch
(Consumer<CloudWatchLogGroupLogDestination.Builder> cloudWatch) Defines the Amazon CloudWatch Logs log group where text and metadata logs are delivered.cloudWatch
(CloudWatchLogGroupLogDestination cloudWatch) Defines the Amazon CloudWatch Logs log group where text and metadata logs are delivered.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 Details
-
cloudWatch
Defines the Amazon CloudWatch Logs log group where text and metadata logs are delivered.
- Parameters:
cloudWatch
- Defines the Amazon CloudWatch Logs log group where text and metadata logs are delivered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudWatch
default TextLogDestination.Builder cloudWatch(Consumer<CloudWatchLogGroupLogDestination.Builder> cloudWatch) Defines the Amazon CloudWatch Logs log group where text and metadata logs are delivered.
This is a convenience method that creates an instance of theCloudWatchLogGroupLogDestination.Builder
avoiding the need to create one manually viaCloudWatchLogGroupLogDestination.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocloudWatch(CloudWatchLogGroupLogDestination)
.- Parameters:
cloudWatch
- a consumer that will call methods onCloudWatchLogGroupLogDestination.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-