Class CapacityReservationBillingRequest
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.CapacityReservationBillingRequest
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<CapacityReservationBillingRequest.Builder,CapacityReservationBillingRequest>
@Generated("software.amazon.awssdk:codegen") public final class CapacityReservationBillingRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacityReservationBillingRequest.Builder,CapacityReservationBillingRequest>
Information about a request to assign billing of the unused capacity of a Capacity Reservation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CapacityReservationBillingRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CapacityReservationBillingRequest.Builder
builder()
String
capacityReservationId()
The ID of the Capacity Reservation.CapacityReservationInfo
capacityReservationInfo()
Information about the Capacity Reservation.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Instant
lastUpdateTime()
The date and time, in UTC time format, at which the request was initiated.String
requestedBy()
The ID of the Amazon Web Services account that initiated the request.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends CapacityReservationBillingRequest.Builder>
serializableBuilderClass()
CapacityReservationBillingRequestStatus
status()
The status of the request.String
statusAsString()
The status of the request.String
statusMessage()
Information about the status.CapacityReservationBillingRequest.Builder
toBuilder()
String
toString()
Returns a string representation of this object.String
unusedReservationBillingOwnerId()
The ID of the Amazon Web Services account to which the request was sent.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
capacityReservationId
public final String capacityReservationId()
The ID of the Capacity Reservation.
- Returns:
- The ID of the Capacity Reservation.
-
requestedBy
public final String requestedBy()
The ID of the Amazon Web Services account that initiated the request.
- Returns:
- The ID of the Amazon Web Services account that initiated the request.
-
unusedReservationBillingOwnerId
public final String unusedReservationBillingOwnerId()
The ID of the Amazon Web Services account to which the request was sent.
- Returns:
- The ID of the Amazon Web Services account to which the request was sent.
-
lastUpdateTime
public final Instant lastUpdateTime()
The date and time, in UTC time format, at which the request was initiated.
- Returns:
- The date and time, in UTC time format, at which the request was initiated.
-
status
public final CapacityReservationBillingRequestStatus status()
The status of the request. For more information, see View billing assignment requests for a shared Amazon EC2 Capacity Reservation.
If the service returns an enum value that is not available in the current SDK version,
status
will returnCapacityReservationBillingRequestStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the request. For more information, see View billing assignment requests for a shared Amazon EC2 Capacity Reservation.
- See Also:
CapacityReservationBillingRequestStatus
-
statusAsString
public final String statusAsString()
The status of the request. For more information, see View billing assignment requests for a shared Amazon EC2 Capacity Reservation.
If the service returns an enum value that is not available in the current SDK version,
status
will returnCapacityReservationBillingRequestStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the request. For more information, see View billing assignment requests for a shared Amazon EC2 Capacity Reservation.
- See Also:
CapacityReservationBillingRequestStatus
-
statusMessage
public final String statusMessage()
Information about the status.
- Returns:
- Information about the status.
-
capacityReservationInfo
public final CapacityReservationInfo capacityReservationInfo()
Information about the Capacity Reservation.
- Returns:
- Information about the Capacity Reservation.
-
toBuilder
public CapacityReservationBillingRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<CapacityReservationBillingRequest.Builder,CapacityReservationBillingRequest>
-
builder
public static CapacityReservationBillingRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CapacityReservationBillingRequest.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-