001
002package com.commercetools.api.models.me;
003
004import java.time.*;
005import java.util.*;
006import java.util.function.Function;
007
008import javax.annotation.Nullable;
009
010import com.fasterxml.jackson.annotation.*;
011import com.fasterxml.jackson.databind.annotation.*;
012
013import io.vrap.rmf.base.client.utils.Generated;
014
015/**
016 * MyCustomerSetVatIdAction
017 *
018 * <hr>
019 * Example to create an instance using the builder pattern
020 * <div class=code-example>
021 * <pre><code class='java'>
022 *     MyCustomerSetVatIdAction myCustomerSetVatIdAction = MyCustomerSetVatIdAction.builder()
023 *             .build()
024 * </code></pre>
025 * </div>
026 */
027@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
028@JsonDeserialize(as = MyCustomerSetVatIdActionImpl.class)
029public interface MyCustomerSetVatIdAction extends MyCustomerUpdateAction {
030
031    /**
032     * discriminator value for MyCustomerSetVatIdAction
033     */
034    String SET_VAT_ID = "setVatId";
035
036    /**
037     *  <p>Value to set. If empty, any existing value is removed.</p>
038     * @return vatId
039     */
040
041    @JsonProperty("vatId")
042    public String getVatId();
043
044    /**
045     *  <p>Value to set. If empty, any existing value is removed.</p>
046     * @param vatId value to be set
047     */
048
049    public void setVatId(final String vatId);
050
051    /**
052     * factory method
053     * @return instance of MyCustomerSetVatIdAction
054     */
055    public static MyCustomerSetVatIdAction of() {
056        return new MyCustomerSetVatIdActionImpl();
057    }
058
059    /**
060     * factory method to create a shallow copy MyCustomerSetVatIdAction
061     * @param template instance to be copied
062     * @return copy instance
063     */
064    public static MyCustomerSetVatIdAction of(final MyCustomerSetVatIdAction template) {
065        MyCustomerSetVatIdActionImpl instance = new MyCustomerSetVatIdActionImpl();
066        instance.setVatId(template.getVatId());
067        return instance;
068    }
069
070    /**
071     * factory method to create a deep copy of MyCustomerSetVatIdAction
072     * @param template instance to be copied
073     * @return copy instance
074     */
075    @Nullable
076    public static MyCustomerSetVatIdAction deepCopy(@Nullable final MyCustomerSetVatIdAction template) {
077        if (template == null) {
078            return null;
079        }
080        MyCustomerSetVatIdActionImpl instance = new MyCustomerSetVatIdActionImpl();
081        instance.setVatId(template.getVatId());
082        return instance;
083    }
084
085    /**
086     * builder factory method for MyCustomerSetVatIdAction
087     * @return builder
088     */
089    public static MyCustomerSetVatIdActionBuilder builder() {
090        return MyCustomerSetVatIdActionBuilder.of();
091    }
092
093    /**
094     * create builder for MyCustomerSetVatIdAction instance
095     * @param template instance with prefilled values for the builder
096     * @return builder
097     */
098    public static MyCustomerSetVatIdActionBuilder builder(final MyCustomerSetVatIdAction template) {
099        return MyCustomerSetVatIdActionBuilder.of(template);
100    }
101
102    /**
103     * accessor map function
104     * @param <T> mapped type
105     * @param helper function to map the object
106     * @return mapped value
107     */
108    default <T> T withMyCustomerSetVatIdAction(Function<MyCustomerSetVatIdAction, T> helper) {
109        return helper.apply(this);
110    }
111
112    /**
113     * gives a TypeReference for usage with Jackson DataBind
114     * @return TypeReference
115     */
116    public static com.fasterxml.jackson.core.type.TypeReference<MyCustomerSetVatIdAction> typeReference() {
117        return new com.fasterxml.jackson.core.type.TypeReference<MyCustomerSetVatIdAction>() {
118            @Override
119            public String toString() {
120                return "TypeReference<MyCustomerSetVatIdAction>";
121            }
122        };
123    }
124}