Interface GroupQuery.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GroupQuery.Builder,
,GroupQuery> SdkBuilder<GroupQuery.Builder,
,GroupQuery> SdkPojo
- Enclosing class:
GroupQuery
@Mutable
@NotThreadSafe
public static interface GroupQuery.Builder
extends SdkPojo, CopyableBuilder<GroupQuery.Builder,GroupQuery>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the resource group that is associated with the specified resource query.default GroupQuery.Builder
resourceQuery
(Consumer<ResourceQuery.Builder> resourceQuery) The resource query that determines which Amazon Web Services resources are members of the associated resource group.resourceQuery
(ResourceQuery resourceQuery) The resource query that determines which Amazon Web Services resources are members of the associated resource group.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
-
Method Details
-
groupName
The name of the resource group that is associated with the specified resource query.
- Parameters:
groupName
- The name of the resource group that is associated with the specified resource query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceQuery
The resource query that determines which Amazon Web Services resources are members of the associated resource group.
- Parameters:
resourceQuery
- The resource query that determines which Amazon Web Services resources are members of the associated resource group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceQuery
The resource query that determines which Amazon Web Services resources are members of the associated resource group.
This is a convenience method that creates an instance of theResourceQuery.Builder
avoiding the need to create one manually viaResourceQuery.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceQuery(ResourceQuery)
.- Parameters:
resourceQuery
- a consumer that will call methods onResourceQuery.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-