@Generated(value="software.amazon.awssdk:codegen") public final class TimeRange extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TimeRange.Builder,TimeRange>
The time range.
Modifier and Type | Class and Description |
---|---|
static interface |
TimeRange.Builder |
Modifier and Type | Method and Description |
---|---|
static TimeRange.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
Instant |
fromInclusive()
The start time, in Unix time in seconds.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends TimeRange.Builder> |
serializableBuilderClass() |
TimeRange.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
Instant |
toExclusive()
The end time, in Unix time in seconds.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final Instant fromInclusive()
The start time, in Unix time in seconds. For more information see timestamp.
public final Instant toExclusive()
The end time, in Unix time in seconds. For more information see timestamp.
public TimeRange.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TimeRange.Builder,TimeRange>
public static TimeRange.Builder builder()
public static Class<? extends TimeRange.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()