Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.redshift.model
Class CreateClusterSubnetGroupRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.redshift.model.CreateClusterSubnetGroupRequest
All Implemented Interfaces:
Serializable

public class CreateClusterSubnetGroupRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the 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 Management Guide .

See Also:
AmazonRedshift.createClusterSubnetGroup(CreateClusterSubnetGroupRequest), Serialized Form

Constructor Summary
CreateClusterSubnetGroupRequest()
           
 
Method Summary
 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.
 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.
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateClusterSubnetGroupRequest

public CreateClusterSubnetGroupRequest()
Method Detail

getClusterSubnetGroupName

public String getClusterSubnetGroupName()
The name for the subnet group. Amazon Redshift stores the value as a lowercase string.

Constraints:

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


setClusterSubnetGroupName

public void setClusterSubnetGroupName(String clusterSubnetGroupName)
The name for the subnet group. Amazon Redshift stores the value as a lowercase string.

Constraints:

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


withClusterSubnetGroupName

public CreateClusterSubnetGroupRequest withClusterSubnetGroupName(String clusterSubnetGroupName)
The name for the subnet group. Amazon Redshift stores the value as a lowercase string.

Constraints:

Example: examplesubnetgroup

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

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:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
A description for the subnet group.

Returns:
A description for the subnet group.

setDescription

public void setDescription(String description)
A description for the subnet group.

Parameters:
description - A description for the subnet group.

withDescription

public CreateClusterSubnetGroupRequest withDescription(String description)
A description for the subnet group.

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

Parameters:
description - A description for the subnet group.
Returns:
A reference to this updated 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.

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

Parameters:
subnetIds - An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
Returns:
A reference to this updated 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.

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

Parameters:
subnetIds - An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
Returns:
A reference to this updated 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:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.