Interface TextLogDestination.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TextLogDestination.Builder,,TextLogDestination> SdkBuilder<TextLogDestination.Builder,,TextLogDestination> SdkPojo
- Enclosing class:
TextLogDestination
@Mutable
@NotThreadSafe
public static interface TextLogDestination.Builder
extends SdkPojo, CopyableBuilder<TextLogDestination.Builder,TextLogDestination>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TextLogDestination.BuildercloudWatch(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaCloudWatchLogGroupLogDestination.builder().When the
Consumercompletes,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:
-