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

microsoft.dynamics.crm.entity.Processsession 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.Checks;
import com.github.davidmoten.odata.client.internal.RequestHelper;
import com.github.davidmoten.odata.client.internal.UnmappedFields;

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

import microsoft.dynamics.crm.entity.collection.request.ConnectionCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.PostfollowCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.PostregardingCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.ProcesssessionCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SyncerrorCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.WorkflowlogCollectionRequest;
import microsoft.dynamics.crm.entity.request.AccountRequest;
import microsoft.dynamics.crm.entity.request.AnnotationRequest;
import microsoft.dynamics.crm.entity.request.ApplicationuserRequest;
import microsoft.dynamics.crm.entity.request.AppointmentRequest;
import microsoft.dynamics.crm.entity.request.BusinessunitRequest;
import microsoft.dynamics.crm.entity.request.BusinessunitnewsarticleRequest;
import microsoft.dynamics.crm.entity.request.CascadegrantrevokeaccessrecordstrackerRequest;
import microsoft.dynamics.crm.entity.request.CascadegrantrevokeaccessversiontrackerRequest;
import microsoft.dynamics.crm.entity.request.ConnectionRequest;
import microsoft.dynamics.crm.entity.request.ConnectionreferenceRequest;
import microsoft.dynamics.crm.entity.request.ConnectionroleRequest;
import microsoft.dynamics.crm.entity.request.ConnectorRequest;
import microsoft.dynamics.crm.entity.request.ContactRequest;
import microsoft.dynamics.crm.entity.request.CustomeraddressRequest;
import microsoft.dynamics.crm.entity.request.DatalakeworkspaceRequest;
import microsoft.dynamics.crm.entity.request.DatalakeworkspacepermissionRequest;
import microsoft.dynamics.crm.entity.request.EmailRequest;
import microsoft.dynamics.crm.entity.request.EnvironmentvariabledefinitionRequest;
import microsoft.dynamics.crm.entity.request.EnvironmentvariablevalueRequest;
import microsoft.dynamics.crm.entity.request.ExpiredprocessRequest;
import microsoft.dynamics.crm.entity.request.ExportsolutionuploadRequest;
import microsoft.dynamics.crm.entity.request.FaxRequest;
import microsoft.dynamics.crm.entity.request.Ggw_crewRequest;
import microsoft.dynamics.crm.entity.request.Ggw_eventRequest;
import microsoft.dynamics.crm.entity.request.Ggw_teamRequest;
import microsoft.dynamics.crm.entity.request.Ggw_team_applicationRequest;
import microsoft.dynamics.crm.entity.request.GoalRequest;
import microsoft.dynamics.crm.entity.request.GoalrollupqueryRequest;
import microsoft.dynamics.crm.entity.request.KbarticleRequest;
import microsoft.dynamics.crm.entity.request.KbarticlecommentRequest;
import microsoft.dynamics.crm.entity.request.KbarticletemplateRequest;
import microsoft.dynamics.crm.entity.request.KnowledgearticleRequest;
import microsoft.dynamics.crm.entity.request.KnowledgebaserecordRequest;
import microsoft.dynamics.crm.entity.request.LetterRequest;
import microsoft.dynamics.crm.entity.request.MailboxRequest;
import microsoft.dynamics.crm.entity.request.MailmergetemplateRequest;
import microsoft.dynamics.crm.entity.request.MetricRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aibdatasetRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aibdatasetfileRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aibdatasetrecordRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aibdatasetscontainerRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aibfileRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aibfileattacheddataRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aiconfigurationRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aifptrainingdocumentRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aimodelRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aiodimageRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aiodlabelRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aiodtrainingboundingboxRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aiodtrainingimageRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aitemplateRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_analysiscomponentRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_analysisjobRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_analysisresultRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_analysisresultdetailRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_dataflowRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_helppageRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_knowledgearticleimageRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_knowledgearticletemplateRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_richtextfileRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_serviceconfigurationRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_slakpiRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_solutionhealthruleRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_solutionhealthruleargumentRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_solutionhealthrulesetRequest;
import microsoft.dynamics.crm.entity.request.NewprocessRequest;
import microsoft.dynamics.crm.entity.request.PhonecallRequest;
import microsoft.dynamics.crm.entity.request.PositionRequest;
import microsoft.dynamics.crm.entity.request.PrincipalRequest;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.ProcessstageparameterRequest;
import microsoft.dynamics.crm.entity.request.QueueRequest;
import microsoft.dynamics.crm.entity.request.QueueitemRequest;
import microsoft.dynamics.crm.entity.request.RecurringappointmentmasterRequest;
import microsoft.dynamics.crm.entity.request.ReportRequest;
import microsoft.dynamics.crm.entity.request.RollupfieldRequest;
import microsoft.dynamics.crm.entity.request.ServiceplanRequest;
import microsoft.dynamics.crm.entity.request.SharepointdocumentlocationRequest;
import microsoft.dynamics.crm.entity.request.SharepointsiteRequest;
import microsoft.dynamics.crm.entity.request.SlaRequest;
import microsoft.dynamics.crm.entity.request.SocialactivityRequest;
import microsoft.dynamics.crm.entity.request.SocialprofileRequest;
import microsoft.dynamics.crm.entity.request.SolutioncomponentattributeconfigurationRequest;
import microsoft.dynamics.crm.entity.request.SolutioncomponentconfigurationRequest;
import microsoft.dynamics.crm.entity.request.SolutioncomponentrelationshipconfigurationRequest;
import microsoft.dynamics.crm.entity.request.StagesolutionuploadRequest;
import microsoft.dynamics.crm.entity.request.SubjectRequest;
import microsoft.dynamics.crm.entity.request.SystemuserRequest;
import microsoft.dynamics.crm.entity.request.TaskRequest;
import microsoft.dynamics.crm.entity.request.TeamRequest;
import microsoft.dynamics.crm.entity.request.TemplateRequest;
import microsoft.dynamics.crm.entity.request.TerritoryRequest;
import microsoft.dynamics.crm.entity.request.ThemeRequest;
import microsoft.dynamics.crm.entity.request.TransactioncurrencyRequest;
import microsoft.dynamics.crm.entity.request.TranslationprocessRequest;
import microsoft.dynamics.crm.entity.request.UsermappingRequest;
import microsoft.dynamics.crm.entity.request.WorkflowRequest;
import microsoft.dynamics.crm.entity.request.WorkflowbinaryRequest;

