Interface AgentResponsesShoppingListSuccess
- All Superinterfaces:
AgentResponsesSuccess
Successful 201 response from a /responses request when outputType is ShoppingList.
Example to create an instance using the builder pattern
AgentResponsesShoppingListSuccess agentResponsesShoppingListSuccess = AgentResponsesShoppingListSuccess.builder()
.threadId("{threadId}")
.entity(entityBuilder -> entityBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentResponsesShoppingListSuccess -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentResponsesShoppingListSuccessbuilder(AgentResponsesShoppingListSuccess template) create builder for AgentResponsesShoppingListSuccess instancecopyDeep()deepCopy(AgentResponsesShoppingListSuccess template) factory method to create a deep copy of AgentResponsesShoppingListSuccess@NotNull @Valid ShoppingListThe created ShoppingList in full commercetools REST representation.of()factory methodof(AgentResponsesShoppingListSuccess template) factory method to create a shallow copy AgentResponsesShoppingListSuccessvoidsetEntity(ShoppingList entity) The created ShoppingList in full commercetools REST representation.static tools.jackson.core.type.TypeReference<AgentResponsesShoppingListSuccess>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
-
SHOPPING_LIST
discriminator value for AgentResponsesShoppingListSuccess- See Also:
-
-
Method Details
-
getEntity
The created ShoppingList in full commercetools REST representation.
- Returns:
- entity
-
setEntity
The created ShoppingList in full commercetools REST representation.
- Parameters:
entity- value to be set
-
of
factory method- Returns:
- instance of AgentResponsesShoppingListSuccess
-
of
factory method to create a shallow copy AgentResponsesShoppingListSuccess- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentResponsesShoppingListSuccess copyDeep()- Specified by:
copyDeepin interfaceAgentResponsesSuccess
-
deepCopy
@Nullable static AgentResponsesShoppingListSuccess deepCopy(@Nullable AgentResponsesShoppingListSuccess template) factory method to create a deep copy of AgentResponsesShoppingListSuccess- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentResponsesShoppingListSuccess- Returns:
- builder
-
builder
create builder for AgentResponsesShoppingListSuccess instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentResponsesShoppingListSuccess
default <T> T withAgentResponsesShoppingListSuccess(Function<AgentResponsesShoppingListSuccess, T> helper) 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
-