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

microsoft.dynamics.crm.entity.Quarterlyfiscalcalendar Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package microsoft.dynamics.crm.entity;

import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.davidmoten.odata.client.ClientException;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.ODataEntityType;
import com.github.davidmoten.odata.client.RequestOptions;
import com.github.davidmoten.odata.client.Util;
import com.github.davidmoten.odata.client.annotation.NavigationProperty;
import com.github.davidmoten.odata.client.annotation.Property;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.RequestHelper;
import com.github.davidmoten.odata.client.internal.UnmappedFields;

import java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.Optional;

import microsoft.dynamics.crm.entity.collection.request.AsyncoperationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BulkdeletefailureCollectionRequest;
import microsoft.dynamics.crm.entity.request.SystemuserRequest;
import microsoft.dynamics.crm.entity.request.TransactioncurrencyRequest;

@JsonPropertyOrder({
    "@odata.type", 
    "quarter4_base", 
    "_transactioncurrencyid_value", 
    "userfiscalcalendarid", 
    "modifiedon", 
    "timezoneruleversionnumber", 
    "_businessunitid_value", 
    "fiscalperiodtype", 
    "_modifiedby_value", 
    "createdon", 
    "_createdby_value", 
    "quarter3", 
    "quarter3_base", 
    "exchangerate", 
    "quarter1_base", 
    "_createdonbehalfby_value", 
    "effectiveon", 
    "quarter2", 
    "quarter1", 
    "_modifiedonbehalfby_value", 
    "utcconversiontimezonecode", 
    "quarter4", 
    "quarter2_base", 
    "_salespersonid_value"})
@JsonInclude(Include.NON_NULL)
public class Quarterlyfiscalcalendar extends Crmbaseentity implements ODataEntityType {

    @Override
    public String odataTypeName() {
        return "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar";
    }

    @JsonProperty("quarter4_base")
    protected BigDecimal quarter4_base;

    @JsonProperty("_transactioncurrencyid_value")
    protected String _transactioncurrencyid_value;

    @JsonProperty("userfiscalcalendarid")
    protected String userfiscalcalendarid;

    @JsonProperty("modifiedon")
    protected OffsetDateTime modifiedon;

    @JsonProperty("timezoneruleversionnumber")
    protected Integer timezoneruleversionnumber;

    @JsonProperty("_businessunitid_value")
    protected String _businessunitid_value;

    @JsonProperty("fiscalperiodtype")
    protected Integer fiscalperiodtype;

    @JsonProperty("_modifiedby_value")
    protected String _modifiedby_value;

    @JsonProperty("createdon")
    protected OffsetDateTime createdon;

    @JsonProperty("_createdby_value")
    protected String _createdby_value;

    @JsonProperty("quarter3")
    protected BigDecimal quarter3;

    @JsonProperty("quarter3_base")
    protected BigDecimal quarter3_base;

    @JsonProperty("exchangerate")
    protected BigDecimal exchangerate;

    @JsonProperty("quarter1_base")
    protected BigDecimal quarter1_base;

    @JsonProperty("_createdonbehalfby_value")
    protected String _createdonbehalfby_value;

    @JsonProperty("effectiveon")
    protected OffsetDateTime effectiveon;

    @JsonProperty("quarter2")
    protected BigDecimal quarter2;

    @JsonProperty("quarter1")
    protected BigDecimal quarter1;

    @JsonProperty("_modifiedonbehalfby_value")
    protected String _modifiedonbehalfby_value;

    @JsonProperty("utcconversiontimezonecode")
    protected Integer utcconversiontimezonecode;

    @JsonProperty("quarter4")
    protected BigDecimal quarter4;

    @JsonProperty("quarter2_base")
    protected BigDecimal quarter2_base;

    @JsonProperty("_salespersonid_value")
    protected String _salespersonid_value;

    protected Quarterlyfiscalcalendar() {
        super();
    }

