Class Expiry
- java.lang.Object
-
- software.amazon.spapi.models.vendor.shipments.v1.Expiry
-
public class Expiry extends java.lang.Object
Expiry refers to the collection of dates required for certain items. These could be either expiryDate or mfgDate and expiryAfterDuration. These are mandatory for perishable items.
-
-
Constructor Summary
Constructors Constructor Description Expiry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Expiry
expiryAfterDuration(Duration expiryAfterDuration)
Expiry
expiryDate(org.threeten.bp.OffsetDateTime expiryDate)
Duration
getExpiryAfterDuration()
Get expiryAfterDurationorg.threeten.bp.OffsetDateTime
getExpiryDate()
The date that determines the limit of consumption or use of a product.org.threeten.bp.OffsetDateTime
getManufacturerDate()
Production, packaging or assembly date determined by the manufacturer.int
hashCode()
Expiry
manufacturerDate(org.threeten.bp.OffsetDateTime manufacturerDate)
void
setExpiryAfterDuration(Duration expiryAfterDuration)
void
setExpiryDate(org.threeten.bp.OffsetDateTime expiryDate)
void
setManufacturerDate(org.threeten.bp.OffsetDateTime manufacturerDate)
java.lang.String
toString()
-
-
-
Method Detail
-
manufacturerDate
public Expiry manufacturerDate(org.threeten.bp.OffsetDateTime manufacturerDate)
-
getManufacturerDate
public org.threeten.bp.OffsetDateTime getManufacturerDate()
Production, packaging or assembly date determined by the manufacturer. Its meaning is determined based on the trade item context.- Returns:
- manufacturerDate
-
setManufacturerDate
public void setManufacturerDate(org.threeten.bp.OffsetDateTime manufacturerDate)
-
expiryDate
public Expiry expiryDate(org.threeten.bp.OffsetDateTime expiryDate)
-
getExpiryDate
public org.threeten.bp.OffsetDateTime getExpiryDate()
The date that determines the limit of consumption or use of a product. Its meaning is determined based on the trade item context.- Returns:
- expiryDate
-
setExpiryDate
public void setExpiryDate(org.threeten.bp.OffsetDateTime expiryDate)
-
getExpiryAfterDuration
public Duration getExpiryAfterDuration()
Get expiryAfterDuration- Returns:
- expiryAfterDuration
-
setExpiryAfterDuration
public void setExpiryAfterDuration(Duration expiryAfterDuration)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-