Interface CreateGroupRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateGroupRequest.Builder,CreateGroupRequest>,ResourceGroupsRequest.Builder,SdkBuilder<CreateGroupRequest.Builder,CreateGroupRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateGroupRequest
public static interface CreateGroupRequest.Builder extends ResourceGroupsRequest.Builder, SdkPojo, CopyableBuilder<CreateGroupRequest.Builder,CreateGroupRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateGroupRequest.Builderconfiguration(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.CreateGroupRequest.Builderconfiguration(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.CreateGroupRequest.Builderconfiguration(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.CreateGroupRequest.Builderdescription(String description)The description of the resource group.CreateGroupRequest.Buildername(String name)The name of the group, which is the identifier of the group in other operations.CreateGroupRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateGroupRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateGroupRequest.BuilderresourceQuery(Consumer<ResourceQuery.Builder> resourceQuery)The resource query that determines which Amazon Web Services resources are members of this group.CreateGroupRequest.BuilderresourceQuery(ResourceQuery resourceQuery)The resource query that determines which Amazon Web Services resources are members of this group.CreateGroupRequest.Buildertags(Map<String,String> tags)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 Detail
-
name
CreateGroupRequest.Builder name(String 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
AWSoraws; 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 withAWSoraws; 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
CreateGroupRequest.Builder description(String 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
CreateGroupRequest.Builder resourceQuery(ResourceQuery 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
ResourceQueryor 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
ResourceQueryor aConfiguration, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceQuery
default CreateGroupRequest.Builder resourceQuery(Consumer<ResourceQuery.Builder> 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.
This is a convenience method that creates an instance of theA resource group can contain either a
ResourceQueryor aConfiguration, but not both.ResourceQuery.Builderavoiding the need to create one manually viaResourceQuery.builder().When the
Consumercompletes,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:
resourceQuery(ResourceQuery)
-
tags
CreateGroupRequest.Builder tags(Map<String,String> 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
CreateGroupRequest.Builder configuration(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. 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
Configurationor 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
Configurationor aResourceQuery, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
CreateGroupRequest.Builder 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. 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
Configurationor 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
Configurationor aResourceQuery, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
CreateGroupRequest.Builder 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. A configuration is an array of GroupConfigurationItem elements. For details about the syntax of service configurations, see Service configurations for Resource Groups.
This is a convenience method that creates an instance of theA resource group can contain either a
Configurationor aResourceQuery, but not both.GroupConfigurationItem.Builderavoiding the need to create one manually viaGroupConfigurationItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#configuration(List.) - 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:
#configuration(java.util.Collection)
-
overrideConfiguration
CreateGroupRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateGroupRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-