    /**
     * Returns a builder which is used to create a new
     * instance of this class (given that this class is immutable).
     *
     * @return a new Builder for this class
     */
    // Suffix used on builder factory method to differentiate the method
    // from static builder methods on superclasses
    public static Builder builderQuarterlyfiscalcalendar() {
        return new Builder();
    }

    public static final class Builder {
        private BigDecimal quarter4_base;
        private String _transactioncurrencyid_value;
        private String userfiscalcalendarid;
        private OffsetDateTime modifiedon;
        private Integer timezoneruleversionnumber;
        private String _businessunitid_value;
        private Integer fiscalperiodtype;
        private String _modifiedby_value;
        private OffsetDateTime createdon;
        private String _createdby_value;
        private BigDecimal quarter3;
        private BigDecimal quarter3_base;
        private BigDecimal exchangerate;
        private BigDecimal quarter1_base;
        private String _createdonbehalfby_value;
        private OffsetDateTime effectiveon;
        private BigDecimal quarter2;
        private BigDecimal quarter1;
        private String _modifiedonbehalfby_value;
        private Integer utcconversiontimezonecode;
        private BigDecimal quarter4;
        private BigDecimal quarter2_base;
        private String _salespersonid_value;
        private ChangedFields changedFields = new ChangedFields();

        Builder() {
            // prevent instantiation
        }

        public Builder quarter4_base(BigDecimal quarter4_base) {
            this.quarter4_base = quarter4_base;
            this.changedFields = changedFields.add("quarter4_base");
            return this;
        }

        public Builder _transactioncurrencyid_value(String _transactioncurrencyid_value) {
            this._transactioncurrencyid_value = _transactioncurrencyid_value;
            this.changedFields = changedFields.add("_transactioncurrencyid_value");
            return this;
        }

        public Builder userfiscalcalendarid(String userfiscalcalendarid) {
            this.userfiscalcalendarid = userfiscalcalendarid;
            this.changedFields = changedFields.add("userfiscalcalendarid");
            return this;
        }

        public Builder modifiedon(OffsetDateTime modifiedon) {
            this.modifiedon = modifiedon;
            this.changedFields = changedFields.add("modifiedon");
            return this;
        }

        public Builder timezoneruleversionnumber(Integer timezoneruleversionnumber) {
            this.timezoneruleversionnumber = timezoneruleversionnumber;
            this.changedFields = changedFields.add("timezoneruleversionnumber");
            return this;
        }

        public Builder _businessunitid_value(String _businessunitid_value) {
            this._businessunitid_value = _businessunitid_value;
            this.changedFields = changedFields.add("_businessunitid_value");
            return this;
        }

        public Builder fiscalperiodtype(Integer fiscalperiodtype) {
            this.fiscalperiodtype = fiscalperiodtype;
            this.changedFields = changedFields.add("fiscalperiodtype");
            return this;
        }

        public Builder _modifiedby_value(String _modifiedby_value) {
            this._modifiedby_value = _modifiedby_value;
            this.changedFields = changedFields.add("_modifiedby_value");
            return this;
        }

        public Builder createdon(OffsetDateTime createdon) {
            this.createdon = createdon;
            this.changedFields = changedFields.add("createdon");
            return this;
        }

        public Builder _createdby_value(String _createdby_value) {
            this._createdby_value = _createdby_value;
            this.changedFields = changedFields.add("_createdby_value");
            return this;
        }

        public Builder quarter3(BigDecimal quarter3) {
            this.quarter3 = quarter3;
            this.changedFields = changedFields.add("quarter3");
            return this;
        }

        public Builder quarter3_base(BigDecimal quarter3_base) {
            this.quarter3_base = quarter3_base;
            this.changedFields = changedFields.add("quarter3_base");
            return this;
        }

        public Builder exchangerate(BigDecimal exchangerate) {
            this.exchangerate = exchangerate;
            this.changedFields = changedFields.add("exchangerate");
            return this;
        }

