Package com.amazonaws.services.ecs.model
Class HostEntry
java.lang.Object
com.amazonaws.services.ecs.model.HostEntry
- All Implemented Interfaces:
Serializable
,Cloneable
Hostnames and IP address entries that are added to the
/etc/hosts
file of a container via the extraHosts
parameter of its ContainerDefinition.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The hostname to use in the/etc/hosts
entry.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.toString()
Returns a string representation of this object; useful for testing and debugging.withHostname
(String hostname) The hostname to use in the/etc/hosts
entry.withIpAddress
(String ipAddress) The IP address to use in the/etc/hosts
entry.
-
Constructor Details
-
HostEntry
public HostEntry()
-
-
Method Details
-
setHostname
The hostname to use in the
/etc/hosts
entry.- Parameters:
hostname
- The hostname to use in the/etc/hosts
entry.
-
getHostname
The hostname to use in the
/etc/hosts
entry.- Returns:
- The hostname to use in the
/etc/hosts
entry.
-
withHostname
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
The IP address to use in the
/etc/hosts
entry.- Parameters:
ipAddress
- The IP address to use in the/etc/hosts
entry.
-
getIpAddress
The IP address to use in the
/etc/hosts
entry.- Returns:
- The IP address to use in the
/etc/hosts
entry.
-
withIpAddress
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-