Interface CreateGroupRequest.Builder

    • 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 AWS or aws; 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 with AWS or aws; 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 ResourceQuery or a Configuration, 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 a Configuration, but not both.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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 Configuration or a ResourceQuery, 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 a ResourceQuery, 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 Configuration or a ResourceQuery, 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 a ResourceQuery, but not both.

        Returns:
        Returns a reference to this object so that method calls can be chained together.