@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HostEntry extends Object implements Serializable, Cloneable, StructuredPojo
Hostnames and IP address entries that are added to the /etc/hosts file of a container via the
extraHosts parameter of its ContainerDefinition.
| Constructor and Description |
|---|
HostEntry() |
| Modifier and Type | Method and Description |
|---|---|
HostEntry |
clone() |
boolean |
equals(Object obj) |
String |
getHostname()
The hostname to use in the
/etc/hosts entry. |
String |
getIpAddress()
The IP address to use in the
/etc/hosts entry. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setHostname(String hostname)
The hostname to use in the
/etc/hosts entry. |
void |
setIpAddress(String ipAddress)
The IP address to use in the
/etc/hosts entry. |
String |
toString()
Returns a string representation of this object.
|
HostEntry |
withHostname(String hostname)
The hostname to use in the
/etc/hosts entry. |
HostEntry |
withIpAddress(String ipAddress)
The IP address to use in the
/etc/hosts entry. |
public void setHostname(String hostname)
The hostname to use in the /etc/hosts entry.
hostname - The hostname to use in the /etc/hosts entry.public String getHostname()
The hostname to use in the /etc/hosts entry.
/etc/hosts entry.public HostEntry withHostname(String hostname)
The hostname to use in the /etc/hosts entry.
hostname - The hostname to use in the /etc/hosts entry.public void setIpAddress(String ipAddress)
The IP address to use in the /etc/hosts entry.
ipAddress - The IP address to use in the /etc/hosts entry.public String getIpAddress()
The IP address to use in the /etc/hosts entry.
/etc/hosts entry.public HostEntry withIpAddress(String ipAddress)
The IP address to use in the /etc/hosts entry.
ipAddress - The IP address to use in the /etc/hosts entry.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.