Class OrderSummary
- java.lang.Object
-
- software.amazon.awssdk.services.outposts.model.OrderSummary
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OrderSummary.Builder,OrderSummary>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOrderSummary.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OrderSummary.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasLineItemCountsByStatus()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.InstantorderFulfilledDate()The fulfilment date for the order.StringorderId()The ID of the order.InstantorderSubmissionDate()The submission date for the order.OrderTypeorderType()The type of order.StringorderTypeAsString()The type of order.StringoutpostId()The ID of the Outpost.List<SdkField<?>>sdkFields()static Class<? extends OrderSummary.Builder>serializableBuilderClass()OrderStatusstatus()The status of the order.StringstatusAsString()The status of the order.OrderSummary.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
outpostId
public final String outpostId()
The ID of the Outpost.
- Returns:
- The ID of the Outpost.
-
orderId
public final String orderId()
The ID of the order.
- Returns:
- The ID of the order.
-
orderType
public final OrderType orderType()
The type of order.
If the service returns an enum value that is not available in the current SDK version,
orderTypewill returnOrderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromorderTypeAsString().- Returns:
- The type of order.
- See Also:
OrderType
-
orderTypeAsString
public final String orderTypeAsString()
The type of order.
If the service returns an enum value that is not available in the current SDK version,
orderTypewill returnOrderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromorderTypeAsString().- Returns:
- The type of order.
- See Also:
OrderType
-
status
public 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 theLineItemstatus. -
COMPLETED- Order is complete. -
CANCELLED- Order is cancelled. -
ERROR- Customer should contact support.
The following statuses are deprecated:
RECEIVED,PENDING,PROCESSING,INSTALLING, andFULFILLED.If the service returns an enum value that is not available in the current SDK version,
statuswill returnOrderStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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 theLineItemstatus. -
COMPLETED- Order is complete. -
CANCELLED- Order is cancelled. -
ERROR- Customer should contact support.
The following statuses are deprecated:
RECEIVED,PENDING,PROCESSING,INSTALLING, andFULFILLED. -
- See Also:
OrderStatus
-
-
statusAsString
public 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 theLineItemstatus. -
COMPLETED- Order is complete. -
CANCELLED- Order is cancelled. -
ERROR- Customer should contact support.
The following statuses are deprecated:
RECEIVED,PENDING,PROCESSING,INSTALLING, andFULFILLED.If the service returns an enum value that is not available in the current SDK version,
statuswill returnOrderStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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 theLineItemstatus. -
COMPLETED- Order is complete. -
CANCELLED- Order is cancelled. -
ERROR- Customer should contact support.
The following statuses are deprecated:
RECEIVED,PENDING,PROCESSING,INSTALLING, andFULFILLED. -
- See Also:
OrderStatus
-
-
lineItemCountsByStatus
public 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.- Returns:
- The status of all line items in the order.
-
hasLineItemCountsByStatus
public final boolean hasLineItemCountsByStatus()
For responses, this returns true if the service returned a value for the LineItemCountsByStatus property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
lineItemCountsByStatusAsStrings
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.- Returns:
- The status of all line items in the order.
-
orderSubmissionDate
public final Instant orderSubmissionDate()
The submission date for the order.
- Returns:
- The submission date for the order.
-
orderFulfilledDate
public final Instant orderFulfilledDate()
The fulfilment date for the order.
- Returns:
- The fulfilment date for the order.
-
toBuilder
public OrderSummary.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<OrderSummary.Builder,OrderSummary>
-
builder
public static OrderSummary.Builder builder()
-
serializableBuilderClass
public static Class<? extends OrderSummary.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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.
-
-