Interface CreateGroupRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateGroupRequest.Builder,
,CreateGroupRequest> ResourceGroupsRequest.Builder
,SdkBuilder<CreateGroupRequest.Builder,
,CreateGroupRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateGroupRequest
-
Method Summary
Modifier and TypeMethodDescriptionconfiguration
(Collection<GroupConfigurationItem> configuration) A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group.configuration
(Consumer<GroupConfigurationItem.Builder>... configuration) A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group.configuration
(GroupConfigurationItem... configuration) A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group.description
(String description) The description of the resource group.The name of the group, which is the identifier of the group in other operations.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateGroupRequest.Builder
resourceQuery
(Consumer<ResourceQuery.Builder> resourceQuery) The resource query that determines which Amazon Web Services resources are members of this group.resourceQuery
(ResourceQuery resourceQuery) The resource query that determines which Amazon Web Services resources are members of this group.The tags to add to the group.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.resourcegroups.model.ResourceGroupsRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the group, which is the identifier of the group in other operations. You can't change the name of a resource group after you create it. A resource group name can consist of letters, numbers, hyphens, periods, and underscores. The name cannot start with
AWS
oraws
; these are reserved. A resource group name must be unique within each Amazon Web Services Region in your Amazon Web Services account.- Parameters:
name
- The name of the group, which is the identifier of the group in other operations. You can't change the name of a resource group after you create it. A resource group name can consist of letters, numbers, hyphens, periods, and underscores. The name cannot start withAWS
oraws
; these are reserved. A resource group name must be unique within each Amazon Web Services Region in your Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.
- Parameters:
description
- The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.- 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 this group. For more information about resource queries, see Create a tag-based group in Resource Groups.
A resource group can contain either a
ResourceQuery
or aConfiguration
, but not both.- Parameters:
resourceQuery
- The resource query that determines which Amazon Web Services resources are members of this group. For more information about resource queries, see Create a tag-based group in Resource Groups.A resource group can contain either a
ResourceQuery
or aConfiguration
, but not both.- 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 this group. For more information about resource queries, see Create a tag-based group in Resource Groups.
A resource group can contain either a
ResourceQuery
or aConfiguration
, but not both.ResourceQuery.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:
-
tags
The tags to add to the group. A tag is key-value pair string.
- Parameters:
tags
- The tags to add to the group. A tag is key-value pair string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements. For details about the syntax of service configurations, see Service configurations for Resource Groups.
A resource group can contain either a
Configuration
or aResourceQuery
, but not both.- Parameters:
configuration
- A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements. For details about the syntax of service configurations, see Service configurations for Resource Groups.A resource group can contain either a
Configuration
or aResourceQuery
, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements. For details about the syntax of service configurations, see Service configurations for Resource Groups.
A resource group can contain either a
Configuration
or aResourceQuery
, but not both.- Parameters:
configuration
- A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements. For details about the syntax of service configurations, see Service configurations for Resource Groups.A resource group can contain either a
Configuration
or aResourceQuery
, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements. For details about the syntax of service configurations, see Service configurations for Resource Groups.
A resource group can contain either a
Configuration
or aResourceQuery
, but not both.GroupConfigurationItem.Builder
avoiding the need to create one manually viaGroupConfigurationItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(List<GroupConfigurationItem>)
.- Parameters:
configuration
- a consumer that will call methods onGroupConfigurationItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateGroupRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateGroupRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-