Interface CloudWatchLogsSource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CloudWatchLogsSource.Builder,,CloudWatchLogsSource> SdkBuilder<CloudWatchLogsSource.Builder,,CloudWatchLogsSource> SdkPojo
- Enclosing class:
CloudWatchLogsSource
@Mutable
@NotThreadSafe
public static interface CloudWatchLogsSource.Builder
extends SdkPojo, CopyableBuilder<CloudWatchLogsSource.Builder,CloudWatchLogsSource>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CloudWatchLogsSource.BuilderfilterConfig(Consumer<CloudWatchFilterConfig.Builder> filterConfig) Optional filter configuration to narrow down which sessions to evaluate.filterConfig(CloudWatchFilterConfig filterConfig) Optional filter configuration to narrow down which sessions to evaluate.logGroupNames(String... logGroupNames) The list of CloudWatch log group names to read agent traces from.logGroupNames(Collection<String> logGroupNames) The list of CloudWatch log group names to read agent traces from.serviceNames(String... serviceNames) The list of agent service names to filter traces within the specified log groups.serviceNames(Collection<String> serviceNames) The list of agent service names to filter traces within the specified log groups.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
-
serviceNames
The list of agent service names to filter traces within the specified log groups.
- Parameters:
serviceNames- The list of agent service names to filter traces within the specified log groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceNames
The list of agent service names to filter traces within the specified log groups.
- Parameters:
serviceNames- The list of agent service names to filter traces within the specified log groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupNames
The list of CloudWatch log group names to read agent traces from. Maximum of 5 log groups.
- Parameters:
logGroupNames- The list of CloudWatch log group names to read agent traces from. Maximum of 5 log groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupNames
The list of CloudWatch log group names to read agent traces from. Maximum of 5 log groups.
- Parameters:
logGroupNames- The list of CloudWatch log group names to read agent traces from. Maximum of 5 log groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterConfig
Optional filter configuration to narrow down which sessions to evaluate.
- Parameters:
filterConfig- Optional filter configuration to narrow down which sessions to evaluate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterConfig
default CloudWatchLogsSource.Builder filterConfig(Consumer<CloudWatchFilterConfig.Builder> filterConfig) Optional filter configuration to narrow down which sessions to evaluate.
This is a convenience method that creates an instance of theCloudWatchFilterConfig.Builderavoiding the need to create one manually viaCloudWatchFilterConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilterConfig(CloudWatchFilterConfig).- Parameters:
filterConfig- a consumer that will call methods onCloudWatchFilterConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-