Class FixedSlot
- java.lang.Object
-
- software.amazon.spapi.models.services.v1.FixedSlot
-
public class FixedSlot extends java.lang.Object
In this slot format each slot only has the requested capacity types. This slot size is as specified by slot duration.
-
-
Constructor Summary
Constructors Constructor Description FixedSlot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FixedSlot
availableCapacity(java.lang.Integer availableCapacity)
FixedSlot
encumberedCapacity(java.lang.Integer encumberedCapacity)
boolean
equals(java.lang.Object o)
java.lang.Integer
getAvailableCapacity()
Available capacity corresponding to the slot.java.lang.Integer
getEncumberedCapacity()
Encumbered capacity corresponding to the slot.java.lang.Integer
getReservedCapacity()
Reserved capacity corresponding to the slot.java.lang.Integer
getScheduledCapacity()
Scheduled capacity corresponding to the slot.org.threeten.bp.OffsetDateTime
getStartDateTime()
Start date time of slot in ISO 8601 format with precision of seconds.int
hashCode()
FixedSlot
reservedCapacity(java.lang.Integer reservedCapacity)
FixedSlot
scheduledCapacity(java.lang.Integer scheduledCapacity)
void
setAvailableCapacity(java.lang.Integer availableCapacity)
void
setEncumberedCapacity(java.lang.Integer encumberedCapacity)
void
setReservedCapacity(java.lang.Integer reservedCapacity)
void
setScheduledCapacity(java.lang.Integer scheduledCapacity)
void
setStartDateTime(org.threeten.bp.OffsetDateTime startDateTime)
FixedSlot
startDateTime(org.threeten.bp.OffsetDateTime startDateTime)
java.lang.String
toString()
-
-
-
Method Detail
-
startDateTime
public FixedSlot startDateTime(org.threeten.bp.OffsetDateTime startDateTime)
-
getStartDateTime
public org.threeten.bp.OffsetDateTime getStartDateTime()
Start date time of slot in ISO 8601 format with precision of seconds.- Returns:
- startDateTime
-
setStartDateTime
public void setStartDateTime(org.threeten.bp.OffsetDateTime startDateTime)
-
scheduledCapacity
public FixedSlot scheduledCapacity(java.lang.Integer scheduledCapacity)
-
getScheduledCapacity
public java.lang.Integer getScheduledCapacity()
Scheduled capacity corresponding to the slot. This capacity represents the originally allocated capacity as per resource schedule.- Returns:
- scheduledCapacity
-
setScheduledCapacity
public void setScheduledCapacity(java.lang.Integer scheduledCapacity)
-
availableCapacity
public FixedSlot availableCapacity(java.lang.Integer availableCapacity)
-
getAvailableCapacity
public java.lang.Integer getAvailableCapacity()
Available capacity corresponding to the slot. This capacity represents the capacity available for allocation to reservations.- Returns:
- availableCapacity
-
setAvailableCapacity
public void setAvailableCapacity(java.lang.Integer availableCapacity)
-
encumberedCapacity
public FixedSlot encumberedCapacity(java.lang.Integer encumberedCapacity)
-
getEncumberedCapacity
public java.lang.Integer getEncumberedCapacity()
Encumbered capacity corresponding to the slot. This capacity represents the capacity allocated for Amazon Jobs/Appointments/Orders.- Returns:
- encumberedCapacity
-
setEncumberedCapacity
public void setEncumberedCapacity(java.lang.Integer encumberedCapacity)
-
reservedCapacity
public FixedSlot reservedCapacity(java.lang.Integer reservedCapacity)
-
getReservedCapacity
public java.lang.Integer getReservedCapacity()
Reserved capacity corresponding to the slot. This capacity represents the capacity made unavailable due to events like Breaks/Leaves/Lunch.- Returns:
- reservedCapacity
-
setReservedCapacity
public void setReservedCapacity(java.lang.Integer reservedCapacity)
-
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
-
-