@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateGroupRequest() |
Modifier and Type | Method and Description |
---|---|
CreateGroupRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateGroupRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateGroupRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<GroupConfigurationItem> |
getConfiguration()
A configuration associates the resource group with an AWS service and specifies how the service can interact with
the resources in the group.
|
String |
getDescription()
The description of the resource group.
|
String |
getName()
The name of the group, which is the identifier of the group in other operations.
|
ResourceQuery |
getResourceQuery()
The resource query that determines which AWS resources are members of this group.
|
Map<String,String> |
getTags()
The tags to add to the group.
|
int |
hashCode() |
void |
setConfiguration(Collection<GroupConfigurationItem> configuration)
A configuration associates the resource group with an AWS service and specifies how the service can interact with
the resources in the group.
|
void |
setDescription(String description)
The description of the resource group.
|
void |
setName(String name)
The name of the group, which is the identifier of the group in other operations.
|
void |
setResourceQuery(ResourceQuery resourceQuery)
The resource query that determines which AWS resources are members of this group.
|
void |
setTags(Map<String,String> tags)
The tags to add to the group.
|
String |
toString()
Returns a string representation of this object.
|
CreateGroupRequest |
withConfiguration(Collection<GroupConfigurationItem> configuration)
A configuration associates the resource group with an AWS service and specifies how the service can interact with
the resources in the group.
|
CreateGroupRequest |
withConfiguration(GroupConfigurationItem... configuration)
A configuration associates the resource group with an AWS service and specifies how the service can interact with
the resources in the group.
|
CreateGroupRequest |
withDescription(String description)
The description of the resource group.
|
CreateGroupRequest |
withName(String name)
The name of the group, which is the identifier of the group in other operations.
|
CreateGroupRequest |
withResourceQuery(ResourceQuery resourceQuery)
The resource query that determines which AWS resources are members of this group.
|
CreateGroupRequest |
withTags(Map<String,String> tags)
The tags to add to the group.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(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 AWS Region in your AWS account.
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 AWS Region in your AWS account.public String getName()
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 AWS Region in your AWS account.
AWS
or aws
; these
are reserved. A resource group name must be unique within each AWS Region in your AWS account.public CreateGroupRequest withName(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 AWS Region in your AWS account.
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 AWS Region in your AWS account.public void setDescription(String description)
The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.
description
- The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores,
periods, and spaces.public String getDescription()
The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.
public CreateGroupRequest withDescription(String description)
The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.
description
- The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores,
periods, and spaces.public void setResourceQuery(ResourceQuery resourceQuery)
The resource query that determines which AWS resources are members of this group.
You can specify either a ResourceQuery
or a Configuration
, but not both.
resourceQuery
- The resource query that determines which AWS resources are members of this group.
You can specify either a ResourceQuery
or a Configuration
, but not both.
public ResourceQuery getResourceQuery()
The resource query that determines which AWS resources are members of this group.
You can specify either a ResourceQuery
or a Configuration
, but not both.
You can specify either a ResourceQuery
or a Configuration
, but not both.
public CreateGroupRequest withResourceQuery(ResourceQuery resourceQuery)
The resource query that determines which AWS resources are members of this group.
You can specify either a ResourceQuery
or a Configuration
, but not both.
resourceQuery
- The resource query that determines which AWS resources are members of this group.
You can specify either a ResourceQuery
or a Configuration
, but not both.
public Map<String,String> getTags()
The tags to add to the group. A tag is key-value pair string.
public void setTags(Map<String,String> tags)
The tags to add to the group. A tag is key-value pair string.
tags
- The tags to add to the group. A tag is key-value pair string.public CreateGroupRequest withTags(Map<String,String> tags)
The tags to add to the group. A tag is key-value pair string.
tags
- The tags to add to the group. A tag is key-value pair string.public CreateGroupRequest addTagsEntry(String key, String value)
public CreateGroupRequest clearTagsEntries()
public List<GroupConfigurationItem> getConfiguration()
A configuration associates the resource group with an AWS service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements.
You can specify either a Configuration
or a ResourceQuery
in a group, but not both.
You can specify either a Configuration
or a ResourceQuery
in a group, but not
both.
public void setConfiguration(Collection<GroupConfigurationItem> configuration)
A configuration associates the resource group with an AWS service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements.
You can specify either a Configuration
or a ResourceQuery
in a group, but not both.
configuration
- A configuration associates the resource group with an AWS service and specifies how the service can
interact with the resources in the group. A configuration is an array of GroupConfigurationItem
elements.
You can specify either a Configuration
or a ResourceQuery
in a group, but not
both.
public CreateGroupRequest withConfiguration(GroupConfigurationItem... configuration)
A configuration associates the resource group with an AWS service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements.
You can specify either a Configuration
or a ResourceQuery
in a group, but not both.
NOTE: This method appends the values to the existing list (if any). Use
setConfiguration(java.util.Collection)
or withConfiguration(java.util.Collection)
if you want
to override the existing values.
configuration
- A configuration associates the resource group with an AWS service and specifies how the service can
interact with the resources in the group. A configuration is an array of GroupConfigurationItem
elements.
You can specify either a Configuration
or a ResourceQuery
in a group, but not
both.
public CreateGroupRequest withConfiguration(Collection<GroupConfigurationItem> configuration)
A configuration associates the resource group with an AWS service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements.
You can specify either a Configuration
or a ResourceQuery
in a group, but not both.
configuration
- A configuration associates the resource group with an AWS service and specifies how the service can
interact with the resources in the group. A configuration is an array of GroupConfigurationItem
elements.
You can specify either a Configuration
or a ResourceQuery
in a group, but not
both.
public String toString()
toString
in class Object
Object.toString()
public CreateGroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()