Interface DescribeLogGroupsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchLogsResponse.Builder
,CopyableBuilder<DescribeLogGroupsResponse.Builder,
,DescribeLogGroupsResponse> SdkBuilder<DescribeLogGroupsResponse.Builder,
,DescribeLogGroupsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeLogGroupsResponse
@Mutable
@NotThreadSafe
public static interface DescribeLogGroupsResponse.Builder
extends CloudWatchLogsResponse.Builder, SdkPojo, CopyableBuilder<DescribeLogGroupsResponse.Builder,DescribeLogGroupsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionlogGroups
(Collection<LogGroup> logGroups) An array of structures, where each structure contains the information about one log group.logGroups
(Consumer<LogGroup.Builder>... logGroups) An array of structures, where each structure contains the information about one log group.An array of structures, where each structure contains the information about one log group.Sets the value of the NextToken property for this object.Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsResponse.Builder
build, responseMetadata, responseMetadata
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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
logGroups
An array of structures, where each structure contains the information about one log group.
- Parameters:
logGroups
- An array of structures, where each structure contains the information about one log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroups
An array of structures, where each structure contains the information about one log group.
- Parameters:
logGroups
- An array of structures, where each structure contains the information about one log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroups
An array of structures, where each structure contains the information about one log group.
This is a convenience method that creates an instance of theLogGroup.Builder
avoiding the need to create one manually viaLogGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologGroups(List<LogGroup>)
.- Parameters:
logGroups
- a consumer that will call methods onLogGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Sets the value of the NextToken property for this object.- Parameters:
nextToken
- The new value for the NextToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-