Interface ListLogGroupsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchLogsResponse.Builder,CopyableBuilder<ListLogGroupsResponse.Builder,,ListLogGroupsResponse> SdkBuilder<ListLogGroupsResponse.Builder,,ListLogGroupsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListLogGroupsResponse
@Mutable
@NotThreadSafe
public static interface ListLogGroupsResponse.Builder
extends CloudWatchLogsResponse.Builder, SdkPojo, CopyableBuilder<ListLogGroupsResponse.Builder,ListLogGroupsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionlogGroups(Collection<LogGroupSummary> logGroups) An array of structures, where each structure contains the information about one log group.logGroups(Consumer<LogGroupSummary.Builder>... logGroups) An array of structures, where each structure contains the information about one log group.logGroups(LogGroupSummary... logGroups) 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, 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, sdkFieldNameToField, sdkFieldsMethods 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 theLogGroupSummary.Builderavoiding the need to create one manually viaLogGroupSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologGroups(List<LogGroupSummary>).- Parameters:
logGroups- a consumer that will call methods onLogGroupSummary.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.
-