public CreateGroupRequest withName(String name) {
        setName(name);
        return this;
    }
<p>
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 <code>AWS</code>, <code>aws</code>, or any other possible capitalization;
these are reserved. A resource group name must be unique within each Amazon Web Services Region in your Amazon
Web Services account.
</p>

@param 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 <code>AWS</code>, <code>aws</code>, or any other
       possible capitalization; these are reserved. A resource group name must be unique within each Amazon Web
       Services Region in your Amazon Web Services account.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resourcegroups/src/main/java/com/amazonaws/services/resourcegroups/model/CreateGroupRequest.java