Package com.amazonaws.services.ecs.model
Class HostEntry
- java.lang.Object
-
- com.amazonaws.services.ecs.model.HostEntry
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class HostEntry extends Object implements Serializable, Cloneable
Hostnames and IP address entries that are added to the
/etc/hosts
file of a container via theextraHosts
parameter of its ContainerDefinition.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HostEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
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; useful for testing and debugging.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.
-
-
-
Method Detail
-
setHostname
public void setHostname(String hostname)
The hostname to use in the
/etc/hosts
entry.- Parameters:
hostname
- The hostname to use in the/etc/hosts
entry.
-
getHostname
public String getHostname()
The hostname to use in the
/etc/hosts
entry.- Returns:
- The hostname to use in the
/etc/hosts
entry.
-
withHostname
public HostEntry withHostname(String hostname)
The hostname to use in the
/etc/hosts
entry.- Parameters:
hostname
- The hostname to use in the/etc/hosts
entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIpAddress
public void setIpAddress(String ipAddress)
The IP address to use in the
/etc/hosts
entry.- Parameters:
ipAddress
- The IP address to use in the/etc/hosts
entry.
-
getIpAddress
public String getIpAddress()
The IP address to use in the
/etc/hosts
entry.- Returns:
- The IP address to use in the
/etc/hosts
entry.
-
withIpAddress
public HostEntry withIpAddress(String ipAddress)
The IP address to use in the
/etc/hosts
entry.- Parameters:
ipAddress
- The IP address to use in the/etc/hosts
entry.- 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()
-
-