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

microsoft.dynamics.crm.entity.Calendar 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.guavamini.Preconditions;
import com.github.davidmoten.odata.client.ClientException;
import com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped;
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.Function;
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.Checks;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.RequestHelper;
import com.github.davidmoten.odata.client.internal.TypedObject;
import com.github.davidmoten.odata.client.internal.UnmappedFields;

import java.time.OffsetDateTime;
import java.util.Map;
import java.util.Optional;

import microsoft.dynamics.crm.complex.ExpandCalendarResponse;
import microsoft.dynamics.crm.entity.collection.request.AnnotationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.AsyncoperationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BulkdeletefailureCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BusinessunitCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.CalendarCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.CalendarruleCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.OrganizationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SlaCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SlaitemCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SystemuserCollectionRequest;
import microsoft.dynamics.crm.entity.request.BusinessunitRequest;
import microsoft.dynamics.crm.entity.request.CalendarRequest;
import microsoft.dynamics.crm.entity.request.OrganizationRequest;
import microsoft.dynamics.crm.entity.request.SystemuserRequest;

@JsonPropertyOrder({
    "@odata.type", 
    "name", 
    "_modifiedonbehalfby_value", 
    "type", 
    "primaryuserid", 
    "_createdonbehalfby_value", 
    "_businessunitid_value", 
    "description", 
    "versionnumber", 
    "createdon", 
    "modifiedon", 
    "_holidayschedulecalendarid_value", 
    "calendarid", 
    "_createdby_value", 
    "isshared", 
    "_organizationid_value", 
    "_modifiedby_value"})
@JsonInclude(Include.NON_NULL)
public class Calendar extends Crmbaseentity implements ODataEntityType {

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

    @JsonProperty("name")
    protected String name;

    @JsonProperty("_modifiedonbehalfby_value")
    protected String _modifiedonbehalfby_value;

    @JsonProperty("type")
    protected Integer type;

    @JsonProperty("primaryuserid")
    protected String primaryuserid;

    @JsonProperty("_createdonbehalfby_value")
    protected String _createdonbehalfby_value;

    @JsonProperty("_businessunitid_value")
    protected String _businessunitid_value;

    @JsonProperty("description")
    protected String description;

    @JsonProperty("versionnumber")
    protected Long versionnumber;

    @JsonProperty("createdon")
    protected OffsetDateTime createdon;

    @JsonProperty("modifiedon")
    protected OffsetDateTime modifiedon;

    @JsonProperty("_holidayschedulecalendarid_value")
    protected String _holidayschedulecalendarid_value;

    @JsonProperty("calendarid")
    protected String calendarid;

    @JsonProperty("_createdby_value")
    protected String _createdby_value;

    @JsonProperty("isshared")
    protected Boolean isshared;

    @JsonProperty("_organizationid_value")
    protected String _organizationid_value;

    @JsonProperty("_modifiedby_value")
    protected String _modifiedby_value;

