@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimeZone extends Object implements Serializable, Cloneable, StructuredPojo
Information about a time zone. Includes the name of the time zone and the offset from UTC in seconds.
| Constructor and Description |
|---|
TimeZone() |
| Modifier and Type | Method and Description |
|---|---|
TimeZone |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the time zone, following the IANA time zone standard.
|
Integer |
getOffset()
The time zone's offset, in seconds, from UTC.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
The name of the time zone, following the IANA time zone standard.
|
void |
setOffset(Integer offset)
The time zone's offset, in seconds, from UTC.
|
String |
toString()
Returns a string representation of this object.
|
TimeZone |
withName(String name)
The name of the time zone, following the IANA time zone standard.
|
TimeZone |
withOffset(Integer offset)
The time zone's offset, in seconds, from UTC.
|
public void setName(String name)
The name of the time zone, following the IANA time zone standard.
For example, America/Los_Angeles.
name - The name of the time zone, following the IANA time zone
standard. For example, America/Los_Angeles.public String getName()
The name of the time zone, following the IANA time zone standard.
For example, America/Los_Angeles.
America/Los_Angeles.public TimeZone withName(String name)
The name of the time zone, following the IANA time zone standard.
For example, America/Los_Angeles.
name - The name of the time zone, following the IANA time zone
standard. For example, America/Los_Angeles.public void setOffset(Integer offset)
The time zone's offset, in seconds, from UTC.
offset - The time zone's offset, in seconds, from UTC.public Integer getOffset()
The time zone's offset, in seconds, from UTC.
public TimeZone withOffset(Integer offset)
The time zone's offset, in seconds, from UTC.
offset - The time zone's offset, in seconds, from UTC.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.