Class CreateClusterSubnetGroupRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.redshift.model.CreateClusterSubnetGroupRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateClusterSubnetGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateClusterSubnetGroupRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateClusterSubnetGroupRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetClusterSubnetGroupName()The name for the subnet group.StringgetDescription()A description for the subnet group.List<String>getSubnetIds()An array of VPC subnet IDs.List<Tag>getTags()A list of tag instances.inthashCode()voidsetClusterSubnetGroupName(String clusterSubnetGroupName)The name for the subnet group.voidsetDescription(String description)A description for the subnet group.voidsetSubnetIds(Collection<String> subnetIds)An array of VPC subnet IDs.voidsetTags(Collection<Tag> tags)A list of tag instances.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateClusterSubnetGroupRequestwithClusterSubnetGroupName(String clusterSubnetGroupName)The name for the subnet group.CreateClusterSubnetGroupRequestwithDescription(String description)A description for the subnet group.CreateClusterSubnetGroupRequestwithSubnetIds(String... subnetIds)An array of VPC subnet IDs.CreateClusterSubnetGroupRequestwithSubnetIds(Collection<String> subnetIds)An array of VPC subnet IDs.CreateClusterSubnetGroupRequestwithTags(Tag... tags)A list of tag instances.CreateClusterSubnetGroupRequestwithTags(Collection<Tag> tags)A list of tag instances.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setClusterSubnetGroupName
public void setClusterSubnetGroupName(String clusterSubnetGroupName)
The name for the subnet group. Amazon Redshift stores the value as a lowercase string.
Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all subnet groups that are created by your AWS account.
Example:
examplesubnetgroup- Parameters:
clusterSubnetGroupName- The name for the subnet group. Amazon Redshift stores the value as a lowercase string.Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all subnet groups that are created by your AWS account.
Example:
examplesubnetgroup
-
getClusterSubnetGroupName
public String getClusterSubnetGroupName()
The name for the subnet group. Amazon Redshift stores the value as a lowercase string.
Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all subnet groups that are created by your AWS account.
Example:
examplesubnetgroup- Returns:
- The name for the subnet group. Amazon Redshift stores the value
as a lowercase string.
Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all subnet groups that are created by your AWS account.
Example:
examplesubnetgroup
-
withClusterSubnetGroupName
public CreateClusterSubnetGroupRequest withClusterSubnetGroupName(String clusterSubnetGroupName)
The name for the subnet group. Amazon Redshift stores the value as a lowercase string.
Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all subnet groups that are created by your AWS account.
Example:
examplesubnetgroup- Parameters:
clusterSubnetGroupName- The name for the subnet group. Amazon Redshift stores the value as a lowercase string.Constraints:
- Must contain no more than 255 alphanumeric characters or hyphens.
- Must not be "Default".
- Must be unique for all subnet groups that are created by your AWS account.
Example:
examplesubnetgroup- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
A description for the subnet group.
- Parameters:
description- A description for the subnet group.
-
getDescription
public String getDescription()
A description for the subnet group.
- Returns:
- A description for the subnet group.
-
withDescription
public CreateClusterSubnetGroupRequest withDescription(String description)
A description for the subnet group.
- Parameters:
description- A description for the subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSubnetIds
public List<String> getSubnetIds()
An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
- Returns:
- An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
-
setSubnetIds
public void setSubnetIds(Collection<String> subnetIds)
An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
- Parameters:
subnetIds- An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
-
withSubnetIds
public CreateClusterSubnetGroupRequest withSubnetIds(String... subnetIds)
An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)orwithSubnetIds(java.util.Collection)if you want to override the existing values.- Parameters:
subnetIds- An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSubnetIds
public CreateClusterSubnetGroupRequest withSubnetIds(Collection<String> subnetIds)
An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
- Parameters:
subnetIds- An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTags
public void setTags(Collection<Tag> tags)
A list of tag instances.
- Parameters:
tags- A list of tag instances.
-
withTags
public CreateClusterSubnetGroupRequest withTags(Tag... tags)
A list of tag instances.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- A list of tag instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public CreateClusterSubnetGroupRequest withTags(Collection<Tag> tags)
A list of tag instances.
- Parameters:
tags- A list of tag instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateClusterSubnetGroupRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-