@JsonPropertyOrder({
    "@odata.type", 
    "completedon", 
    "statuscode", 
    "_executedby_value", 
    "processstate", 
    "processstate_binary", 
    "errorcode", 
    "_owningbusinessunit_value", 
    "_processid_value", 
    "modifiedon", 
    "_nextlinkedsessionid_value", 
    "name", 
    "_completedby_value", 
    "_originatingsessionid_value", 
    "_modifiedonbehalfby_value", 
    "_ownerid_value", 
    "_owninguser_value", 
    "_previouslinkedsessionid_value", 
    "_owningteam_value", 
    "inputarguments", 
    "_modifiedby_value", 
    "processstagename", 
    "_canceledby_value", 
    "comments", 
    "_createdby_value", 
    "canceledon", 
    "activityname", 
    "_createdonbehalfby_value", 
    "processsessionid", 
    "createdon", 
    "_startedby_value", 
    "stepname", 
    "_regardingobjectid_value", 
    "executedon", 
    "startedon", 
    "statecode"})
@JsonInclude(Include.NON_NULL)
public class Processsession extends Crmbaseentity implements ODataEntityType {

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

    @JsonProperty("completedon")
    protected OffsetDateTime completedon;

    @JsonProperty("statuscode")
    protected Integer statuscode;

    @JsonProperty("_executedby_value")
    protected String _executedby_value;

    @JsonProperty("processstate")
    protected String processstate;

    @JsonProperty("processstate_binary")
    protected byte[] processstate_binary;

    @JsonProperty("errorcode")
    protected Integer errorcode;

    @JsonProperty("_owningbusinessunit_value")
    protected String _owningbusinessunit_value;

    @JsonProperty("_processid_value")
    protected String _processid_value;

    @JsonProperty("modifiedon")
    protected OffsetDateTime modifiedon;

    @JsonProperty("_nextlinkedsessionid_value")
    protected String _nextlinkedsessionid_value;

    @JsonProperty("name")
    protected String name;

    @JsonProperty("_completedby_value")
    protected String _completedby_value;

    @JsonProperty("_originatingsessionid_value")
    protected String _originatingsessionid_value;

    @JsonProperty("_modifiedonbehalfby_value")
    protected String _modifiedonbehalfby_value;

    @JsonProperty("_ownerid_value")
    protected String _ownerid_value;

    @JsonProperty("_owninguser_value")
    protected String _owninguser_value;

    @JsonProperty("_previouslinkedsessionid_value")
    protected String _previouslinkedsessionid_value;

    @JsonProperty("_owningteam_value")
    protected String _owningteam_value;

    @JsonProperty("inputarguments")
    protected String inputarguments;

    @JsonProperty("_modifiedby_value")
    protected String _modifiedby_value;

    @JsonProperty("processstagename")
    protected String processstagename;

    @JsonProperty("_canceledby_value")
    protected String _canceledby_value;

    @JsonProperty("comments")
    protected String comments;

    @JsonProperty("_createdby_value")
    protected String _createdby_value;

    @JsonProperty("canceledon")
    protected OffsetDateTime canceledon;

    @JsonProperty("activityname")
    protected String activityname;

    @JsonProperty("_createdonbehalfby_value")
    protected String _createdonbehalfby_value;

    @JsonProperty("processsessionid")
    protected String processsessionid;

    @JsonProperty("createdon")
    protected OffsetDateTime createdon;

    @JsonProperty("_startedby_value")
    protected String _startedby_value;

    @JsonProperty("stepname")
    protected String stepname;

    @JsonProperty("_regardingobjectid_value")
    protected String _regardingobjectid_value;

    @JsonProperty("executedon")
    protected OffsetDateTime executedon;

    @JsonProperty("startedon")
    protected OffsetDateTime startedon;

    @JsonProperty("statecode")
    protected Integer statecode;

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

    public static final class Builder {
        private OffsetDateTime completedon;
        private Integer statuscode;
        private String _executedby_value;
        private String processstate;
        private byte[] processstate_binary;
        private Integer errorcode;
        private String _owningbusinessunit_value;
        private String _processid_value;
        private OffsetDateTime modifiedon;
        private String _nextlinkedsessionid_value;
        private String name;
        private String _completedby_value;
        private String _originatingsessionid_value;
        private String _modifiedonbehalfby_value;
        private String _ownerid_value;
        private String _owninguser_value;
        private String _previouslinkedsessionid_value;
        private String _owningteam_value;
        private String inputarguments;
        private String _modifiedby_value;
        private String processstagename;
        private String _canceledby_value;
        private String comments;
        private String _createdby_value;
        private OffsetDateTime canceledon;
        private String activityname;
        private String _createdonbehalfby_value;
        private String processsessionid;
        private OffsetDateTime createdon;
        private String _startedby_value;
        private String stepname;
        private String _regardingobjectid_value;
        private OffsetDateTime executedon;
        private OffsetDateTime startedon;
        private Integer statecode;
        private ChangedFields changedFields = new ChangedFields();

        Builder() {
            // prevent instantiation
        }

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

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

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

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

        public Builder processstate_binary(byte[] processstate_binary) {
            this.processstate_binary = processstate_binary;
            this.changedFields = changedFields.add("processstate_binary");
            return this;
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public Processsession build() {
            Processsession _x = new Processsession();
            _x.contextPath = null;
            _x.changedFields = changedFields;
            _x.unmappedFields = new UnmappedFields();
            _x.odataType = "Microsoft.Dynamics.CRM.processsession";
            _x.completedon = completedon;
            _x.statuscode = statuscode;
            _x._executedby_value = _executedby_value;
            _x.processstate = processstate;
            _x.processstate_binary = processstate_binary;
            _x.errorcode = errorcode;
            _x._owningbusinessunit_value = _owningbusinessunit_value;
            _x._processid_value = _processid_value;
            _x.modifiedon = modifiedon;
            _x._nextlinkedsessionid_value = _nextlinkedsessionid_value;
            _x.name = name;
            _x._completedby_value = _completedby_value;
            _x._originatingsessionid_value = _originatingsessionid_value;
            _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
            _x._ownerid_value = _ownerid_value;
            _x._owninguser_value = _owninguser_value;
            _x._previouslinkedsessionid_value = _previouslinkedsessionid_value;
            _x._owningteam_value = _owningteam_value;
            _x.inputarguments = inputarguments;
            _x._modifiedby_value = _modifiedby_value;
            _x.processstagename = processstagename;
            _x._canceledby_value = _canceledby_value;
            _x.comments = comments;
            _x._createdby_value = _createdby_value;
            _x.canceledon = canceledon;
            _x.activityname = activityname;
            _x._createdonbehalfby_value = _createdonbehalfby_value;
            _x.processsessionid = processsessionid;
            _x.createdon = createdon;
            _x._startedby_value = _startedby_value;
            _x.stepname = stepname;
            _x._regardingobjectid_value = _regardingobjectid_value;
            _x.executedon = executedon;
            _x.startedon = startedon;
            _x.statecode = statecode;
            return _x;
        }
    }

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

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

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

