All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commercetools.history.models.label.StagedQuoteLabel Maven / Gradle / Ivy

There is a newer version: 17.12.0
Show newest version

package com.commercetools.history.models.label;

import java.time.*;
import java.util.*;
import java.util.function.Function;

import javax.annotation.Nullable;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.commercetools.history.models.common.Reference;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;

import io.vrap.rmf.base.client.utils.Generated;

/**
 * StagedQuoteLabel
 *
 * 
* Example to create an instance using the builder pattern *
*

 *     StagedQuoteLabel stagedQuoteLabel = StagedQuoteLabel.builder()
 *             .key("{key}")
 *             .customer(customerBuilder -> customerBuilder)
 *             .quoteRequest(quoteRequestBuilder -> quoteRequestBuilder)
 *             .build()
 * 
*
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = StagedQuoteLabelImpl.class) public interface StagedQuoteLabel extends Label { /** * discriminator value for StagedQuoteLabel */ String STAGED_QUOTE_LABEL = "StagedQuoteLabel"; /** * * @return type */ @NotNull @JsonProperty("type") public String getType(); /** *

User-defined unique identifier of the Staged Quote.

* @return key */ @NotNull @JsonProperty("key") public String getKey(); /** *

The Buyer who requested the Quote.

* @return customer */ @NotNull @Valid @JsonProperty("customer") public Reference getCustomer(); /** *

Quote Request related to the Staged Quote.

* @return quoteRequest */ @NotNull @Valid @JsonProperty("quoteRequest") public Reference getQuoteRequest(); /** *

User-defined unique identifier of the Staged Quote.

* @param key value to be set */ public void setKey(final String key); /** *

The Buyer who requested the Quote.

* @param customer value to be set */ public void setCustomer(final Reference customer); /** *

Quote Request related to the Staged Quote.

* @param quoteRequest value to be set */ public void setQuoteRequest(final Reference quoteRequest); /** * factory method * @return instance of StagedQuoteLabel */ public static StagedQuoteLabel of() { return new StagedQuoteLabelImpl(); } /** * factory method to create a shallow copy StagedQuoteLabel * @param template instance to be copied * @return copy instance */ public static StagedQuoteLabel of(final StagedQuoteLabel template) { StagedQuoteLabelImpl instance = new StagedQuoteLabelImpl(); instance.setKey(template.getKey()); instance.setCustomer(template.getCustomer()); instance.setQuoteRequest(template.getQuoteRequest()); return instance; } /** * factory method to create a deep copy of StagedQuoteLabel * @param template instance to be copied * @return copy instance */ @Nullable public static StagedQuoteLabel deepCopy(@Nullable final StagedQuoteLabel template) { if (template == null) { return null; } StagedQuoteLabelImpl instance = new StagedQuoteLabelImpl(); instance.setKey(template.getKey()); instance.setCustomer(com.commercetools.history.models.common.Reference.deepCopy(template.getCustomer())); instance.setQuoteRequest( com.commercetools.history.models.common.Reference.deepCopy(template.getQuoteRequest())); return instance; } /** * builder factory method for StagedQuoteLabel * @return builder */ public static StagedQuoteLabelBuilder builder() { return StagedQuoteLabelBuilder.of(); } /** * create builder for StagedQuoteLabel instance * @param template instance with prefilled values for the builder * @return builder */ public static StagedQuoteLabelBuilder builder(final StagedQuoteLabel template) { return StagedQuoteLabelBuilder.of(template); } /** * accessor map function * @param mapped type * @param helper function to map the object * @return mapped value */ default T withStagedQuoteLabel(Function helper) { return helper.apply(this); } /** * gives a TypeReference for usage with Jackson DataBind * @return TypeReference */ public static com.fasterxml.jackson.core.type.TypeReference typeReference() { return new com.fasterxml.jackson.core.type.TypeReference() { @Override public String toString() { return "TypeReference"; } }; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy