public class BackendServerDescription
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about the configuration of a back-end server.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
instancePort
The port on which the back-end server is listening.
|
private SdkInternalList<java.lang.String> |
policyNames
The names of the policies enabled for the back-end server.
|
Constructor and Description |
---|
BackendServerDescription() |
Modifier and Type | Method and Description |
---|---|
BackendServerDescription |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getInstancePort()
The port on which the back-end server is listening.
|
java.util.List<java.lang.String> |
getPolicyNames()
The names of the policies enabled for the back-end server.
|
int |
hashCode() |
void |
setInstancePort(java.lang.Integer instancePort)
The port on which the back-end server is listening.
|
void |
setPolicyNames(java.util.Collection<java.lang.String> policyNames)
The names of the policies enabled for the back-end server.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BackendServerDescription |
withInstancePort(java.lang.Integer instancePort)
The port on which the back-end server is listening.
|
BackendServerDescription |
withPolicyNames(java.util.Collection<java.lang.String> policyNames)
The names of the policies enabled for the back-end server.
|
BackendServerDescription |
withPolicyNames(java.lang.String... policyNames)
The names of the policies enabled for the back-end server.
|
private java.lang.Integer instancePort
The port on which the back-end server is listening.
private SdkInternalList<java.lang.String> policyNames
The names of the policies enabled for the back-end server.
public void setInstancePort(java.lang.Integer instancePort)
The port on which the back-end server is listening.
instancePort
- The port on which the back-end server is listening.public java.lang.Integer getInstancePort()
The port on which the back-end server is listening.
public BackendServerDescription withInstancePort(java.lang.Integer instancePort)
The port on which the back-end server is listening.
instancePort
- The port on which the back-end server is listening.public java.util.List<java.lang.String> getPolicyNames()
The names of the policies enabled for the back-end server.
public void setPolicyNames(java.util.Collection<java.lang.String> policyNames)
The names of the policies enabled for the back-end server.
policyNames
- The names of the policies enabled for the back-end server.public BackendServerDescription withPolicyNames(java.lang.String... policyNames)
The names of the policies enabled for the back-end server.
NOTE: This method appends the values to the existing list (if
any). Use setPolicyNames(java.util.Collection)
or
withPolicyNames(java.util.Collection)
if you want to override
the existing values.
policyNames
- The names of the policies enabled for the back-end server.public BackendServerDescription withPolicyNames(java.util.Collection<java.lang.String> policyNames)
The names of the policies enabled for the back-end server.
policyNames
- The names of the policies enabled for the back-end server.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public BackendServerDescription clone()
clone
in class java.lang.Object