public class CreateClusterSubnetGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateClusterSubnetGroup operation
.
Creates a new Amazon Redshift subnet group. You must provide a list of one or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) when creating Amazon Redshift subnet group.
For information about subnet groups, go to Amazon Redshift Cluster Subnet Groups in the Amazon Redshift Cluster Management Guide .
NOOP
Constructor and Description |
---|
CreateClusterSubnetGroupRequest() |
Modifier and Type | Method and Description |
---|---|
CreateClusterSubnetGroupRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getClusterSubnetGroupName()
The name for the subnet group.
|
String |
getDescription()
A description for the subnet group.
|
List<String> |
getSubnetIds()
An array of VPC subnet IDs.
|
List<Tag> |
getTags()
A list of tag instances.
|
int |
hashCode() |
void |
setClusterSubnetGroupName(String clusterSubnetGroupName)
The name for the subnet group.
|
void |
setDescription(String description)
A description for the subnet group.
|
void |
setSubnetIds(Collection<String> subnetIds)
An array of VPC subnet IDs.
|
void |
setTags(Collection<Tag> tags)
A list of tag instances.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateClusterSubnetGroupRequest |
withClusterSubnetGroupName(String clusterSubnetGroupName)
The name for the subnet group.
|
CreateClusterSubnetGroupRequest |
withDescription(String description)
A description for the subnet group.
|
CreateClusterSubnetGroupRequest |
withSubnetIds(Collection<String> subnetIds)
An array of VPC subnet IDs.
|
CreateClusterSubnetGroupRequest |
withSubnetIds(String... subnetIds)
An array of VPC subnet IDs.
|
CreateClusterSubnetGroupRequest |
withTags(Collection<Tag> tags)
A list of tag instances.
|
CreateClusterSubnetGroupRequest |
withTags(Tag... tags)
A list of tag instances.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public String getClusterSubnetGroupName()
Constraints:
Example:
examplesubnetgroup
Constraints:
Example:
examplesubnetgroup
public void setClusterSubnetGroupName(String clusterSubnetGroupName)
Constraints:
Example:
examplesubnetgroup
clusterSubnetGroupName
- The name for the subnet group. Amazon Redshift stores the value as a
lowercase string. Constraints:
Example:
examplesubnetgroup
public CreateClusterSubnetGroupRequest withClusterSubnetGroupName(String clusterSubnetGroupName)
Constraints:
Example:
examplesubnetgroup
Returns a reference to this object so that method calls can be chained together.
clusterSubnetGroupName
- The name for the subnet group. Amazon Redshift stores the value as a
lowercase string. Constraints:
Example:
examplesubnetgroup
public String getDescription()
public void setDescription(String description)
description
- A description for the subnet group.public CreateClusterSubnetGroupRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description for the subnet group.public List<String> getSubnetIds()
public void setSubnetIds(Collection<String> subnetIds)
subnetIds
- An array of VPC subnet IDs. A maximum of 20 subnets can be modified in
a single request.public CreateClusterSubnetGroupRequest withSubnetIds(String... subnetIds)
NOTE: This method appends the values to the existing list (if
any). Use setSubnetIds(java.util.Collection)
or withSubnetIds(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
subnetIds
- An array of VPC subnet IDs. A maximum of 20 subnets can be modified in
a single request.public CreateClusterSubnetGroupRequest withSubnetIds(Collection<String> subnetIds)
Returns a reference to this object so that method calls can be chained together.
subnetIds
- An array of VPC subnet IDs. A maximum of 20 subnets can be modified in
a single request.public void setTags(Collection<Tag> tags)
tags
- A list of tag instances.public CreateClusterSubnetGroupRequest withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the existing
values.
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tag instances.public CreateClusterSubnetGroupRequest withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tag instances.public String toString()
toString
in class Object
Object.toString()
public CreateClusterSubnetGroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.