    public Processsession withCompletedon(OffsetDateTime completedon) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("completedon");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.completedon = completedon;
        return _x;
    }

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

    public Processsession withStatuscode(Integer statuscode) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("statuscode");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.statuscode = statuscode;
        return _x;
    }

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

    public Processsession with_executedby_value(String _executedby_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_executedby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._executedby_value = _executedby_value;
        return _x;
    }

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

    public Processsession withProcessstate(String processstate) {
        Checks.checkIsAscii(processstate);
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("processstate");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.processstate = processstate;
        return _x;
    }

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

    public Processsession withProcessstate_binary(byte[] processstate_binary) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("processstate_binary");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.processstate_binary = processstate_binary;
        return _x;
    }

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

    public Processsession withErrorcode(Integer errorcode) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("errorcode");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.errorcode = errorcode;
        return _x;
    }

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

    public Processsession with_owningbusinessunit_value(String _owningbusinessunit_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_owningbusinessunit_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._owningbusinessunit_value = _owningbusinessunit_value;
        return _x;
    }

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

    public Processsession with_processid_value(String _processid_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_processid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._processid_value = _processid_value;
        return _x;
    }

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

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

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

    public Processsession with_nextlinkedsessionid_value(String _nextlinkedsessionid_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_nextlinkedsessionid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._nextlinkedsessionid_value = _nextlinkedsessionid_value;
        return _x;
    }

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

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

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

    public Processsession with_completedby_value(String _completedby_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_completedby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._completedby_value = _completedby_value;
        return _x;
    }

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

    public Processsession with_originatingsessionid_value(String _originatingsessionid_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_originatingsessionid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._originatingsessionid_value = _originatingsessionid_value;
        return _x;
    }

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

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

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

    public Processsession with_ownerid_value(String _ownerid_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_ownerid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._ownerid_value = _ownerid_value;
        return _x;
    }

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

    public Processsession with_owninguser_value(String _owninguser_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_owninguser_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._owninguser_value = _owninguser_value;
        return _x;
    }

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

    public Processsession with_previouslinkedsessionid_value(String _previouslinkedsessionid_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_previouslinkedsessionid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._previouslinkedsessionid_value = _previouslinkedsessionid_value;
        return _x;
    }

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

    public Processsession with_owningteam_value(String _owningteam_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_owningteam_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._owningteam_value = _owningteam_value;
        return _x;
    }

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

    public Processsession withInputarguments(String inputarguments) {
        Checks.checkIsAscii(inputarguments);
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("inputarguments");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.inputarguments = inputarguments;
        return _x;
    }

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

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

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

    public Processsession withProcessstagename(String processstagename) {
        Checks.checkIsAscii(processstagename);
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("processstagename");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.processstagename = processstagename;
        return _x;
    }

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

    public Processsession with_canceledby_value(String _canceledby_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_canceledby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._canceledby_value = _canceledby_value;
        return _x;
    }

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

    public Processsession withComments(String comments) {
        Checks.checkIsAscii(comments);
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("comments");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.comments = comments;
        return _x;
    }

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

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

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

    public Processsession withCanceledon(OffsetDateTime canceledon) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("canceledon");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.canceledon = canceledon;
        return _x;
    }

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

    public Processsession withActivityname(String activityname) {
        Checks.checkIsAscii(activityname);
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("activityname");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.activityname = activityname;
        return _x;
    }

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

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

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

    public Processsession withProcesssessionid(String processsessionid) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("processsessionid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.processsessionid = processsessionid;
        return _x;
    }

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

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

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

    public Processsession with_startedby_value(String _startedby_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_startedby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._startedby_value = _startedby_value;
        return _x;
    }

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

    public Processsession withStepname(String stepname) {
        Checks.checkIsAscii(stepname);
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("stepname");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.stepname = stepname;
        return _x;
    }

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

    public Processsession with_regardingobjectid_value(String _regardingobjectid_value) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("_regardingobjectid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x._regardingobjectid_value = _regardingobjectid_value;
        return _x;
    }

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

    public Processsession withExecutedon(OffsetDateTime executedon) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("executedon");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.executedon = executedon;
        return _x;
    }

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

    public Processsession withStartedon(OffsetDateTime startedon) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("startedon");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.startedon = startedon;
        return _x;
    }

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

    public Processsession withStatecode(Integer statecode) {
        Processsession _x = _copy();
        _x.changedFields = changedFields.add("statecode");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.processsession");
        _x.statecode = statecode;
        return _x;
    }

    @NavigationProperty(name="regardingobjectid_theme")
    @JsonIgnore
    public ThemeRequest getRegardingobjectid_theme() {
        return new ThemeRequest(contextPath.addSegment("regardingobjectid_theme"));
    }

    @NavigationProperty(name="regardingobjectid_usermapping")
    @JsonIgnore
    public UsermappingRequest getRegardingobjectid_usermapping() {
        return new UsermappingRequest(contextPath.addSegment("regardingobjectid_usermapping"));
    }

    @NavigationProperty(name="regardingobjectid_knowledgearticle")
    @JsonIgnore
    public KnowledgearticleRequest getRegardingobjectid_knowledgearticle() {
        return new KnowledgearticleRequest(contextPath.addSegment("regardingobjectid_knowledgearticle"));
    }

    @NavigationProperty(name="regardingobjectid_position")
    @JsonIgnore
    public PositionRequest getRegardingobjectid_position() {
        return new PositionRequest(contextPath.addSegment("regardingobjectid_position"));
    }

    @NavigationProperty(name="regardingobjectid_knowledgebaserecord")
    @JsonIgnore
    public KnowledgebaserecordRequest getRegardingobjectid_knowledgebaserecord() {
        return new KnowledgebaserecordRequest(contextPath.addSegment("regardingobjectid_knowledgebaserecord"));
    }

    @NavigationProperty(name="regardingobjectid_queue")
    @JsonIgnore
    public QueueRequest getRegardingobjectid_queue() {
        return new QueueRequest(contextPath.addSegment("regardingobjectid_queue"));
    }

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

    @NavigationProperty(name="regardingobjectid_contact")
    @JsonIgnore
    public ContactRequest getRegardingobjectid_contact() {
        return new ContactRequest(contextPath.addSegment("regardingobjectid_contact"));
    }

    @NavigationProperty(name="lk_workflowlog_processsession")
    @JsonIgnore
    public WorkflowlogCollectionRequest getLk_workflowlog_processsession() {
        return new WorkflowlogCollectionRequest(
                        contextPath.addSegment("lk_workflowlog_processsession"));
    }

    @NavigationProperty(name="lk_workflowlog_processsession_childworkflow")
    @JsonIgnore
    public WorkflowlogCollectionRequest getLk_workflowlog_processsession_childworkflow() {
        return new WorkflowlogCollectionRequest(
                        contextPath.addSegment("lk_workflowlog_processsession_childworkflow"));
    }

    @NavigationProperty(name="regardingobjectid_kbarticletemplate")
    @JsonIgnore
    public KbarticletemplateRequest getRegardingobjectid_kbarticletemplate() {
        return new KbarticletemplateRequest(contextPath.addSegment("regardingobjectid_kbarticletemplate"));
    }

    @NavigationProperty(name="regardingobjectid_queueitem")
    @JsonIgnore
    public QueueitemRequest getRegardingobjectid_queueitem() {
        return new QueueitemRequest(contextPath.addSegment("regardingobjectid_queueitem"));
    }

    @NavigationProperty(name="regardingobjectid_expiredprocess")
    @JsonIgnore
    public ExpiredprocessRequest getRegardingobjectid_expiredprocess() {
        return new ExpiredprocessRequest(contextPath.addSegment("regardingobjectid_expiredprocess"));
    }

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

    @NavigationProperty(name="regardingobjectid_report")
    @JsonIgnore
    public ReportRequest getRegardingobjectid_report() {
        return new ReportRequest(contextPath.addSegment("regardingobjectid_report"));
    }

    @NavigationProperty(name="previouslinkedsessionid")
    @JsonIgnore
    public ProcesssessionRequest getPreviouslinkedsessionid() {
        return new ProcesssessionRequest(contextPath.addSegment("previouslinkedsessionid"));
    }

    @NavigationProperty(name="lk_processsession_previouslinkedsessionid")
    @JsonIgnore
    public ProcesssessionCollectionRequest getLk_processsession_previouslinkedsessionid() {
        return new ProcesssessionCollectionRequest(
                        contextPath.addSegment("lk_processsession_previouslinkedsessionid"));
    }

    @NavigationProperty(name="nextlinkedsessionid")
    @JsonIgnore
    public ProcesssessionRequest getNextlinkedsessionid() {
        return new ProcesssessionRequest(contextPath.addSegment("nextlinkedsessionid"));
    }

    @NavigationProperty(name="lk_processsession_nextlinkedsessionid")
    @JsonIgnore
    public ProcesssessionCollectionRequest getLk_processsession_nextlinkedsessionid() {
        return new ProcesssessionCollectionRequest(
                        contextPath.addSegment("lk_processsession_nextlinkedsessionid"));
    }

    @NavigationProperty(name="originatingsessionid")
    @JsonIgnore
    public ProcesssessionRequest getOriginatingsessionid() {
        return new ProcesssessionRequest(contextPath.addSegment("originatingsessionid"));
    }

    @NavigationProperty(name="lk_processsession_originatingsessionid")
    @JsonIgnore
    public ProcesssessionCollectionRequest getLk_processsession_originatingsessionid() {
        return new ProcesssessionCollectionRequest(
                        contextPath.addSegment("lk_processsession_originatingsessionid"));
    }

    @NavigationProperty(name="regardingobjectid_account")
    @JsonIgnore
    public AccountRequest getRegardingobjectid_account() {
        return new AccountRequest(contextPath.addSegment("regardingobjectid_account"));
    }

    @NavigationProperty(name="regardingobjectid_letter")
    @JsonIgnore
    public LetterRequest getRegardingobjectid_letter() {
        return new LetterRequest(contextPath.addSegment("regardingobjectid_letter"));
    }

    @NavigationProperty(name="owningteam")
    @JsonIgnore
    public TeamRequest getOwningteam() {
        return new TeamRequest(contextPath.addSegment("owningteam"));
    }

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

    @NavigationProperty(name="regardingobjectid_sharepointsite")
    @JsonIgnore
    public SharepointsiteRequest getRegardingobjectid_sharepointsite() {
        return new SharepointsiteRequest(contextPath.addSegment("regardingobjectid_sharepointsite"));
    }

    @NavigationProperty(name="regardingobjectid_subject")
    @JsonIgnore
    public SubjectRequest getRegardingobjectid_subject() {
        return new SubjectRequest(contextPath.addSegment("regardingobjectid_subject"));
    }

    @NavigationProperty(name="regardingobjectid_rollupfield")
    @JsonIgnore
    public RollupfieldRequest getRegardingobjectid_rollupfield() {
        return new RollupfieldRequest(contextPath.addSegment("regardingobjectid_rollupfield"));
    }

    @NavigationProperty(name="ProcessSession_SyncErrors")
    @JsonIgnore
    public SyncerrorCollectionRequest getProcessSession_SyncErrors() {
        return new SyncerrorCollectionRequest(
                        contextPath.addSegment("ProcessSession_SyncErrors"));
    }

    @NavigationProperty(name="regardingobjectid_socialactivity")
    @JsonIgnore
    public SocialactivityRequest getRegardingobjectid_socialactivity() {
        return new SocialactivityRequest(contextPath.addSegment("regardingobjectid_socialactivity"));
    }

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

    @NavigationProperty(name="regardingobjectid_connectionrole")
    @JsonIgnore
    public ConnectionroleRequest getRegardingobjectid_connectionrole() {
        return new ConnectionroleRequest(contextPath.addSegment("regardingobjectid_connectionrole"));
    }

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

    @NavigationProperty(name="regardingobjectid_sla")
    @JsonIgnore
    public SlaRequest getRegardingobjectid_sla() {
        return new SlaRequest(contextPath.addSegment("regardingobjectid_sla"));
    }

    @NavigationProperty(name="regardingobjectid_customeraddress")
    @JsonIgnore
    public CustomeraddressRequest getRegardingobjectid_customeraddress() {
        return new CustomeraddressRequest(contextPath.addSegment("regardingobjectid_customeraddress"));
    }

    @NavigationProperty(name="regardingobjectid_kbarticle")
    @JsonIgnore
    public KbarticleRequest getRegardingobjectid_kbarticle() {
        return new KbarticleRequest(contextPath.addSegment("regardingobjectid_kbarticle"));
    }

    @NavigationProperty(name="regardingobjectid_newprocess")
    @JsonIgnore
    public NewprocessRequest getRegardingobjectid_newprocess() {
        return new NewprocessRequest(contextPath.addSegment("regardingobjectid_newprocess"));
    }

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

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

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

    @NavigationProperty(name="processsession_connections1")
    @JsonIgnore
    public ConnectionCollectionRequest getProcesssession_connections1() {
        return new ConnectionCollectionRequest(
                        contextPath.addSegment("processsession_connections1"));
    }

    @NavigationProperty(name="regardingobjectid_mailmergetemplate")
    @JsonIgnore
    public MailmergetemplateRequest getRegardingobjectid_mailmergetemplate() {
        return new MailmergetemplateRequest(contextPath.addSegment("regardingobjectid_mailmergetemplate"));
    }

    @NavigationProperty(name="regardingobjectid_connection")
    @JsonIgnore
    public ConnectionRequest getRegardingobjectid_connection() {
        return new ConnectionRequest(contextPath.addSegment("regardingobjectid_connection"));
    }

    @NavigationProperty(name="regardingobjectid_metric")
    @JsonIgnore
    public MetricRequest getRegardingobjectid_metric() {
        return new MetricRequest(contextPath.addSegment("regardingobjectid_metric"));
    }

    @NavigationProperty(name="regardingobjectid_phonecall")
    @JsonIgnore
    public PhonecallRequest getRegardingobjectid_phonecall() {
        return new PhonecallRequest(contextPath.addSegment("regardingobjectid_phonecall"));
    }

    @NavigationProperty(name="regardingobjectid_template")
    @JsonIgnore
    public TemplateRequest getRegardingobjectid_template() {
        return new TemplateRequest(contextPath.addSegment("regardingobjectid_template"));
    }

    @NavigationProperty(name="processid")
    @JsonIgnore
    public WorkflowRequest getProcessid() {
        return new WorkflowRequest(contextPath.addSegment("processid"));
    }

    @NavigationProperty(name="ownerid")
    @JsonIgnore
    public PrincipalRequest getOwnerid() {
        return new PrincipalRequest(contextPath.addSegment("ownerid"));
    }

    @NavigationProperty(name="regardingobjectid_email")
    @JsonIgnore
    public EmailRequest getRegardingobjectid_email() {
        return new EmailRequest(contextPath.addSegment("regardingobjectid_email"));
    }

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

    @NavigationProperty(name="regardingobjectid_fax")
    @JsonIgnore
    public FaxRequest getRegardingobjectid_fax() {
        return new FaxRequest(contextPath.addSegment("regardingobjectid_fax"));
    }

    @NavigationProperty(name="regardingobjectid_task")
    @JsonIgnore
    public TaskRequest getRegardingobjectid_task() {
        return new TaskRequest(contextPath.addSegment("regardingobjectid_task"));
    }

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

    @NavigationProperty(name="processsession_PostFollows")
    @JsonIgnore
    public PostfollowCollectionRequest getProcesssession_PostFollows() {
        return new PostfollowCollectionRequest(
                        contextPath.addSegment("processsession_PostFollows"));
    }

    @NavigationProperty(name="regardingobjectid_team")
    @JsonIgnore
    public TeamRequest getRegardingobjectid_team() {
        return new TeamRequest(contextPath.addSegment("regardingobjectid_team"));
    }

    @NavigationProperty(name="regardingobjectid_annotation")
    @JsonIgnore
    public AnnotationRequest getRegardingobjectid_annotation() {
        return new AnnotationRequest(contextPath.addSegment("regardingobjectid_annotation"));
    }

    @NavigationProperty(name="regardingobjectid_appointment")
    @JsonIgnore
    public AppointmentRequest getRegardingobjectid_appointment() {
        return new AppointmentRequest(contextPath.addSegment("regardingobjectid_appointment"));
    }

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

    @NavigationProperty(name="processsession_connections2")
    @JsonIgnore
    public ConnectionCollectionRequest getProcesssession_connections2() {
        return new ConnectionCollectionRequest(
                        contextPath.addSegment("processsession_connections2"));
    }

    @NavigationProperty(name="regardingobjectid_businessunitnewsarticle")
    @JsonIgnore
    public BusinessunitnewsarticleRequest getRegardingobjectid_businessunitnewsarticle() {
        return new BusinessunitnewsarticleRequest(contextPath.addSegment("regardingobjectid_businessunitnewsarticle"));
    }

    @NavigationProperty(name="regardingobjectid_kbarticlecomment")
    @JsonIgnore
    public KbarticlecommentRequest getRegardingobjectid_kbarticlecomment() {
        return new KbarticlecommentRequest(contextPath.addSegment("regardingobjectid_kbarticlecomment"));
    }

    @NavigationProperty(name="regardingobjectid_socialprofile")
    @JsonIgnore
    public SocialprofileRequest getRegardingobjectid_socialprofile() {
        return new SocialprofileRequest(contextPath.addSegment("regardingobjectid_socialprofile"));
    }

    @NavigationProperty(name="regardingobjectid_sharepointdocumentlocation")
    @JsonIgnore
    public SharepointdocumentlocationRequest getRegardingobjectid_sharepointdocumentlocation() {
        return new SharepointdocumentlocationRequest(contextPath.addSegment("regardingobjectid_sharepointdocumentlocation"));
    }

    @NavigationProperty(name="regardingobjectid_goalrollupquery")
    @JsonIgnore
    public GoalrollupqueryRequest getRegardingobjectid_goalrollupquery() {
        return new GoalrollupqueryRequest(contextPath.addSegment("regardingobjectid_goalrollupquery"));
    }

    @NavigationProperty(name="processsession_PostRegardings")
    @JsonIgnore
    public PostregardingCollectionRequest getProcesssession_PostRegardings() {
        return new PostregardingCollectionRequest(
                        contextPath.addSegment("processsession_PostRegardings"));
    }

    @NavigationProperty(name="regardingobjectid_goal")
    @JsonIgnore
    public GoalRequest getRegardingobjectid_goal() {
        return new GoalRequest(contextPath.addSegment("regardingobjectid_goal"));
    }

    @NavigationProperty(name="regardingobjectid_translationprocess")
    @JsonIgnore
    public TranslationprocessRequest getRegardingobjectid_translationprocess() {
        return new TranslationprocessRequest(contextPath.addSegment("regardingobjectid_translationprocess"));
    }

    @NavigationProperty(name="regardingobjectid_mailbox")
    @JsonIgnore
    public MailboxRequest getRegardingobjectid_mailbox() {
        return new MailboxRequest(contextPath.addSegment("regardingobjectid_mailbox"));
    }

    @NavigationProperty(name="regardingobjectid_recurringappointmentmaster")
    @JsonIgnore
    public RecurringappointmentmasterRequest getRegardingobjectid_recurringappointmentmaster() {
        return new RecurringappointmentmasterRequest(contextPath.addSegment("regardingobjectid_recurringappointmentmaster"));
    }

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

    @NavigationProperty(name="regardingobjectid_solutioncomponentattributeconfiguration")
    @JsonIgnore
    public SolutioncomponentattributeconfigurationRequest getRegardingobjectid_solutioncomponentattributeconfiguration() {
        return new SolutioncomponentattributeconfigurationRequest(contextPath.addSegment("regardingobjectid_solutioncomponentattributeconfiguration"));
    }

    @NavigationProperty(name="regardingobjectid_solutioncomponentconfiguration")
    @JsonIgnore
    public SolutioncomponentconfigurationRequest getRegardingobjectid_solutioncomponentconfiguration() {
        return new SolutioncomponentconfigurationRequest(contextPath.addSegment("regardingobjectid_solutioncomponentconfiguration"));
    }

    @NavigationProperty(name="regardingobjectid_solutioncomponentrelationshipconfiguration")
    @JsonIgnore
    public SolutioncomponentrelationshipconfigurationRequest getRegardingobjectid_solutioncomponentrelationshipconfiguration() {
        return new SolutioncomponentrelationshipconfigurationRequest(contextPath.addSegment("regardingobjectid_solutioncomponentrelationshipconfiguration"));
    }

    @NavigationProperty(name="regardingobjectid_stagesolutionupload")
    @JsonIgnore
    public StagesolutionuploadRequest getRegardingobjectid_stagesolutionupload() {
        return new StagesolutionuploadRequest(contextPath.addSegment("regardingobjectid_stagesolutionupload"));
    }

    @NavigationProperty(name="regardingobjectid_exportsolutionupload")
    @JsonIgnore
    public ExportsolutionuploadRequest getRegardingobjectid_exportsolutionupload() {
        return new ExportsolutionuploadRequest(contextPath.addSegment("regardingobjectid_exportsolutionupload"));
    }

    @NavigationProperty(name="regardingobjectid_datalakeworkspace")
    @JsonIgnore
    public DatalakeworkspaceRequest getRegardingobjectid_datalakeworkspace() {
        return new DatalakeworkspaceRequest(contextPath.addSegment("regardingobjectid_datalakeworkspace"));
    }

    @NavigationProperty(name="regardingobjectid_datalakeworkspacepermission")
    @JsonIgnore
    public DatalakeworkspacepermissionRequest getRegardingobjectid_datalakeworkspacepermission() {
        return new DatalakeworkspacepermissionRequest(contextPath.addSegment("regardingobjectid_datalakeworkspacepermission"));
    }

    @NavigationProperty(name="regardingobjectid_applicationuser")
    @JsonIgnore
    public ApplicationuserRequest getRegardingobjectid_applicationuser() {
        return new ApplicationuserRequest(contextPath.addSegment("regardingobjectid_applicationuser"));
    }

    @NavigationProperty(name="regardingobjectid_serviceplan")
    @JsonIgnore
    public ServiceplanRequest getRegardingobjectid_serviceplan() {
        return new ServiceplanRequest(contextPath.addSegment("regardingobjectid_serviceplan"));
    }

    @NavigationProperty(name="regardingobjectid_connector")
    @JsonIgnore
    public ConnectorRequest getRegardingobjectid_connector() {
        return new ConnectorRequest(contextPath.addSegment("regardingobjectid_connector"));
    }

    @NavigationProperty(name="regardingobjectid_environmentvariabledefinition")
    @JsonIgnore
    public EnvironmentvariabledefinitionRequest getRegardingobjectid_environmentvariabledefinition() {
        return new EnvironmentvariabledefinitionRequest(contextPath.addSegment("regardingobjectid_environmentvariabledefinition"));
    }

    @NavigationProperty(name="regardingobjectid_environmentvariablevalue")
    @JsonIgnore
    public EnvironmentvariablevalueRequest getRegardingobjectid_environmentvariablevalue() {
        return new EnvironmentvariablevalueRequest(contextPath.addSegment("regardingobjectid_environmentvariablevalue"));
    }

    @NavigationProperty(name="regardingobjectid_processstageparameter")
    @JsonIgnore
    public ProcessstageparameterRequest getRegardingobjectid_processstageparameter() {
        return new ProcessstageparameterRequest(contextPath.addSegment("regardingobjectid_processstageparameter"));
    }

    @NavigationProperty(name="regardingobjectid_workflowbinary")
    @JsonIgnore
    public WorkflowbinaryRequest getRegardingobjectid_workflowbinary() {
        return new WorkflowbinaryRequest(contextPath.addSegment("regardingobjectid_workflowbinary"));
    }

    @NavigationProperty(name="regardingobjectid_connectionreference")
    @JsonIgnore
    public ConnectionreferenceRequest getRegardingobjectid_connectionreference() {
        return new ConnectionreferenceRequest(contextPath.addSegment("regardingobjectid_connectionreference"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_helppage")
    @JsonIgnore
    public Msdyn_helppageRequest getRegardingobjectid_msdyn_helppage() {
        return new Msdyn_helppageRequest(contextPath.addSegment("regardingobjectid_msdyn_helppage"));
    }

    @NavigationProperty(name="regardingobjectid_territory")
    @JsonIgnore
    public TerritoryRequest getRegardingobjectid_territory() {
        return new TerritoryRequest(contextPath.addSegment("regardingobjectid_territory"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_serviceconfiguration")
    @JsonIgnore
    public Msdyn_serviceconfigurationRequest getRegardingobjectid_msdyn_serviceconfiguration() {
        return new Msdyn_serviceconfigurationRequest(contextPath.addSegment("regardingobjectid_msdyn_serviceconfiguration"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_slakpi")
    @JsonIgnore
    public Msdyn_slakpiRequest getRegardingobjectid_msdyn_slakpi() {
        return new Msdyn_slakpiRequest(contextPath.addSegment("regardingobjectid_msdyn_slakpi"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_knowledgearticleimage")
    @JsonIgnore
    public Msdyn_knowledgearticleimageRequest getRegardingobjectid_msdyn_knowledgearticleimage() {
        return new Msdyn_knowledgearticleimageRequest(contextPath.addSegment("regardingobjectid_msdyn_knowledgearticleimage"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_knowledgearticletemplate")
    @JsonIgnore
    public Msdyn_knowledgearticletemplateRequest getRegardingobjectid_msdyn_knowledgearticletemplate() {
        return new Msdyn_knowledgearticletemplateRequest(contextPath.addSegment("regardingobjectid_msdyn_knowledgearticletemplate"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_dataflow")
    @JsonIgnore
    public Msdyn_dataflowRequest getRegardingobjectid_msdyn_dataflow() {
        return new Msdyn_dataflowRequest(contextPath.addSegment("regardingobjectid_msdyn_dataflow"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_richtextfile")
    @JsonIgnore
    public Msdyn_richtextfileRequest getRegardingobjectid_msdyn_richtextfile() {
        return new Msdyn_richtextfileRequest(contextPath.addSegment("regardingobjectid_msdyn_richtextfile"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aiconfiguration")
    @JsonIgnore
    public Msdyn_aiconfigurationRequest getRegardingobjectid_msdyn_aiconfiguration() {
        return new Msdyn_aiconfigurationRequest(contextPath.addSegment("regardingobjectid_msdyn_aiconfiguration"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aimodel")
    @JsonIgnore
    public Msdyn_aimodelRequest getRegardingobjectid_msdyn_aimodel() {
        return new Msdyn_aimodelRequest(contextPath.addSegment("regardingobjectid_msdyn_aimodel"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aitemplate")
    @JsonIgnore
    public Msdyn_aitemplateRequest getRegardingobjectid_msdyn_aitemplate() {
        return new Msdyn_aitemplateRequest(contextPath.addSegment("regardingobjectid_msdyn_aitemplate"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aibdataset")
    @JsonIgnore
    public Msdyn_aibdatasetRequest getRegardingobjectid_msdyn_aibdataset() {
        return new Msdyn_aibdatasetRequest(contextPath.addSegment("regardingobjectid_msdyn_aibdataset"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aibdatasetfile")
    @JsonIgnore
    public Msdyn_aibdatasetfileRequest getRegardingobjectid_msdyn_aibdatasetfile() {
        return new Msdyn_aibdatasetfileRequest(contextPath.addSegment("regardingobjectid_msdyn_aibdatasetfile"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aibdatasetrecord")
    @JsonIgnore
    public Msdyn_aibdatasetrecordRequest getRegardingobjectid_msdyn_aibdatasetrecord() {
        return new Msdyn_aibdatasetrecordRequest(contextPath.addSegment("regardingobjectid_msdyn_aibdatasetrecord"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aibdatasetscontainer")
    @JsonIgnore
    public Msdyn_aibdatasetscontainerRequest getRegardingobjectid_msdyn_aibdatasetscontainer() {
        return new Msdyn_aibdatasetscontainerRequest(contextPath.addSegment("regardingobjectid_msdyn_aibdatasetscontainer"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aibfile")
    @JsonIgnore
    public Msdyn_aibfileRequest getRegardingobjectid_msdyn_aibfile() {
        return new Msdyn_aibfileRequest(contextPath.addSegment("regardingobjectid_msdyn_aibfile"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aibfileattacheddata")
    @JsonIgnore
    public Msdyn_aibfileattacheddataRequest getRegardingobjectid_msdyn_aibfileattacheddata() {
        return new Msdyn_aibfileattacheddataRequest(contextPath.addSegment("regardingobjectid_msdyn_aibfileattacheddata"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aifptrainingdocument")
    @JsonIgnore
    public Msdyn_aifptrainingdocumentRequest getRegardingobjectid_msdyn_aifptrainingdocument() {
        return new Msdyn_aifptrainingdocumentRequest(contextPath.addSegment("regardingobjectid_msdyn_aifptrainingdocument"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aiodimage")
    @JsonIgnore
    public Msdyn_aiodimageRequest getRegardingobjectid_msdyn_aiodimage() {
        return new Msdyn_aiodimageRequest(contextPath.addSegment("regardingobjectid_msdyn_aiodimage"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aiodlabel")
    @JsonIgnore
    public Msdyn_aiodlabelRequest getRegardingobjectid_msdyn_aiodlabel() {
        return new Msdyn_aiodlabelRequest(contextPath.addSegment("regardingobjectid_msdyn_aiodlabel"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aiodtrainingboundingbox")
    @JsonIgnore
    public Msdyn_aiodtrainingboundingboxRequest getRegardingobjectid_msdyn_aiodtrainingboundingbox() {
        return new Msdyn_aiodtrainingboundingboxRequest(contextPath.addSegment("regardingobjectid_msdyn_aiodtrainingboundingbox"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_aiodtrainingimage")
    @JsonIgnore
    public Msdyn_aiodtrainingimageRequest getRegardingobjectid_msdyn_aiodtrainingimage() {
        return new Msdyn_aiodtrainingimageRequest(contextPath.addSegment("regardingobjectid_msdyn_aiodtrainingimage"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_analysiscomponent")
    @JsonIgnore
    public Msdyn_analysiscomponentRequest getRegardingobjectid_msdyn_analysiscomponent() {
        return new Msdyn_analysiscomponentRequest(contextPath.addSegment("regardingobjectid_msdyn_analysiscomponent"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_analysisjob")
    @JsonIgnore
    public Msdyn_analysisjobRequest getRegardingobjectid_msdyn_analysisjob() {
        return new Msdyn_analysisjobRequest(contextPath.addSegment("regardingobjectid_msdyn_analysisjob"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_analysisresult")
    @JsonIgnore
    public Msdyn_analysisresultRequest getRegardingobjectid_msdyn_analysisresult() {
        return new Msdyn_analysisresultRequest(contextPath.addSegment("regardingobjectid_msdyn_analysisresult"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_analysisresultdetail")
    @JsonIgnore
    public Msdyn_analysisresultdetailRequest getRegardingobjectid_msdyn_analysisresultdetail() {
        return new Msdyn_analysisresultdetailRequest(contextPath.addSegment("regardingobjectid_msdyn_analysisresultdetail"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_solutionhealthrule")
    @JsonIgnore
    public Msdyn_solutionhealthruleRequest getRegardingobjectid_msdyn_solutionhealthrule() {
        return new Msdyn_solutionhealthruleRequest(contextPath.addSegment("regardingobjectid_msdyn_solutionhealthrule"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_solutionhealthruleargument")
    @JsonIgnore
    public Msdyn_solutionhealthruleargumentRequest getRegardingobjectid_msdyn_solutionhealthruleargument() {
        return new Msdyn_solutionhealthruleargumentRequest(contextPath.addSegment("regardingobjectid_msdyn_solutionhealthruleargument"));
    }

    @NavigationProperty(name="regardingobjectid_msdyn_solutionhealthruleset")
    @JsonIgnore
    public Msdyn_solutionhealthrulesetRequest getRegardingobjectid_msdyn_solutionhealthruleset() {
        return new Msdyn_solutionhealthrulesetRequest(contextPath.addSegment("regardingobjectid_msdyn_solutionhealthruleset"));
    }

    @NavigationProperty(name="regardingobjectid_ggw_event")
    @JsonIgnore
    public Ggw_eventRequest getRegardingobjectid_ggw_event() {
        return new Ggw_eventRequest(contextPath.addSegment("regardingobjectid_ggw_event"));
    }

    @NavigationProperty(name="regardingobjectid_ggw_team")
    @JsonIgnore
    public Ggw_teamRequest getRegardingobjectid_ggw_team() {
        return new Ggw_teamRequest(contextPath.addSegment("regardingobjectid_ggw_team"));
    }

    @NavigationProperty(name="regardingobjectid_ggw_crew")
    @JsonIgnore
    public Ggw_crewRequest getRegardingobjectid_ggw_crew() {
        return new Ggw_crewRequest(contextPath.addSegment("regardingobjectid_ggw_crew"));
    }

    @NavigationProperty(name="regardingobjectid_ggw_team_application")
    @JsonIgnore
    public Ggw_team_applicationRequest getRegardingobjectid_ggw_team_application() {
        return new Ggw_team_applicationRequest(contextPath.addSegment("regardingobjectid_ggw_team_application"));
    }

    @NavigationProperty(name="regardingobjectid_cascadegrantrevokeaccessrecordstracker")
    @JsonIgnore
    public CascadegrantrevokeaccessrecordstrackerRequest getRegardingobjectid_cascadegrantrevokeaccessrecordstracker() {
        return new CascadegrantrevokeaccessrecordstrackerRequest(contextPath.addSegment("regardingobjectid_cascadegrantrevokeaccessrecordstracker"));
    }

    @NavigationProperty(name="regardingobjectid_cascadegrantrevokeaccessversiontracker")
    @JsonIgnore
    public CascadegrantrevokeaccessversiontrackerRequest getRegardingobjectid_cascadegrantrevokeaccessversiontracker() {
        return new CascadegrantrevokeaccessversiontrackerRequest(contextPath.addSegment("regardingobjectid_cascadegrantrevokeaccessversiontracker"));
    }

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

    private Processsession _copy() {
        Processsession _x = new Processsession();
        _x.contextPath = contextPath;
        _x.changedFields = changedFields;
        _x.unmappedFields = unmappedFields;
        _x.odataType = odataType;
        _x.completedon = completedon;
        _x.statuscode = statuscode;
        _x._executedby_value = _executedby_value;
        _x.processstate = processstate;
        _x.processstate_binary = processstate_binary;
        _x.errorcode = errorcode;
        _x._owningbusinessunit_value = _owningbusinessunit_value;
        _x._processid_value = _processid_value;
        _x.modifiedon = modifiedon;
        _x._nextlinkedsessionid_value = _nextlinkedsessionid_value;
        _x.name = name;
        _x._completedby_value = _completedby_value;
        _x._originatingsessionid_value = _originatingsessionid_value;
        _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
        _x._ownerid_value = _ownerid_value;
        _x._owninguser_value = _owninguser_value;
        _x._previouslinkedsessionid_value = _previouslinkedsessionid_value;
        _x._owningteam_value = _owningteam_value;
        _x.inputarguments = inputarguments;
        _x._modifiedby_value = _modifiedby_value;
        _x.processstagename = processstagename;
        _x._canceledby_value = _canceledby_value;
        _x.comments = comments;
        _x._createdby_value = _createdby_value;
        _x.canceledon = canceledon;
        _x.activityname = activityname;
        _x._createdonbehalfby_value = _createdonbehalfby_value;
        _x.processsessionid = processsessionid;
        _x.createdon = createdon;
        _x._startedby_value = _startedby_value;
        _x.stepname = stepname;
        _x._regardingobjectid_value = _regardingobjectid_value;
        _x.executedon = executedon;
        _x.startedon = startedon;
        _x.statecode = statecode;
        return _x;
    }

    @Override
    public String toString() {
        StringBuilder b = new StringBuilder();
        b.append("Processsession[");
        b.append("completedon=");
        b.append(this.completedon);
        b.append(", ");
        b.append("statuscode=");
        b.append(this.statuscode);
        b.append(", ");
        b.append("_executedby_value=");
        b.append(this._executedby_value);
        b.append(", ");
        b.append("processstate=");
        b.append(this.processstate);
        b.append(", ");
        b.append("processstate_binary=");
        b.append(this.processstate_binary);
        b.append(", ");
        b.append("errorcode=");
        b.append(this.errorcode);
        b.append(", ");
        b.append("_owningbusinessunit_value=");
        b.append(this._owningbusinessunit_value);
        b.append(", ");
        b.append("_processid_value=");
        b.append(this._processid_value);
        b.append(", ");
        b.append("modifiedon=");
        b.append(this.modifiedon);
        b.append(", ");
        b.append("_nextlinkedsessionid_value=");
        b.append(this._nextlinkedsessionid_value);
        b.append(", ");
        b.append("name=");
        b.append(this.name);
        b.append(", ");
        b.append("_completedby_value=");
        b.append(this._completedby_value);
        b.append(", ");
        b.append("_originatingsessionid_value=");
        b.append(this._originatingsessionid_value);
        b.append(", ");
        b.append("_modifiedonbehalfby_value=");
        b.append(this._modifiedonbehalfby_value);
        b.append(", ");
        b.append("_ownerid_value=");
        b.append(this._ownerid_value);
        b.append(", ");
        b.append("_owninguser_value=");
        b.append(this._owninguser_value);
        b.append(", ");
        b.append("_previouslinkedsessionid_value=");
        b.append(this._previouslinkedsessionid_value);
        b.append(", ");
        b.append("_owningteam_value=");
        b.append(this._owningteam_value);
        b.append(", ");
        b.append("inputarguments=");
        b.append(this.inputarguments);
        b.append(", ");
        b.append("_modifiedby_value=");
        b.append(this._modifiedby_value);
        b.append(", ");
        b.append("processstagename=");
        b.append(this.processstagename);
        b.append(", ");
        b.append("_canceledby_value=");
        b.append(this._canceledby_value);
        b.append(", ");
        b.append("comments=");
        b.append(this.comments);
        b.append(", ");
        b.append("_createdby_value=");
        b.append(this._createdby_value);
        b.append(", ");
        b.append("canceledon=");
        b.append(this.canceledon);
        b.append(", ");
        b.append("activityname=");
        b.append(this.activityname);
        b.append(", ");
        b.append("_createdonbehalfby_value=");
        b.append(this._createdonbehalfby_value);
        b.append(", ");
        b.append("processsessionid=");
        b.append(this.processsessionid);
        b.append(", ");
        b.append("createdon=");
        b.append(this.createdon);
        b.append(", ");
        b.append("_startedby_value=");
        b.append(this._startedby_value);
        b.append(", ");
        b.append("stepname=");
        b.append(this.stepname);
        b.append(", ");
        b.append("_regardingobjectid_value=");
        b.append(this._regardingobjectid_value);
        b.append(", ");
        b.append("executedon=");
        b.append(this.executedon);
        b.append(", ");
        b.append("startedon=");
        b.append(this.startedon);
        b.append(", ");
        b.append("statecode=");
        b.append(this.statecode);
        b.append("]");
        b.append(",unmappedFields=");
        b.append(unmappedFields);
        b.append(",odataType=");
        b.append(odataType);
        return b.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy