@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Endpoint extends Object implements Serializable, Cloneable, StructuredPojo
Represents an available endpoint against which to make API calls against, as well as the TTL for that endpoint.
Constructor and Description |
---|
Endpoint() |
Modifier and Type | Method and Description |
---|---|
Endpoint |
clone() |
boolean |
equals(Object obj) |
String |
getAddress()
An endpoint address.
|
Long |
getCachePeriodInMinutes()
The TTL for the endpoint, in minutes.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddress(String address)
An endpoint address.
|
void |
setCachePeriodInMinutes(Long cachePeriodInMinutes)
The TTL for the endpoint, in minutes.
|
String |
toString()
Returns a string representation of this object.
|
Endpoint |
withAddress(String address)
An endpoint address.
|
Endpoint |
withCachePeriodInMinutes(Long cachePeriodInMinutes)
The TTL for the endpoint, in minutes.
|
public void setAddress(String address)
An endpoint address.
address
- An endpoint address.public String getAddress()
An endpoint address.
public Endpoint withAddress(String address)
An endpoint address.
address
- An endpoint address.public void setCachePeriodInMinutes(Long cachePeriodInMinutes)
The TTL for the endpoint, in minutes.
cachePeriodInMinutes
- The TTL for the endpoint, in minutes.public Long getCachePeriodInMinutes()
The TTL for the endpoint, in minutes.
public Endpoint withCachePeriodInMinutes(Long cachePeriodInMinutes)
The TTL for the endpoint, in minutes.
cachePeriodInMinutes
- The TTL for the endpoint, in minutes.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.