Class ClusterSubnetGroup
- java.lang.Object
-
- com.amazonaws.services.redshift.model.ClusterSubnetGroup
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ClusterSubnetGroup extends Object implements Serializable, Cloneable
Describes a subnet group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterSubnetGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterSubnetGroupclone()booleanequals(Object obj)StringgetClusterSubnetGroupName()The name of the cluster subnet group.StringgetDescription()The description of the cluster subnet group.StringgetSubnetGroupStatus()The status of the cluster subnet group.List<Subnet>getSubnets()A list of the VPC Subnet elements.List<Tag>getTags()The list of tags for the cluster subnet group.StringgetVpcId()The VPC ID of the cluster subnet group.inthashCode()voidsetClusterSubnetGroupName(String clusterSubnetGroupName)The name of the cluster subnet group.voidsetDescription(String description)The description of the cluster subnet group.voidsetSubnetGroupStatus(String subnetGroupStatus)The status of the cluster subnet group.voidsetSubnets(Collection<Subnet> subnets)A list of the VPC Subnet elements.voidsetTags(Collection<Tag> tags)The list of tags for the cluster subnet group.voidsetVpcId(String vpcId)The VPC ID of the cluster subnet group.StringtoString()Returns a string representation of this object; useful for testing and debugging.ClusterSubnetGroupwithClusterSubnetGroupName(String clusterSubnetGroupName)The name of the cluster subnet group.ClusterSubnetGroupwithDescription(String description)The description of the cluster subnet group.ClusterSubnetGroupwithSubnetGroupStatus(String subnetGroupStatus)The status of the cluster subnet group.ClusterSubnetGroupwithSubnets(Subnet... subnets)A list of the VPC Subnet elements.ClusterSubnetGroupwithSubnets(Collection<Subnet> subnets)A list of the VPC Subnet elements.ClusterSubnetGroupwithTags(Tag... tags)The list of tags for the cluster subnet group.ClusterSubnetGroupwithTags(Collection<Tag> tags)The list of tags for the cluster subnet group.ClusterSubnetGroupwithVpcId(String vpcId)The VPC ID of the cluster subnet group.
-
-
-
Method Detail
-
setClusterSubnetGroupName
public void setClusterSubnetGroupName(String clusterSubnetGroupName)
The name of the cluster subnet group.
- Parameters:
clusterSubnetGroupName- The name of the cluster subnet group.
-
getClusterSubnetGroupName
public String getClusterSubnetGroupName()
The name of the cluster subnet group.
- Returns:
- The name of the cluster subnet group.
-
withClusterSubnetGroupName
public ClusterSubnetGroup withClusterSubnetGroupName(String clusterSubnetGroupName)
The name of the cluster subnet group.
- Parameters:
clusterSubnetGroupName- The name of the cluster subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The description of the cluster subnet group.
- Parameters:
description- The description of the cluster subnet group.
-
getDescription
public String getDescription()
The description of the cluster subnet group.
- Returns:
- The description of the cluster subnet group.
-
withDescription
public ClusterSubnetGroup withDescription(String description)
The description of the cluster subnet group.
- Parameters:
description- The description of the cluster subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcId
public void setVpcId(String vpcId)
The VPC ID of the cluster subnet group.
- Parameters:
vpcId- The VPC ID of the cluster subnet group.
-
getVpcId
public String getVpcId()
The VPC ID of the cluster subnet group.
- Returns:
- The VPC ID of the cluster subnet group.
-
withVpcId
public ClusterSubnetGroup withVpcId(String vpcId)
The VPC ID of the cluster subnet group.
- Parameters:
vpcId- The VPC ID of the cluster subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSubnetGroupStatus
public void setSubnetGroupStatus(String subnetGroupStatus)
The status of the cluster subnet group. Possible values are
Complete,IncompleteandInvalid.- Parameters:
subnetGroupStatus- The status of the cluster subnet group. Possible values areComplete,IncompleteandInvalid.
-
getSubnetGroupStatus
public String getSubnetGroupStatus()
The status of the cluster subnet group. Possible values are
Complete,IncompleteandInvalid.- Returns:
- The status of the cluster subnet group. Possible values are
Complete,IncompleteandInvalid.
-
withSubnetGroupStatus
public ClusterSubnetGroup withSubnetGroupStatus(String subnetGroupStatus)
The status of the cluster subnet group. Possible values are
Complete,IncompleteandInvalid.- Parameters:
subnetGroupStatus- The status of the cluster subnet group. Possible values areComplete,IncompleteandInvalid.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSubnets
public List<Subnet> getSubnets()
A list of the VPC Subnet elements.
- Returns:
- A list of the VPC Subnet elements.
-
setSubnets
public void setSubnets(Collection<Subnet> subnets)
A list of the VPC Subnet elements.
- Parameters:
subnets- A list of the VPC Subnet elements.
-
withSubnets
public ClusterSubnetGroup withSubnets(Subnet... subnets)
A list of the VPC Subnet elements.
NOTE: This method appends the values to the existing list (if any). Use
setSubnets(java.util.Collection)orwithSubnets(java.util.Collection)if you want to override the existing values.- Parameters:
subnets- A list of the VPC Subnet elements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSubnets
public ClusterSubnetGroup withSubnets(Collection<Subnet> subnets)
A list of the VPC Subnet elements.
- Parameters:
subnets- A list of the VPC Subnet elements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
The list of tags for the cluster subnet group.
- Returns:
- The list of tags for the cluster subnet group.
-
setTags
public void setTags(Collection<Tag> tags)
The list of tags for the cluster subnet group.
- Parameters:
tags- The list of tags for the cluster subnet group.
-
withTags
public ClusterSubnetGroup withTags(Tag... tags)
The list of tags for the cluster subnet group.
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- The list of tags for the cluster subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public ClusterSubnetGroup withTags(Collection<Tag> tags)
The list of tags for the cluster subnet group.
- Parameters:
tags- The list of tags for the cluster subnet group.- 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 ClusterSubnetGroup clone()
-
-