@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails extends Object implements Serializable, Cloneable, StructuredPojo
A hostname and IP address mapping to append to the /etc/hosts file on the container.
Constructor and Description |
---|
AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails |
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.
|
AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails |
withHostname(String hostname)
The hostname to use in the /etc/hosts entry.
|
AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails |
withIpAddress(String ipAddress)
The IP address to use in the /etc/hosts entry.
|
public AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails()
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.
public AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails 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.
public AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails 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 Object
Object.toString()
public AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.