@Generated(value="software.amazon.awssdk:codegen") public final class OrderSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OrderSummary.Builder,OrderSummary>
A summary of line items in your order.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OrderSummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
static OrderSummary.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasLineItemCountsByStatus()
For responses, this returns true if the service returned a value for the LineItemCountsByStatus property.
|
Map<LineItemStatus,Integer> |
lineItemCountsByStatus()
The status of all line items in the order.
|
Map<String,Integer> |
lineItemCountsByStatusAsStrings()
The status of all line items in the order.
|
Instant |
orderFulfilledDate()
The fulfilment date for the order.
|
String |
orderId()
The ID of the order.
|
Instant |
orderSubmissionDate()
The submission date for the order.
|
OrderType |
orderType()
The type of order.
|
String |
orderTypeAsString()
The type of order.
|
String |
outpostId()
The ID of the Outpost.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends OrderSummary.Builder> |
serializableBuilderClass() |
OrderStatus |
status()
The status of the order.
|
String |
statusAsString()
The status of the order.
|
OrderSummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String outpostId()
The ID of the Outpost.
public final String orderId()
The ID of the order.
public final OrderType orderType()
The type of order.
If the service returns an enum value that is not available in the current SDK version, orderType will
return OrderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
orderTypeAsString().
OrderTypepublic final String orderTypeAsString()
The type of order.
If the service returns an enum value that is not available in the current SDK version, orderType will
return OrderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
orderTypeAsString().
OrderTypepublic final OrderStatus status()
The status of the order.
PREPARING - Order is received and is being prepared.
IN_PROGRESS - Order is either being built, shipped, or installed. For more information, see the
LineItem status.
COMPLETED - Order is complete.
CANCELLED - Order is cancelled.
ERROR - Customer should contact support.
The following statuses are deprecated: RECEIVED, PENDING, PROCESSING,
INSTALLING, and FULFILLED.
If the service returns an enum value that is not available in the current SDK version, status will
return OrderStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
PREPARING - Order is received and is being prepared.
IN_PROGRESS - Order is either being built, shipped, or installed. For more information, see
the LineItem status.
COMPLETED - Order is complete.
CANCELLED - Order is cancelled.
ERROR - Customer should contact support.
The following statuses are deprecated: RECEIVED, PENDING,
PROCESSING, INSTALLING, and FULFILLED.
OrderStatuspublic final String statusAsString()
The status of the order.
PREPARING - Order is received and is being prepared.
IN_PROGRESS - Order is either being built, shipped, or installed. For more information, see the
LineItem status.
COMPLETED - Order is complete.
CANCELLED - Order is cancelled.
ERROR - Customer should contact support.
The following statuses are deprecated: RECEIVED, PENDING, PROCESSING,
INSTALLING, and FULFILLED.
If the service returns an enum value that is not available in the current SDK version, status will
return OrderStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
PREPARING - Order is received and is being prepared.
IN_PROGRESS - Order is either being built, shipped, or installed. For more information, see
the LineItem status.
COMPLETED - Order is complete.
CANCELLED - Order is cancelled.
ERROR - Customer should contact support.
The following statuses are deprecated: RECEIVED, PENDING,
PROCESSING, INSTALLING, and FULFILLED.
OrderStatuspublic final Map<LineItemStatus,Integer> lineItemCountsByStatus()
The status of all line items in the order.
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 hasLineItemCountsByStatus() method.
public final boolean hasLineItemCountsByStatus()
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,Integer> lineItemCountsByStatusAsStrings()
The status of all line items in the order.
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 hasLineItemCountsByStatus() method.
public final Instant orderSubmissionDate()
The submission date for the order.
public final Instant orderFulfilledDate()
The fulfilment date for the order.
public OrderSummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<OrderSummary.Builder,OrderSummary>public static OrderSummary.Builder builder()
public static Class<? extends OrderSummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.