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