Interface DescribeLogGroupsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchLogsResponse.Builder,CopyableBuilder<DescribeLogGroupsResponse.Builder,,DescribeLogGroupsResponse> SdkBuilder<DescribeLogGroupsResponse.Builder,,DescribeLogGroupsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeLogGroupsResponse
-
Method Summary
Modifier and TypeMethodDescriptionlogGroups(Collection<LogGroup> logGroups) The log groups.logGroups(Consumer<LogGroup.Builder>... logGroups) The log groups.The log groups.Sets the value of the NextToken property for this object.Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
logGroups
The log groups.
If the
retentionInDaysvalue is not included for a log group, then that log group's events do not expire.- Parameters:
logGroups- The log groups.If the
retentionInDaysvalue is not included for a log group, then that log group's events do not expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroups
The log groups.
If the
retentionInDaysvalue is not included for a log group, then that log group's events do not expire.- Parameters:
logGroups- The log groups.If the
retentionInDaysvalue is not included for a log group, then that log group's events do not expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroups
The log groups.
If the
This is a convenience method that creates an instance of theretentionInDaysvalue is not included for a log group, then that log group's events do not expire.LogGroup.Builderavoiding the need to create one manually viaLogGroup.builder().When the
Consumercompletes,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.
-