    protected Calendar() {
        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 builderCalendar() {
        return new Builder();
    }

    public static final class Builder {
        private String name;
        private String _modifiedonbehalfby_value;
        private Integer type;
        private String primaryuserid;
        private String _createdonbehalfby_value;
        private String _businessunitid_value;
        private String description;
        private Long versionnumber;
        private OffsetDateTime createdon;
        private OffsetDateTime modifiedon;
        private String _holidayschedulecalendarid_value;
        private String calendarid;
        private String _createdby_value;
        private Boolean isshared;
        private String _organizationid_value;
        private String _modifiedby_value;
        private ChangedFields changedFields = new ChangedFields();

        Builder() {
            // prevent instantiation
        }

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

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

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

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

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

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

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

        public Builder versionnumber(Long versionnumber) {
            this.versionnumber = versionnumber;
            this.changedFields = changedFields.add("versionnumber");
            return this;
        }

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

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

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

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

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

        public Builder isshared(Boolean isshared) {
            this.isshared = isshared;
            this.changedFields = changedFields.add("isshared");
            return this;
        }

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

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

        public Calendar build() {
            Calendar _x = new Calendar();
            _x.contextPath = null;
            _x.changedFields = changedFields;
            _x.unmappedFields = new UnmappedFields();
            _x.odataType = "Microsoft.Dynamics.CRM.calendar";
            _x.name = name;
            _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
            _x.type = type;
            _x.primaryuserid = primaryuserid;
            _x._createdonbehalfby_value = _createdonbehalfby_value;
            _x._businessunitid_value = _businessunitid_value;
            _x.description = description;
            _x.versionnumber = versionnumber;
            _x.createdon = createdon;
            _x.modifiedon = modifiedon;
            _x._holidayschedulecalendarid_value = _holidayschedulecalendarid_value;
            _x.calendarid = calendarid;
            _x._createdby_value = _createdby_value;
            _x.isshared = isshared;
            _x._organizationid_value = _organizationid_value;
            _x._modifiedby_value = _modifiedby_value;
            return _x;
        }
    }

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

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

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

    public Calendar withName(String name) {
        Checks.checkIsAscii(name);
        Calendar _x = _copy();
        _x.changedFields = changedFields.add("name");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.calendar");
        _x.name = name;
        return _x;
    }

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

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

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

    public Calendar withType(Integer type) {
        Calendar _x = _copy();
        _x.changedFields = changedFields.add("type");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.calendar");
        _x.type = type;
        return _x;
    }

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

    public Calendar withPrimaryuserid(String primaryuserid) {
        Calendar _x = _copy();
        _x.changedFields = changedFields.add("primaryuserid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.calendar");
        _x.primaryuserid = primaryuserid;
        return _x;
    }

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

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

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

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

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

    public Calendar withDescription(String description) {
        Checks.checkIsAscii(description);
        Calendar _x = _copy();
        _x.changedFields = changedFields.add("description");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.calendar");
        _x.description = description;
        return _x;
    }

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

    public Calendar withVersionnumber(Long versionnumber) {
        Calendar _x = _copy();
        _x.changedFields = changedFields.add("versionnumber");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.calendar");
        _x.versionnumber = versionnumber;
        return _x;
    }

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

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

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

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

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

    public Calendar with_holidayschedulecalendarid_value(String _holidayschedulecalendarid_value) {
        Calendar _x = _copy();
        _x.changedFields = changedFields.add("_holidayschedulecalendarid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.calendar");
        _x._holidayschedulecalendarid_value = _holidayschedulecalendarid_value;
        return _x;
    }

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

    public Calendar withCalendarid(String calendarid) {
        Calendar _x = _copy();
        _x.changedFields = changedFields.add("calendarid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.calendar");
        _x.calendarid = calendarid;
        return _x;
    }

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

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

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

    public Calendar withIsshared(Boolean isshared) {
        Calendar _x = _copy();
        _x.changedFields = changedFields.add("isshared");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.calendar");
        _x.isshared = isshared;
        return _x;
    }

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

    public Calendar with_organizationid_value(String _organizationid_value) {
        Calendar _x = _copy();
        _x.changedFields = changedFields.add("_organizationid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.calendar");
        _x._organizationid_value = _organizationid_value;
        return _x;
    }

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

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

    @NavigationProperty(name="calendar_calendar_rules")
    @JsonIgnore
    public CalendarruleCollectionRequest getCalendar_calendar_rules() {
        return new CalendarruleCollectionRequest(
                        contextPath.addSegment("calendar_calendar_rules"));
    }

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

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

    @NavigationProperty(name="slabase_businesshoursid")
    @JsonIgnore
    public SlaCollectionRequest getSlabase_businesshoursid() {
        return new SlaCollectionRequest(
                        contextPath.addSegment("slabase_businesshoursid"));
    }

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

    @NavigationProperty(name="calendar_organization")
    @JsonIgnore
    public OrganizationCollectionRequest getCalendar_organization() {
        return new OrganizationCollectionRequest(
                        contextPath.addSegment("calendar_organization"));
    }

    @NavigationProperty(name="businessunitid")
    @JsonIgnore
    public BusinessunitRequest getBusinessunitid() {
        return new BusinessunitRequest(contextPath.addSegment("businessunitid"));
    }

    @NavigationProperty(name="BusinessUnit_Calendar")
    @JsonIgnore
    public BusinessunitCollectionRequest getBusinessUnit_Calendar() {
        return new BusinessunitCollectionRequest(
                        contextPath.addSegment("BusinessUnit_Calendar"));
    }

    @NavigationProperty(name="Calendar_Annotation")
    @JsonIgnore
    public AnnotationCollectionRequest getCalendar_Annotation() {
        return new AnnotationCollectionRequest(
                        contextPath.addSegment("Calendar_Annotation"));
    }

    @NavigationProperty(name="holidayschedulecalendarid")
    @JsonIgnore
    public CalendarRequest getHolidayschedulecalendarid() {
        return new CalendarRequest(contextPath.addSegment("holidayschedulecalendarid"));
    }

    @NavigationProperty(name="calendar_customercalendar_holidaycalendar")
    @JsonIgnore
    public CalendarCollectionRequest getCalendar_customercalendar_holidaycalendar() {
        return new CalendarCollectionRequest(
                        contextPath.addSegment("calendar_customercalendar_holidaycalendar"));
    }

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

    @NavigationProperty(name="calendar_system_users")
    @JsonIgnore
    public SystemuserCollectionRequest getCalendar_system_users() {
        return new SystemuserCollectionRequest(
                        contextPath.addSegment("calendar_system_users"));
    }

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

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

    @NavigationProperty(name="inner_calendar_calendar_rules")
    @JsonIgnore
    public CalendarruleCollectionRequest getInner_calendar_calendar_rules() {
        return new CalendarruleCollectionRequest(
                        contextPath.addSegment("inner_calendar_calendar_rules"));
    }

    @NavigationProperty(name="organizationid")
    @JsonIgnore
    public OrganizationRequest getOrganizationid() {
        return new OrganizationRequest(contextPath.addSegment("organizationid"));
    }

    @NavigationProperty(name="calendar_slaitem")
    @JsonIgnore
    public SlaitemCollectionRequest getCalendar_slaitem() {
        return new SlaitemCollectionRequest(
                        contextPath.addSegment("calendar_slaitem"));
    }

    @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 Calendar patch() {
        RequestHelper.patch(this, contextPath, RequestOptions.EMPTY);
        Calendar _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 Calendar put() {
        RequestHelper.put(this, contextPath, RequestOptions.EMPTY);
        Calendar _x = _copy();
        _x.changedFields = null;
        return _x;
    }

    private Calendar _copy() {
        Calendar _x = new Calendar();
        _x.contextPath = contextPath;
        _x.changedFields = changedFields;
        _x.unmappedFields = unmappedFields;
        _x.odataType = odataType;
        _x.name = name;
        _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
        _x.type = type;
        _x.primaryuserid = primaryuserid;
        _x._createdonbehalfby_value = _createdonbehalfby_value;
        _x._businessunitid_value = _businessunitid_value;
        _x.description = description;
        _x.versionnumber = versionnumber;
        _x.createdon = createdon;
        _x.modifiedon = modifiedon;
        _x._holidayschedulecalendarid_value = _holidayschedulecalendarid_value;
        _x.calendarid = calendarid;
        _x._createdby_value = _createdby_value;
        _x.isshared = isshared;
        _x._organizationid_value = _organizationid_value;
        _x._modifiedby_value = _modifiedby_value;
        return _x;
    }

    @Function(name = "ExpandCalendar")
    @JsonIgnore
    public FunctionRequestReturningNonCollectionUnwrapped expandCalendar(OffsetDateTime start, OffsetDateTime end) {
        Preconditions.checkNotNull(start, "start cannot be null");
        Preconditions.checkNotNull(end, "end cannot be null");
        Map _parameters = ParameterMap
            .put("Start", "Edm.DateTimeOffset", start)
            .put("End", "Edm.DateTimeOffset", end)
            .build();
        return new FunctionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.ExpandCalendar"), ExpandCalendarResponse.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
    }

    @Override
    public String toString() {
        StringBuilder b = new StringBuilder();
        b.append("Calendar[");
        b.append("name=");
        b.append(this.name);
        b.append(", ");
        b.append("_modifiedonbehalfby_value=");
        b.append(this._modifiedonbehalfby_value);
        b.append(", ");
        b.append("type=");
        b.append(this.type);
        b.append(", ");
        b.append("primaryuserid=");
        b.append(this.primaryuserid);
        b.append(", ");
        b.append("_createdonbehalfby_value=");
        b.append(this._createdonbehalfby_value);
        b.append(", ");
        b.append("_businessunitid_value=");
        b.append(this._businessunitid_value);
        b.append(", ");
        b.append("description=");
        b.append(this.description);
        b.append(", ");
        b.append("versionnumber=");
        b.append(this.versionnumber);
        b.append(", ");
        b.append("createdon=");
        b.append(this.createdon);
        b.append(", ");
        b.append("modifiedon=");
        b.append(this.modifiedon);
        b.append(", ");
        b.append("_holidayschedulecalendarid_value=");
        b.append(this._holidayschedulecalendarid_value);
        b.append(", ");
        b.append("calendarid=");
        b.append(this.calendarid);
        b.append(", ");
        b.append("_createdby_value=");
        b.append(this._createdby_value);
        b.append(", ");
        b.append("isshared=");
        b.append(this.isshared);
        b.append(", ");
        b.append("_organizationid_value=");
        b.append(this._organizationid_value);
        b.append(", ");
        b.append("_modifiedby_value=");
        b.append(this._modifiedby_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