Interface AgentResponsesCartSuccess
- All Superinterfaces:
AgentResponsesSuccess
Successful 201 response from a /responses request when outputType is Cart.
Example to create an instance using the builder pattern
AgentResponsesCartSuccess agentResponsesCartSuccess = AgentResponsesCartSuccess.builder()
.threadId("{threadId}")
.entity(entityBuilder -> entityBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentResponsesCartSuccessbuilder(AgentResponsesCartSuccess template) create builder for AgentResponsesCartSuccess instancecopyDeep()static AgentResponsesCartSuccessdeepCopy(AgentResponsesCartSuccess template) factory method to create a deep copy of AgentResponsesCartSuccess@NotNull @Valid CartThe created Cart in full commercetools REST representation.static AgentResponsesCartSuccessof()factory methodstatic AgentResponsesCartSuccessof(AgentResponsesCartSuccess template) factory method to create a shallow copy AgentResponsesCartSuccessvoidThe created Cart in full commercetools REST representation.static tools.jackson.core.type.TypeReference<AgentResponsesCartSuccess>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.agent.AgentResponsesSuccess
getEntityType, getThreadId, getWarnings, setThreadId, setWarnings, setWarnings, withAgentResponsesSuccess
-
Field Details
-
CART
discriminator value for AgentResponsesCartSuccess- See Also:
-
-
Method Details
-
getEntity
The created Cart in full commercetools REST representation.
- Returns:
- entity
-
setEntity
The created Cart in full commercetools REST representation.
- Parameters:
entity- value to be set
-
of
factory method- Returns:
- instance of AgentResponsesCartSuccess
-
of
factory method to create a shallow copy AgentResponsesCartSuccess- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentResponsesCartSuccess copyDeep()- Specified by:
copyDeepin interfaceAgentResponsesSuccess
-
deepCopy
factory method to create a deep copy of AgentResponsesCartSuccess- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentResponsesCartSuccess- Returns:
- builder
-
builder
create builder for AgentResponsesCartSuccess instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentResponsesCartSuccess
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-