Class OrderableClusterOption
- java.lang.Object
-
- com.amazonaws.services.redshift.model.OrderableClusterOption
-
- All Implemented Interfaces:
Serializable,Cloneable
public class OrderableClusterOption extends Object implements Serializable, Cloneable
Describes an orderable cluster option.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrderableClusterOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderableClusterOptionclone()booleanequals(Object obj)List<AvailabilityZone>getAvailabilityZones()A list of availability zones for the orderable cluster.StringgetClusterType()The cluster type, for examplemulti-node.StringgetClusterVersion()The version of the orderable cluster.StringgetNodeType()The node type for the orderable cluster.inthashCode()voidsetAvailabilityZones(Collection<AvailabilityZone> availabilityZones)A list of availability zones for the orderable cluster.voidsetClusterType(String clusterType)The cluster type, for examplemulti-node.voidsetClusterVersion(String clusterVersion)The version of the orderable cluster.voidsetNodeType(String nodeType)The node type for the orderable cluster.StringtoString()Returns a string representation of this object; useful for testing and debugging.OrderableClusterOptionwithAvailabilityZones(AvailabilityZone... availabilityZones)A list of availability zones for the orderable cluster.OrderableClusterOptionwithAvailabilityZones(Collection<AvailabilityZone> availabilityZones)A list of availability zones for the orderable cluster.OrderableClusterOptionwithClusterType(String clusterType)The cluster type, for examplemulti-node.OrderableClusterOptionwithClusterVersion(String clusterVersion)The version of the orderable cluster.OrderableClusterOptionwithNodeType(String nodeType)The node type for the orderable cluster.
-
-
-
Method Detail
-
setClusterVersion
public void setClusterVersion(String clusterVersion)
The version of the orderable cluster.
- Parameters:
clusterVersion- The version of the orderable cluster.
-
getClusterVersion
public String getClusterVersion()
The version of the orderable cluster.
- Returns:
- The version of the orderable cluster.
-
withClusterVersion
public OrderableClusterOption withClusterVersion(String clusterVersion)
The version of the orderable cluster.
- Parameters:
clusterVersion- The version of the orderable cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClusterType
public void setClusterType(String clusterType)
The cluster type, for example
multi-node.- Parameters:
clusterType- The cluster type, for examplemulti-node.
-
getClusterType
public String getClusterType()
The cluster type, for example
multi-node.- Returns:
- The cluster type, for example
multi-node.
-
withClusterType
public OrderableClusterOption withClusterType(String clusterType)
The cluster type, for example
multi-node.- Parameters:
clusterType- The cluster type, for examplemulti-node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNodeType
public void setNodeType(String nodeType)
The node type for the orderable cluster.
- Parameters:
nodeType- The node type for the orderable cluster.
-
getNodeType
public String getNodeType()
The node type for the orderable cluster.
- Returns:
- The node type for the orderable cluster.
-
withNodeType
public OrderableClusterOption withNodeType(String nodeType)
The node type for the orderable cluster.
- Parameters:
nodeType- The node type for the orderable cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAvailabilityZones
public List<AvailabilityZone> getAvailabilityZones()
A list of availability zones for the orderable cluster.
- Returns:
- A list of availability zones for the orderable cluster.
-
setAvailabilityZones
public void setAvailabilityZones(Collection<AvailabilityZone> availabilityZones)
A list of availability zones for the orderable cluster.
- Parameters:
availabilityZones- A list of availability zones for the orderable cluster.
-
withAvailabilityZones
public OrderableClusterOption withAvailabilityZones(AvailabilityZone... availabilityZones)
A list of availability zones for the orderable cluster.
NOTE: This method appends the values to the existing list (if any). Use
setAvailabilityZones(java.util.Collection)orwithAvailabilityZones(java.util.Collection)if you want to override the existing values.- Parameters:
availabilityZones- A list of availability zones for the orderable cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAvailabilityZones
public OrderableClusterOption withAvailabilityZones(Collection<AvailabilityZone> availabilityZones)
A list of availability zones for the orderable cluster.
- Parameters:
availabilityZones- A list of availability zones for the orderable cluster.- 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 OrderableClusterOption clone()
-
-