@Generated(value="software.amazon.awssdk:codegen") public final class Reservation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Reservation.Builder,Reservation>
| Modifier and Type | Class and Description |
|---|---|
static interface |
Reservation.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
Unique reservation ARN, e.g.
|
static Reservation.Builder |
builder() |
Integer |
count()
Number of reserved resources
|
String |
currencyCode()
Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g.
|
Integer |
duration()
Lease duration, e.g.
|
OfferingDurationUnits |
durationUnits()
Units for duration, e.g.
|
String |
durationUnitsAsString()
Units for duration, e.g.
|
String |
end()
Reservation UTC end date and time in ISO-8601 format, e.g.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Double |
fixedPrice()
One-time charge for each reserved resource, e.g.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
name()
User specified reservation name
|
String |
offeringDescription()
Offering description, e.g.
|
String |
offeringId()
Unique offering ID, e.g.
|
OfferingType |
offeringType()
Offering type, e.g.
|
String |
offeringTypeAsString()
Offering type, e.g.
|
String |
region()
AWS region, e.g.
|
RenewalSettings |
renewalSettings()
Renewal settings for the reservation
|
String |
reservationId()
Unique reservation ID, e.g.
|
ReservationResourceSpecification |
resourceSpecification()
Resource configuration details
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Reservation.Builder> |
serializableBuilderClass() |
String |
start()
Reservation UTC start date and time in ISO-8601 format, e.g.
|
ReservationState |
state()
Current state of reservation, e.g.
|
String |
stateAsString()
Current state of reservation, e.g.
|
Map<String,String> |
tags()
A collection of key-value pairs
|
Reservation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Double |
usagePrice()
Recurring usage charge for each reserved resource, e.g.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
public final Integer count()
public final String currencyCode()
public final Integer duration()
public final OfferingDurationUnits durationUnits()
If the service returns an enum value that is not available in the current SDK version, durationUnits
will return OfferingDurationUnits.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from durationUnitsAsString().
OfferingDurationUnitspublic final String durationUnitsAsString()
If the service returns an enum value that is not available in the current SDK version, durationUnits
will return OfferingDurationUnits.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from durationUnitsAsString().
OfferingDurationUnitspublic final String end()
public final Double fixedPrice()
public final String name()
public final String offeringDescription()
public final String offeringId()
public final OfferingType offeringType()
If the service returns an enum value that is not available in the current SDK version, offeringType will
return OfferingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
offeringTypeAsString().
OfferingTypepublic final String offeringTypeAsString()
If the service returns an enum value that is not available in the current SDK version, offeringType will
return OfferingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
offeringTypeAsString().
OfferingTypepublic final String region()
public final RenewalSettings renewalSettings()
public final String reservationId()
public final ReservationResourceSpecification resourceSpecification()
public final String start()
public final ReservationState state()
If the service returns an enum value that is not available in the current SDK version, state will return
ReservationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
ReservationStatepublic final String stateAsString()
If the service returns an enum value that is not available in the current SDK version, state will return
ReservationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
ReservationStatepublic final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final Map<String,String> tags()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final Double usagePrice()
public Reservation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Reservation.Builder,Reservation>public static Reservation.Builder builder()
public static Class<? extends Reservation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.