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/hostsfile of a container via theextraHostsparameter 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 HostEntryclone()booleanequals(Object obj)StringgetHostname()The hostname to use in the/etc/hostsentry.StringgetIpAddress()The IP address to use in the/etc/hostsentry.inthashCode()voidsetHostname(String hostname)The hostname to use in the/etc/hostsentry.voidsetIpAddress(String ipAddress)The IP address to use in the/etc/hostsentry.StringtoString()Returns a string representation of this object; useful for testing and debugging.HostEntrywithHostname(String hostname)The hostname to use in the/etc/hostsentry.HostEntrywithIpAddress(String ipAddress)The IP address to use in the/etc/hostsentry.
-
-
-
Method Detail
-
setHostname
public void setHostname(String hostname)
The hostname to use in the
/etc/hostsentry.- Parameters:
hostname- The hostname to use in the/etc/hostsentry.
-
getHostname
public String getHostname()
The hostname to use in the
/etc/hostsentry.- Returns:
- The hostname to use in the
/etc/hostsentry.
-
withHostname
public HostEntry withHostname(String hostname)
The hostname to use in the
/etc/hostsentry.- Parameters:
hostname- The hostname to use in the/etc/hostsentry.- 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/hostsentry.- Parameters:
ipAddress- The IP address to use in the/etc/hostsentry.
-
getIpAddress
public String getIpAddress()
The IP address to use in the
/etc/hostsentry.- Returns:
- The IP address to use in the
/etc/hostsentry.
-
withIpAddress
public HostEntry withIpAddress(String ipAddress)
The IP address to use in the
/etc/hostsentry.- Parameters:
ipAddress- The IP address to use in the/etc/hostsentry.- 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()
-
-