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 ClusterNodeclone()booleanequals(Object obj)StringgetNodeRole()Whether the node is a leader node or a compute node.StringgetPrivateIPAddress()The private IP address of a node within a cluster.StringgetPublicIPAddress()The public IP address of a node within a cluster.inthashCode()voidsetNodeRole(String nodeRole)Whether the node is a leader node or a compute node.voidsetPrivateIPAddress(String privateIPAddress)The private IP address of a node within a cluster.voidsetPublicIPAddress(String publicIPAddress)The public IP address of a node within a cluster.StringtoString()Returns a string representation of this object; useful for testing and debugging.ClusterNodewithNodeRole(String nodeRole)Whether the node is a leader node or a compute node.ClusterNodewithPrivateIPAddress(String privateIPAddress)The private IP address of a node within a cluster.ClusterNodewithPublicIPAddress(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ClusterNode clone()
-
-