Class SimilarProductsTaskStatusImpl
java.lang.Object
com.commercetools.ml.models.similar_products.SimilarProductsTaskStatusImpl
- All Implemented Interfaces:
SimilarProductsTaskStatus,io.vrap.rmf.base.client.ModelBase
public class SimilarProductsTaskStatusImpl
extends Object
implements SimilarProductsTaskStatus, io.vrap.rmf.base.client.ModelBase
Represents a URL path to poll to get the results of an Asynchronous Request.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe expiry date of the result.The response to an asynchronous request.getState()inthashCode()voidsetExpires(ZonedDateTime expires) The expiry date of the result.voidThe response to an asynchronous request.voidsetState(TaskStatusEnum state) set stateMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionStringMethods inherited from interface com.commercetools.ml.models.similar_products.SimilarProductsTaskStatus
withSimilarProductsTaskStatus
-
Constructor Details
-
SimilarProductsTaskStatusImpl
public SimilarProductsTaskStatusImpl()create empty instance
-
-
Method Details
-
getState
- Specified by:
getStatein interfaceSimilarProductsTaskStatus- Returns:
- state
-
getExpires
The expiry date of the result. You cannot access the result after the expiry date. Default: 1 day after the result first becomes available. This is only available when the TaskStatus state is SUCCESS.
- Specified by:
getExpiresin interfaceSimilarProductsTaskStatus- Returns:
- expires
-
getResult
The response to an asynchronous request. The type depends on the request initiated. Only populated when the status is
SUCCESS.- Specified by:
getResultin interfaceSimilarProductsTaskStatus- Returns:
- result
-
setState
Description copied from interface:SimilarProductsTaskStatusset state- Specified by:
setStatein interfaceSimilarProductsTaskStatus- Parameters:
state- value to be set
-
setExpires
Description copied from interface:SimilarProductsTaskStatusThe expiry date of the result. You cannot access the result after the expiry date. Default: 1 day after the result first becomes available. This is only available when the TaskStatus state is SUCCESS.
- Specified by:
setExpiresin interfaceSimilarProductsTaskStatus- Parameters:
expires- value to be set
-
setResult
Description copied from interface:SimilarProductsTaskStatusThe response to an asynchronous request. The type depends on the request initiated. Only populated when the status is
SUCCESS.- Specified by:
setResultin interfaceSimilarProductsTaskStatus- Parameters:
result- value to be set
-
equals
-
hashCode
public int hashCode()
-