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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TextLogDestination.BuildercloudWatch(Consumer<CloudWatchLogGroupLogDestination.Builder> cloudWatch)Defines the Amazon CloudWatch Logs log group where text and metadata logs are delivered.TextLogDestination.BuildercloudWatch(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 Detail
-
cloudWatch
TextLogDestination.Builder cloudWatch(CloudWatchLogGroupLogDestination 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:
cloudWatch(CloudWatchLogGroupLogDestination)
-
-