        public Builder quarter1_base(BigDecimal quarter1_base) {
            this.quarter1_base = quarter1_base;
            this.changedFields = changedFields.add("quarter1_base");
            return this;
        }

        public Builder _createdonbehalfby_value(String _createdonbehalfby_value) {
            this._createdonbehalfby_value = _createdonbehalfby_value;
            this.changedFields = changedFields.add("_createdonbehalfby_value");
            return this;
        }

        public Builder effectiveon(OffsetDateTime effectiveon) {
            this.effectiveon = effectiveon;
            this.changedFields = changedFields.add("effectiveon");
            return this;
        }

        public Builder quarter2(BigDecimal quarter2) {
            this.quarter2 = quarter2;
            this.changedFields = changedFields.add("quarter2");
            return this;
        }

        public Builder quarter1(BigDecimal quarter1) {
            this.quarter1 = quarter1;
            this.changedFields = changedFields.add("quarter1");
            return this;
        }

        public Builder _modifiedonbehalfby_value(String _modifiedonbehalfby_value) {
            this._modifiedonbehalfby_value = _modifiedonbehalfby_value;
            this.changedFields = changedFields.add("_modifiedonbehalfby_value");
            return this;
        }

        public Builder utcconversiontimezonecode(Integer utcconversiontimezonecode) {
            this.utcconversiontimezonecode = utcconversiontimezonecode;
            this.changedFields = changedFields.add("utcconversiontimezonecode");
            return this;
        }

        public Builder quarter4(BigDecimal quarter4) {
            this.quarter4 = quarter4;
            this.changedFields = changedFields.add("quarter4");
            return this;
        }

        public Builder quarter2_base(BigDecimal quarter2_base) {
            this.quarter2_base = quarter2_base;
            this.changedFields = changedFields.add("quarter2_base");
            return this;
        }

        public Builder _salespersonid_value(String _salespersonid_value) {
            this._salespersonid_value = _salespersonid_value;
            this.changedFields = changedFields.add("_salespersonid_value");
            return this;
        }

        public Quarterlyfiscalcalendar build() {
            Quarterlyfiscalcalendar _x = new Quarterlyfiscalcalendar();
            _x.contextPath = null;
            _x.changedFields = changedFields;
            _x.unmappedFields = new UnmappedFields();
            _x.odataType = "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar";
            _x.quarter4_base = quarter4_base;
            _x._transactioncurrencyid_value = _transactioncurrencyid_value;
            _x.userfiscalcalendarid = userfiscalcalendarid;
            _x.modifiedon = modifiedon;
            _x.timezoneruleversionnumber = timezoneruleversionnumber;
            _x._businessunitid_value = _businessunitid_value;
            _x.fiscalperiodtype = fiscalperiodtype;
            _x._modifiedby_value = _modifiedby_value;
            _x.createdon = createdon;
            _x._createdby_value = _createdby_value;
            _x.quarter3 = quarter3;
            _x.quarter3_base = quarter3_base;
            _x.exchangerate = exchangerate;
            _x.quarter1_base = quarter1_base;
            _x._createdonbehalfby_value = _createdonbehalfby_value;
            _x.effectiveon = effectiveon;
            _x.quarter2 = quarter2;
            _x.quarter1 = quarter1;
            _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
            _x.utcconversiontimezonecode = utcconversiontimezonecode;
            _x.quarter4 = quarter4;
            _x.quarter2_base = quarter2_base;
            _x._salespersonid_value = _salespersonid_value;
            return _x;
        }
    }

    @Override
    @JsonIgnore
    public ChangedFields getChangedFields() {
        return changedFields;
    }

    @Override
    public void postInject(boolean addKeysToContextPath) {
        if (addKeysToContextPath && userfiscalcalendarid != null) {
            contextPath = contextPath.clearQueries().addKeys(new NameValue(userfiscalcalendarid.toString()));
        }
    }

