Class ServiceJob
- java.lang.Object
-
- software.amazon.spapi.models.services.v1.ServiceJob
-
public class ServiceJob extends java.lang.Object
The job details of a service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceJob.ServiceJobStatusEnum
The status of the service job.
-
Constructor Summary
Constructors Constructor Description ServiceJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceJob
addAppointmentsItem(Appointment appointmentsItem)
ServiceJob
addAssociatedItemsItem(AssociatedItem associatedItemsItem)
ServiceJob
addPreferredAppointmentTimesItem(AppointmentTime preferredAppointmentTimesItem)
ServiceJob
appointments(java.util.List<Appointment> appointments)
ServiceJob
associatedItems(java.util.List<AssociatedItem> associatedItems)
ServiceJob
buyer(Buyer buyer)
ServiceJob
createTime(org.threeten.bp.OffsetDateTime createTime)
boolean
equals(java.lang.Object o)
java.util.List<Appointment>
getAppointments()
A list of appointments.java.util.List<AssociatedItem>
getAssociatedItems()
A list of items associated with the service job.Buyer
getBuyer()
Get buyerorg.threeten.bp.OffsetDateTime
getCreateTime()
The date and time of the creation of the job in ISO 8601 format.java.lang.String
getMarketplaceId()
The marketplace identifier.java.util.List<AppointmentTime>
getPreferredAppointmentTimes()
A list of appointment windows preferred by the buyer.ScopeOfWork
getScopeOfWork()
Get scopeOfWorkSeller
getSeller()
Get sellerjava.lang.String
getServiceJobId()
Get serviceJobIdServiceJobProvider
getServiceJobProvider()
Get serviceJobProviderServiceJob.ServiceJobStatusEnum
getServiceJobStatus()
The status of the service job.ServiceLocation
getServiceLocation()
Get serviceLocationjava.lang.String
getServiceOrderId()
Get serviceOrderIdjava.lang.String
getStoreId()
The Amazon-defined identifier for the region scope.int
hashCode()
ServiceJob
marketplaceId(java.lang.String marketplaceId)
ServiceJob
preferredAppointmentTimes(java.util.List<AppointmentTime> preferredAppointmentTimes)
ServiceJob
scopeOfWork(ScopeOfWork scopeOfWork)
ServiceJob
seller(Seller seller)
ServiceJob
serviceJobId(java.lang.String serviceJobId)
ServiceJob
serviceJobProvider(ServiceJobProvider serviceJobProvider)
ServiceJob
serviceJobStatus(ServiceJob.ServiceJobStatusEnum serviceJobStatus)
ServiceJob
serviceLocation(ServiceLocation serviceLocation)
ServiceJob
serviceOrderId(java.lang.String serviceOrderId)
void
setAppointments(java.util.List<Appointment> appointments)
void
setAssociatedItems(java.util.List<AssociatedItem> associatedItems)
void
setBuyer(Buyer buyer)
void
setCreateTime(org.threeten.bp.OffsetDateTime createTime)
void
setMarketplaceId(java.lang.String marketplaceId)
void
setPreferredAppointmentTimes(java.util.List<AppointmentTime> preferredAppointmentTimes)
void
setScopeOfWork(ScopeOfWork scopeOfWork)
void
setSeller(Seller seller)
void
setServiceJobId(java.lang.String serviceJobId)
void
setServiceJobProvider(ServiceJobProvider serviceJobProvider)
void
setServiceJobStatus(ServiceJob.ServiceJobStatusEnum serviceJobStatus)
void
setServiceLocation(ServiceLocation serviceLocation)
void
setServiceOrderId(java.lang.String serviceOrderId)
void
setStoreId(java.lang.String storeId)
ServiceJob
storeId(java.lang.String storeId)
java.lang.String
toString()
-
-
-
Method Detail
-
createTime
public ServiceJob createTime(org.threeten.bp.OffsetDateTime createTime)
-
getCreateTime
public org.threeten.bp.OffsetDateTime getCreateTime()
The date and time of the creation of the job in ISO 8601 format.- Returns:
- createTime
-
setCreateTime
public void setCreateTime(org.threeten.bp.OffsetDateTime createTime)
-
serviceJobId
public ServiceJob serviceJobId(java.lang.String serviceJobId)
-
getServiceJobId
public java.lang.String getServiceJobId()
Get serviceJobId- Returns:
- serviceJobId
-
setServiceJobId
public void setServiceJobId(java.lang.String serviceJobId)
-
serviceJobStatus
public ServiceJob serviceJobStatus(ServiceJob.ServiceJobStatusEnum serviceJobStatus)
-
getServiceJobStatus
public ServiceJob.ServiceJobStatusEnum getServiceJobStatus()
The status of the service job.- Returns:
- serviceJobStatus
-
setServiceJobStatus
public void setServiceJobStatus(ServiceJob.ServiceJobStatusEnum serviceJobStatus)
-
scopeOfWork
public ServiceJob scopeOfWork(ScopeOfWork scopeOfWork)
-
getScopeOfWork
public ScopeOfWork getScopeOfWork()
Get scopeOfWork- Returns:
- scopeOfWork
-
setScopeOfWork
public void setScopeOfWork(ScopeOfWork scopeOfWork)
-
seller
public ServiceJob seller(Seller seller)
-
getSeller
public Seller getSeller()
Get seller- Returns:
- seller
-
setSeller
public void setSeller(Seller seller)
-
serviceJobProvider
public ServiceJob serviceJobProvider(ServiceJobProvider serviceJobProvider)
-
getServiceJobProvider
public ServiceJobProvider getServiceJobProvider()
Get serviceJobProvider- Returns:
- serviceJobProvider
-
setServiceJobProvider
public void setServiceJobProvider(ServiceJobProvider serviceJobProvider)
-
preferredAppointmentTimes
public ServiceJob preferredAppointmentTimes(java.util.List<AppointmentTime> preferredAppointmentTimes)
-
addPreferredAppointmentTimesItem
public ServiceJob addPreferredAppointmentTimesItem(AppointmentTime preferredAppointmentTimesItem)
-
getPreferredAppointmentTimes
public java.util.List<AppointmentTime> getPreferredAppointmentTimes()
A list of appointment windows preferred by the buyer. Included only if the buyer selected appointment windows when creating the order.- Returns:
- preferredAppointmentTimes
-
setPreferredAppointmentTimes
public void setPreferredAppointmentTimes(java.util.List<AppointmentTime> preferredAppointmentTimes)
-
appointments
public ServiceJob appointments(java.util.List<Appointment> appointments)
-
addAppointmentsItem
public ServiceJob addAppointmentsItem(Appointment appointmentsItem)
-
getAppointments
public java.util.List<Appointment> getAppointments()
A list of appointments.- Returns:
- appointments
-
setAppointments
public void setAppointments(java.util.List<Appointment> appointments)
-
serviceOrderId
public ServiceJob serviceOrderId(java.lang.String serviceOrderId)
-
getServiceOrderId
public java.lang.String getServiceOrderId()
Get serviceOrderId- Returns:
- serviceOrderId
-
setServiceOrderId
public void setServiceOrderId(java.lang.String serviceOrderId)
-
marketplaceId
public ServiceJob marketplaceId(java.lang.String marketplaceId)
-
getMarketplaceId
public java.lang.String getMarketplaceId()
The marketplace identifier.- Returns:
- marketplaceId
-
setMarketplaceId
public void setMarketplaceId(java.lang.String marketplaceId)
-
storeId
public ServiceJob storeId(java.lang.String storeId)
-
getStoreId
public java.lang.String getStoreId()
The Amazon-defined identifier for the region scope.- Returns:
- storeId
-
setStoreId
public void setStoreId(java.lang.String storeId)
-
buyer
public ServiceJob buyer(Buyer buyer)
-
getBuyer
public Buyer getBuyer()
Get buyer- Returns:
- buyer
-
setBuyer
public void setBuyer(Buyer buyer)
-
associatedItems
public ServiceJob associatedItems(java.util.List<AssociatedItem> associatedItems)
-
addAssociatedItemsItem
public ServiceJob addAssociatedItemsItem(AssociatedItem associatedItemsItem)
-
getAssociatedItems
public java.util.List<AssociatedItem> getAssociatedItems()
A list of items associated with the service job.- Returns:
- associatedItems
-
setAssociatedItems
public void setAssociatedItems(java.util.List<AssociatedItem> associatedItems)
-
serviceLocation
public ServiceJob serviceLocation(ServiceLocation serviceLocation)
-
getServiceLocation
public ServiceLocation getServiceLocation()
Get serviceLocation- Returns:
- serviceLocation
-
setServiceLocation
public void setServiceLocation(ServiceLocation serviceLocation)
-
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
-
-