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 the extraHosts parameter of its ContainerDefinition.

See Also:
  • Constructor Details

    • HostEntry

      public HostEntry()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public HostEntry clone()
      Overrides:
      clone in class Object