Class ClusterNode
- java.lang.Object
-
- com.amazonaws.services.redshift.model.ClusterNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ClusterNode extends Object implements Serializable, Cloneable
The identifier of a node in a cluster.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterNode
clone()
boolean
equals(Object obj)
String
getNodeRole()
Whether the node is a leader node or a compute node.String
getPrivateIPAddress()
The private IP address of a node within a cluster.String
getPublicIPAddress()
The public IP address of a node within a cluster.int
hashCode()
void
setNodeRole(String nodeRole)
Whether the node is a leader node or a compute node.void
setPrivateIPAddress(String privateIPAddress)
The private IP address of a node within a cluster.void
setPublicIPAddress(String publicIPAddress)
The public IP address of a node within a cluster.String
toString()
Returns a string representation of this object; useful for testing and debugging.ClusterNode
withNodeRole(String nodeRole)
Whether the node is a leader node or a compute node.ClusterNode
withPrivateIPAddress(String privateIPAddress)
The private IP address of a node within a cluster.ClusterNode
withPublicIPAddress(String publicIPAddress)
The public IP address of a node within a cluster.
-
-
-
Method Detail
-
setNodeRole
public void setNodeRole(String nodeRole)
Whether the node is a leader node or a compute node.
- Parameters:
nodeRole
- Whether the node is a leader node or a compute node.
-
getNodeRole
public String getNodeRole()
Whether the node is a leader node or a compute node.
- Returns:
- Whether the node is a leader node or a compute node.
-
withNodeRole
public ClusterNode withNodeRole(String nodeRole)
Whether the node is a leader node or a compute node.
- Parameters:
nodeRole
- Whether the node is a leader node or a compute node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateIPAddress
public void setPrivateIPAddress(String privateIPAddress)
The private IP address of a node within a cluster.
- Parameters:
privateIPAddress
- The private IP address of a node within a cluster.
-
getPrivateIPAddress
public String getPrivateIPAddress()
The private IP address of a node within a cluster.
- Returns:
- The private IP address of a node within a cluster.
-
withPrivateIPAddress
public ClusterNode withPrivateIPAddress(String privateIPAddress)
The private IP address of a node within a cluster.
- Parameters:
privateIPAddress
- The private IP address of a node within a cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPublicIPAddress
public void setPublicIPAddress(String publicIPAddress)
The public IP address of a node within a cluster.
- Parameters:
publicIPAddress
- The public IP address of a node within a cluster.
-
getPublicIPAddress
public String getPublicIPAddress()
The public IP address of a node within a cluster.
- Returns:
- The public IP address of a node within a cluster.
-
withPublicIPAddress
public ClusterNode withPublicIPAddress(String publicIPAddress)
The public IP address of a node within a cluster.
- Parameters:
publicIPAddress
- The public IP address of a node within a 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 ClusterNode clone()
-
-