    @Property(name="quarter4_base")
    @JsonIgnore
    public Optional getQuarter4_base() {
        return Optional.ofNullable(quarter4_base);
    }

    public Quarterlyfiscalcalendar withQuarter4_base(BigDecimal quarter4_base) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("quarter4_base");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.quarter4_base = quarter4_base;
        return _x;
    }

    @Property(name="_transactioncurrencyid_value")
    @JsonIgnore
    public Optional get_transactioncurrencyid_value() {
        return Optional.ofNullable(_transactioncurrencyid_value);
    }

    public Quarterlyfiscalcalendar with_transactioncurrencyid_value(String _transactioncurrencyid_value) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_transactioncurrencyid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x._transactioncurrencyid_value = _transactioncurrencyid_value;
        return _x;
    }

    @Property(name="userfiscalcalendarid")
    @JsonIgnore
    public Optional getUserfiscalcalendarid() {
        return Optional.ofNullable(userfiscalcalendarid);
    }

    public Quarterlyfiscalcalendar withUserfiscalcalendarid(String userfiscalcalendarid) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("userfiscalcalendarid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.userfiscalcalendarid = userfiscalcalendarid;
        return _x;
    }

    @Property(name="modifiedon")
    @JsonIgnore
    public Optional getModifiedon() {
        return Optional.ofNullable(modifiedon);
    }

    public Quarterlyfiscalcalendar withModifiedon(OffsetDateTime modifiedon) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("modifiedon");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.modifiedon = modifiedon;
        return _x;
    }

    @Property(name="timezoneruleversionnumber")
    @JsonIgnore
    public Optional getTimezoneruleversionnumber() {
        return Optional.ofNullable(timezoneruleversionnumber);
    }

    public Quarterlyfiscalcalendar withTimezoneruleversionnumber(Integer timezoneruleversionnumber) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("timezoneruleversionnumber");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.timezoneruleversionnumber = timezoneruleversionnumber;
        return _x;
    }

    @Property(name="_businessunitid_value")
    @JsonIgnore
    public Optional get_businessunitid_value() {
        return Optional.ofNullable(_businessunitid_value);
    }

    public Quarterlyfiscalcalendar with_businessunitid_value(String _businessunitid_value) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_businessunitid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x._businessunitid_value = _businessunitid_value;
        return _x;
    }

    @Property(name="fiscalperiodtype")
    @JsonIgnore
    public Optional getFiscalperiodtype() {
        return Optional.ofNullable(fiscalperiodtype);
    }

    public Quarterlyfiscalcalendar withFiscalperiodtype(Integer fiscalperiodtype) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("fiscalperiodtype");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.fiscalperiodtype = fiscalperiodtype;
        return _x;
    }

    @Property(name="_modifiedby_value")
    @JsonIgnore
    public Optional get_modifiedby_value() {
        return Optional.ofNullable(_modifiedby_value);
    }

    public Quarterlyfiscalcalendar with_modifiedby_value(String _modifiedby_value) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_modifiedby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x._modifiedby_value = _modifiedby_value;
        return _x;
    }

    @Property(name="createdon")
    @JsonIgnore
    public Optional getCreatedon() {
        return Optional.ofNullable(createdon);
    }

    public Quarterlyfiscalcalendar withCreatedon(OffsetDateTime createdon) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("createdon");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.createdon = createdon;
        return _x;
    }

    @Property(name="_createdby_value")
    @JsonIgnore
    public Optional get_createdby_value() {
        return Optional.ofNullable(_createdby_value);
    }

    public Quarterlyfiscalcalendar with_createdby_value(String _createdby_value) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_createdby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x._createdby_value = _createdby_value;
        return _x;
    }

    @Property(name="quarter3")
    @JsonIgnore
    public Optional getQuarter3() {
        return Optional.ofNullable(quarter3);
    }

    public Quarterlyfiscalcalendar withQuarter3(BigDecimal quarter3) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("quarter3");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.quarter3 = quarter3;
        return _x;
    }

    @Property(name="quarter3_base")
    @JsonIgnore
    public Optional getQuarter3_base() {
        return Optional.ofNullable(quarter3_base);
    }

    public Quarterlyfiscalcalendar withQuarter3_base(BigDecimal quarter3_base) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("quarter3_base");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.quarter3_base = quarter3_base;
        return _x;
    }

    @Property(name="exchangerate")
    @JsonIgnore
    public Optional getExchangerate() {
        return Optional.ofNullable(exchangerate);
    }

    public Quarterlyfiscalcalendar withExchangerate(BigDecimal exchangerate) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("exchangerate");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.exchangerate = exchangerate;
        return _x;
    }

    @Property(name="quarter1_base")
    @JsonIgnore
    public Optional getQuarter1_base() {
        return Optional.ofNullable(quarter1_base);
    }

    public Quarterlyfiscalcalendar withQuarter1_base(BigDecimal quarter1_base) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("quarter1_base");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.quarter1_base = quarter1_base;
        return _x;
    }

    @Property(name="_createdonbehalfby_value")
    @JsonIgnore
    public Optional get_createdonbehalfby_value() {
        return Optional.ofNullable(_createdonbehalfby_value);
    }

    public Quarterlyfiscalcalendar with_createdonbehalfby_value(String _createdonbehalfby_value) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_createdonbehalfby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x._createdonbehalfby_value = _createdonbehalfby_value;
        return _x;
    }

    @Property(name="effectiveon")
    @JsonIgnore
    public Optional getEffectiveon() {
        return Optional.ofNullable(effectiveon);
    }

    public Quarterlyfiscalcalendar withEffectiveon(OffsetDateTime effectiveon) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("effectiveon");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.effectiveon = effectiveon;
        return _x;
    }

    @Property(name="quarter2")
    @JsonIgnore
    public Optional getQuarter2() {
        return Optional.ofNullable(quarter2);
    }

    public Quarterlyfiscalcalendar withQuarter2(BigDecimal quarter2) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("quarter2");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.quarter2 = quarter2;
        return _x;
    }

    @Property(name="quarter1")
    @JsonIgnore
    public Optional getQuarter1() {
        return Optional.ofNullable(quarter1);
    }

    public Quarterlyfiscalcalendar withQuarter1(BigDecimal quarter1) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("quarter1");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.quarter1 = quarter1;
        return _x;
    }

    @Property(name="_modifiedonbehalfby_value")
    @JsonIgnore
    public Optional get_modifiedonbehalfby_value() {
        return Optional.ofNullable(_modifiedonbehalfby_value);
    }

    public Quarterlyfiscalcalendar with_modifiedonbehalfby_value(String _modifiedonbehalfby_value) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_modifiedonbehalfby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
        return _x;
    }

    @Property(name="utcconversiontimezonecode")
    @JsonIgnore
    public Optional getUtcconversiontimezonecode() {
        return Optional.ofNullable(utcconversiontimezonecode);
    }

    public Quarterlyfiscalcalendar withUtcconversiontimezonecode(Integer utcconversiontimezonecode) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("utcconversiontimezonecode");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.utcconversiontimezonecode = utcconversiontimezonecode;
        return _x;
    }

    @Property(name="quarter4")
    @JsonIgnore
    public Optional getQuarter4() {
        return Optional.ofNullable(quarter4);
    }

    public Quarterlyfiscalcalendar withQuarter4(BigDecimal quarter4) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("quarter4");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.quarter4 = quarter4;
        return _x;
    }

    @Property(name="quarter2_base")
    @JsonIgnore
    public Optional getQuarter2_base() {
        return Optional.ofNullable(quarter2_base);
    }

    public Quarterlyfiscalcalendar withQuarter2_base(BigDecimal quarter2_base) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("quarter2_base");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x.quarter2_base = quarter2_base;
        return _x;
    }

    @Property(name="_salespersonid_value")
    @JsonIgnore
    public Optional get_salespersonid_value() {
        return Optional.ofNullable(_salespersonid_value);
    }

    public Quarterlyfiscalcalendar with_salespersonid_value(String _salespersonid_value) {
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_salespersonid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.quarterlyfiscalcalendar");
        _x._salespersonid_value = _salespersonid_value;
        return _x;
    }

    @NavigationProperty(name="createdonbehalfby")
    @JsonIgnore
    public SystemuserRequest getCreatedonbehalfby() {
        return new SystemuserRequest(contextPath.addSegment("createdonbehalfby"));
    }

    @NavigationProperty(name="modifiedby")
    @JsonIgnore
    public SystemuserRequest getModifiedby() {
        return new SystemuserRequest(contextPath.addSegment("modifiedby"));
    }

    @NavigationProperty(name="transactioncurrencyid")
    @JsonIgnore
    public TransactioncurrencyRequest getTransactioncurrencyid() {
        return new TransactioncurrencyRequest(contextPath.addSegment("transactioncurrencyid"));
    }

    @NavigationProperty(name="QuarterlyFiscalCalendar_AsyncOperations")
    @JsonIgnore
    public AsyncoperationCollectionRequest getQuarterlyFiscalCalendar_AsyncOperations() {
        return new AsyncoperationCollectionRequest(
                        contextPath.addSegment("QuarterlyFiscalCalendar_AsyncOperations"));
    }

    @NavigationProperty(name="QuarterlyFiscalCalendar_BulkDeleteFailures")
    @JsonIgnore
    public BulkdeletefailureCollectionRequest getQuarterlyFiscalCalendar_BulkDeleteFailures() {
        return new BulkdeletefailureCollectionRequest(
                        contextPath.addSegment("QuarterlyFiscalCalendar_BulkDeleteFailures"));
    }

    @NavigationProperty(name="createdby")
    @JsonIgnore
    public SystemuserRequest getCreatedby() {
        return new SystemuserRequest(contextPath.addSegment("createdby"));
    }

    @NavigationProperty(name="modifiedonbehalfby")
    @JsonIgnore
    public SystemuserRequest getModifiedonbehalfby() {
        return new SystemuserRequest(contextPath.addSegment("modifiedonbehalfby"));
    }

    @NavigationProperty(name="salespersonid")
    @JsonIgnore
    public SystemuserRequest getSalespersonid() {
        return new SystemuserRequest(contextPath.addSegment("salespersonid"));
    }

    @JsonAnySetter
    private void setUnmappedField(String name, Object value) {
        if (unmappedFields == null) {
            unmappedFields = new UnmappedFields();
        }
        unmappedFields.put(name, value);
    }

    @Override
    @JsonIgnore
    public UnmappedFields getUnmappedFields() {
        return unmappedFields == null ? new UnmappedFields() : unmappedFields;
    }

    /**
     * Submits only changed fields for update and returns an 
     * immutable copy of {@code this} with changed fields reset.
     *
     * @return a copy of {@code this} with changed fields reset
     * @throws ClientException if HTTP response is not as expected
     */
    public Quarterlyfiscalcalendar patch() {
        RequestHelper.patch(this, contextPath, RequestOptions.EMPTY);
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = null;
        return _x;
    }

    /**
     * Submits all fields for update and returns an immutable copy of {@code this}
     * with changed fields reset (they were ignored anyway).
     *
     * @return a copy of {@code this} with changed fields reset
     * @throws ClientException if HTTP response is not as expected
     */
    public Quarterlyfiscalcalendar put() {
        RequestHelper.put(this, contextPath, RequestOptions.EMPTY);
        Quarterlyfiscalcalendar _x = _copy();
        _x.changedFields = null;
        return _x;
    }

    private Quarterlyfiscalcalendar _copy() {
        Quarterlyfiscalcalendar _x = new Quarterlyfiscalcalendar();
        _x.contextPath = contextPath;
        _x.changedFields = changedFields;
        _x.unmappedFields = unmappedFields;
        _x.odataType = odataType;
        _x.quarter4_base = quarter4_base;
        _x._transactioncurrencyid_value = _transactioncurrencyid_value;
        _x.userfiscalcalendarid = userfiscalcalendarid;
        _x.modifiedon = modifiedon;
        _x.timezoneruleversionnumber = timezoneruleversionnumber;
        _x._businessunitid_value = _businessunitid_value;
        _x.fiscalperiodtype = fiscalperiodtype;
        _x._modifiedby_value = _modifiedby_value;
        _x.createdon = createdon;
        _x._createdby_value = _createdby_value;
        _x.quarter3 = quarter3;
        _x.quarter3_base = quarter3_base;
        _x.exchangerate = exchangerate;
        _x.quarter1_base = quarter1_base;
        _x._createdonbehalfby_value = _createdonbehalfby_value;
        _x.effectiveon = effectiveon;
        _x.quarter2 = quarter2;
        _x.quarter1 = quarter1;
        _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
        _x.utcconversiontimezonecode = utcconversiontimezonecode;
        _x.quarter4 = quarter4;
        _x.quarter2_base = quarter2_base;
        _x._salespersonid_value = _salespersonid_value;
        return _x;
    }

    @Override
    public String toString() {
        StringBuilder b = new StringBuilder();
        b.append("Quarterlyfiscalcalendar[");
        b.append("quarter4_base=");
        b.append(this.quarter4_base);
        b.append(", ");
        b.append("_transactioncurrencyid_value=");
        b.append(this._transactioncurrencyid_value);
        b.append(", ");
        b.append("userfiscalcalendarid=");
        b.append(this.userfiscalcalendarid);
        b.append(", ");
        b.append("modifiedon=");
        b.append(this.modifiedon);
        b.append(", ");
        b.append("timezoneruleversionnumber=");
        b.append(this.timezoneruleversionnumber);
        b.append(", ");
        b.append("_businessunitid_value=");
        b.append(this._businessunitid_value);
        b.append(", ");
        b.append("fiscalperiodtype=");
        b.append(this.fiscalperiodtype);
        b.append(", ");
        b.append("_modifiedby_value=");
        b.append(this._modifiedby_value);
        b.append(", ");
        b.append("createdon=");
        b.append(this.createdon);
        b.append(", ");
        b.append("_createdby_value=");
        b.append(this._createdby_value);
        b.append(", ");
        b.append("quarter3=");
        b.append(this.quarter3);
        b.append(", ");
        b.append("quarter3_base=");
        b.append(this.quarter3_base);
        b.append(", ");
        b.append("exchangerate=");
        b.append(this.exchangerate);
        b.append(", ");
        b.append("quarter1_base=");
        b.append(this.quarter1_base);
        b.append(", ");
        b.append("_createdonbehalfby_value=");
        b.append(this._createdonbehalfby_value);
        b.append(", ");
        b.append("effectiveon=");
        b.append(this.effectiveon);
        b.append(", ");
        b.append("quarter2=");
        b.append(this.quarter2);
        b.append(", ");
        b.append("quarter1=");
        b.append(this.quarter1);
        b.append(", ");
        b.append("_modifiedonbehalfby_value=");
        b.append(this._modifiedonbehalfby_value);
        b.append(", ");
        b.append("utcconversiontimezonecode=");
        b.append(this.utcconversiontimezonecode);
        b.append(", ");
        b.append("quarter4=");
        b.append(this.quarter4);
        b.append(", ");
        b.append("quarter2_base=");
        b.append(this.quarter2_base);
        b.append(", ");
        b.append("_salespersonid_value=");
        b.append(this._salespersonid_value);
        b.append("]");
        b.append(",unmappedFields=");
        b.append(unmappedFields);
        b.append(",odataType=");
        b.append(odataType);
        return b.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy