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 OrderableClusterOption
clone()
boolean
equals(Object obj)
List<AvailabilityZone>
getAvailabilityZones()
A list of availability zones for the orderable cluster.String
getClusterType()
The cluster type, for examplemulti-node
.String
getClusterVersion()
The version of the orderable cluster.String
getNodeType()
The node type for the orderable cluster.int
hashCode()
void
setAvailabilityZones(Collection<AvailabilityZone> availabilityZones)
A list of availability zones for the orderable cluster.void
setClusterType(String clusterType)
The cluster type, for examplemulti-node
.void
setClusterVersion(String clusterVersion)
The version of the orderable cluster.void
setNodeType(String nodeType)
The node type for the orderable cluster.String
toString()
Returns a string representation of this object; useful for testing and debugging.OrderableClusterOption
withAvailabilityZones(AvailabilityZone... availabilityZones)
A list of availability zones for the orderable cluster.OrderableClusterOption
withAvailabilityZones(Collection<AvailabilityZone> availabilityZones)
A list of availability zones for the orderable cluster.OrderableClusterOption
withClusterType(String clusterType)
The cluster type, for examplemulti-node
.OrderableClusterOption
withClusterVersion(String clusterVersion)
The version of the orderable cluster.OrderableClusterOption
withNodeType(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public OrderableClusterOption clone()
-
-