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

microsoft.dynamics.crm.entity.Msdyn_aibfile 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.AsyncoperationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BulkdeletefailureCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.DuplicaterecordCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.FileattachmentCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.MailboxtrackingfolderCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.Msdyn_aibdatasetfileCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.PrincipalobjectattributeaccessCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.ProcesssessionCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SyncerrorCollectionRequest;
import microsoft.dynamics.crm.entity.request.BusinessunitRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_aibdatasetscontainerRequest;
import microsoft.dynamics.crm.entity.request.PrincipalRequest;
import microsoft.dynamics.crm.entity.request.SystemuserRequest;
import microsoft.dynamics.crm.entity.request.TeamRequest;

@JsonPropertyOrder({
    "@odata.type", 
    "_owningteam_value", 
    "modifiedon", 
    "statecode", 
    "_owninguser_value", 
    "msdyn_aibfileid", 
    "msdyn_image_url", 
    "utcconversiontimezonecode", 
    "_modifiedby_value", 
    "_owningbusinessunit_value", 
    "msdyn_size", 
    "_modifiedonbehalfby_value", 
    "_msdyn_aibdatasetscontainerid_value", 
    "importsequencenumber", 
    "createdon", 
    "msdyn_name", 
    "msdyn_importmetadata", 
    "timezoneruleversionnumber", 
    "msdyn_file_name", 
    "_createdonbehalfby_value", 
    "_ownerid_value", 
    "_createdby_value", 
    "msdyn_mimetype", 
    "msdyn_checksum", 
    "overriddencreatedon", 
    "statuscode", 
    "versionnumber", 
    "msdyn_file", 
    "msdyn_imageid", 
    "msdyn_image_timestamp", 
    "msdyn_image"})
@JsonInclude(Include.NON_NULL)
public class Msdyn_aibfile extends Crmbaseentity implements ODataEntityType {

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

    @JsonProperty("_owningteam_value")
    protected String _owningteam_value;

    @JsonProperty("modifiedon")
    protected OffsetDateTime modifiedon;

    @JsonProperty("statecode")
    protected Integer statecode;

    @JsonProperty("_owninguser_value")
    protected String _owninguser_value;

    @JsonProperty("msdyn_aibfileid")
    protected String msdyn_aibfileid;

    @JsonProperty("msdyn_image_url")
    protected String msdyn_image_url;

    @JsonProperty("utcconversiontimezonecode")
    protected Integer utcconversiontimezonecode;

    @JsonProperty("_modifiedby_value")
    protected String _modifiedby_value;

    @JsonProperty("_owningbusinessunit_value")
    protected String _owningbusinessunit_value;

    @JsonProperty("msdyn_size")
    protected Integer msdyn_size;

    @JsonProperty("_modifiedonbehalfby_value")
    protected String _modifiedonbehalfby_value;

    @JsonProperty("_msdyn_aibdatasetscontainerid_value")
    protected String _msdyn_aibdatasetscontainerid_value;

    @JsonProperty("importsequencenumber")
    protected Integer importsequencenumber;

    @JsonProperty("createdon")
    protected OffsetDateTime createdon;

    @JsonProperty("msdyn_name")
    protected String msdyn_name;

    @JsonProperty("msdyn_importmetadata")
    protected String msdyn_importmetadata;

    @JsonProperty("timezoneruleversionnumber")
    protected Integer timezoneruleversionnumber;

    @JsonProperty("msdyn_file_name")
    protected String msdyn_file_name;

    @JsonProperty("_createdonbehalfby_value")
    protected String _createdonbehalfby_value;

    @JsonProperty("_ownerid_value")
    protected String _ownerid_value;

    @JsonProperty("_createdby_value")
    protected String _createdby_value;

    @JsonProperty("msdyn_mimetype")
    protected String msdyn_mimetype;

    @JsonProperty("msdyn_checksum")
    protected String msdyn_checksum;

    @JsonProperty("overriddencreatedon")
    protected OffsetDateTime overriddencreatedon;

    @JsonProperty("statuscode")
    protected Integer statuscode;

    @JsonProperty("versionnumber")
    protected Long versionnumber;

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

    @JsonProperty("msdyn_imageid")
    protected String msdyn_imageid;

    @JsonProperty("msdyn_image_timestamp")
    protected Long msdyn_image_timestamp;

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

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

    public static final class Builder {
        private String _owningteam_value;
        private OffsetDateTime modifiedon;
        private Integer statecode;
        private String _owninguser_value;
        private String msdyn_aibfileid;
        private String msdyn_image_url;
        private Integer utcconversiontimezonecode;
        private String _modifiedby_value;
        private String _owningbusinessunit_value;
        private Integer msdyn_size;
        private String _modifiedonbehalfby_value;
        private String _msdyn_aibdatasetscontainerid_value;
        private Integer importsequencenumber;
        private OffsetDateTime createdon;
        private String msdyn_name;
        private String msdyn_importmetadata;
        private Integer timezoneruleversionnumber;
        private String msdyn_file_name;
        private String _createdonbehalfby_value;
        private String _ownerid_value;
        private String _createdby_value;
        private String msdyn_mimetype;
        private String msdyn_checksum;
        private OffsetDateTime overriddencreatedon;
        private Integer statuscode;
        private Long versionnumber;
        private byte[] msdyn_file;
        private String msdyn_imageid;
        private Long msdyn_image_timestamp;
        private byte[] msdyn_image;
        private ChangedFields changedFields = new ChangedFields();

        Builder() {
            // prevent instantiation
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public Builder _createdonbehalfby_value(String _createdonbehalfby_value) {
            this._createdonbehalfby_value = _createdonbehalfby_value;
            this.changedFields = changedFields.add("_createdonbehalfby_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 _createdby_value(String _createdby_value) {
            this._createdby_value = _createdby_value;
            this.changedFields = changedFields.add("_createdby_value");
            return this;
        }

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

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

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

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

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

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

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

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

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

        public Msdyn_aibfile build() {
            Msdyn_aibfile _x = new Msdyn_aibfile();
            _x.contextPath = null;
            _x.changedFields = changedFields;
            _x.unmappedFields = new UnmappedFields();
            _x.odataType = "Microsoft.Dynamics.CRM.msdyn_aibfile";
            _x._owningteam_value = _owningteam_value;
            _x.modifiedon = modifiedon;
            _x.statecode = statecode;
            _x._owninguser_value = _owninguser_value;
            _x.msdyn_aibfileid = msdyn_aibfileid;
            _x.msdyn_image_url = msdyn_image_url;
            _x.utcconversiontimezonecode = utcconversiontimezonecode;
            _x._modifiedby_value = _modifiedby_value;
            _x._owningbusinessunit_value = _owningbusinessunit_value;
            _x.msdyn_size = msdyn_size;
            _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
            _x._msdyn_aibdatasetscontainerid_value = _msdyn_aibdatasetscontainerid_value;
            _x.importsequencenumber = importsequencenumber;
            _x.createdon = createdon;
            _x.msdyn_name = msdyn_name;
            _x.msdyn_importmetadata = msdyn_importmetadata;
            _x.timezoneruleversionnumber = timezoneruleversionnumber;
            _x.msdyn_file_name = msdyn_file_name;
            _x._createdonbehalfby_value = _createdonbehalfby_value;
            _x._ownerid_value = _ownerid_value;
            _x._createdby_value = _createdby_value;
            _x.msdyn_mimetype = msdyn_mimetype;
            _x.msdyn_checksum = msdyn_checksum;
            _x.overriddencreatedon = overriddencreatedon;
            _x.statuscode = statuscode;
            _x.versionnumber = versionnumber;
            _x.msdyn_file = msdyn_file;
            _x.msdyn_imageid = msdyn_imageid;
            _x.msdyn_image_timestamp = msdyn_image_timestamp;
            _x.msdyn_image = msdyn_image;
            return _x;
        }
    }

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

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

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

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

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

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

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

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

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

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

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

    public Msdyn_aibfile withMsdyn_aibfileid(String msdyn_aibfileid) {
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_aibfileid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_aibfileid = msdyn_aibfileid;
        return _x;
    }

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

    public Msdyn_aibfile withMsdyn_image_url(String msdyn_image_url) {
        Checks.checkIsAscii(msdyn_image_url);
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_image_url");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_image_url = msdyn_image_url;
        return _x;
    }

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

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

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

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

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

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

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

    public Msdyn_aibfile withMsdyn_size(Integer msdyn_size) {
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_size");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_size = msdyn_size;
        return _x;
    }

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

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

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

    public Msdyn_aibfile with_msdyn_aibdatasetscontainerid_value(String _msdyn_aibdatasetscontainerid_value) {
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("_msdyn_aibdatasetscontainerid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x._msdyn_aibdatasetscontainerid_value = _msdyn_aibdatasetscontainerid_value;
        return _x;
    }

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

    public Msdyn_aibfile withImportsequencenumber(Integer importsequencenumber) {
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("importsequencenumber");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.importsequencenumber = importsequencenumber;
        return _x;
    }

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

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

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

    public Msdyn_aibfile withMsdyn_name(String msdyn_name) {
        Checks.checkIsAscii(msdyn_name);
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_name");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_name = msdyn_name;
        return _x;
    }

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

    public Msdyn_aibfile withMsdyn_importmetadata(String msdyn_importmetadata) {
        Checks.checkIsAscii(msdyn_importmetadata);
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_importmetadata");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_importmetadata = msdyn_importmetadata;
        return _x;
    }

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

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

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

    public Msdyn_aibfile withMsdyn_file_name(String msdyn_file_name) {
        Checks.checkIsAscii(msdyn_file_name);
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_file_name");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_file_name = msdyn_file_name;
        return _x;
    }

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

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

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

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

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

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

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

    public Msdyn_aibfile withMsdyn_mimetype(String msdyn_mimetype) {
        Checks.checkIsAscii(msdyn_mimetype);
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_mimetype");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_mimetype = msdyn_mimetype;
        return _x;
    }

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

    public Msdyn_aibfile withMsdyn_checksum(String msdyn_checksum) {
        Checks.checkIsAscii(msdyn_checksum);
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_checksum");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_checksum = msdyn_checksum;
        return _x;
    }

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

    public Msdyn_aibfile withOverriddencreatedon(OffsetDateTime overriddencreatedon) {
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("overriddencreatedon");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.overriddencreatedon = overriddencreatedon;
        return _x;
    }

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

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

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

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

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

    public Msdyn_aibfile withMsdyn_file(byte[] msdyn_file) {
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_file");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_file = msdyn_file;
        return _x;
    }

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

    public Msdyn_aibfile withMsdyn_imageid(String msdyn_imageid) {
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_imageid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_imageid = msdyn_imageid;
        return _x;
    }

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

    public Msdyn_aibfile withMsdyn_image_timestamp(Long msdyn_image_timestamp) {
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_image_timestamp");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_image_timestamp = msdyn_image_timestamp;
        return _x;
    }

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

    public Msdyn_aibfile withMsdyn_image(byte[] msdyn_image) {
        Msdyn_aibfile _x = _copy();
        _x.changedFields = changedFields.add("msdyn_image");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_aibfile");
        _x.msdyn_image = msdyn_image;
        return _x;
    }

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

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

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

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

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

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

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

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

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

    @NavigationProperty(name="msdyn_aibfile_DuplicateMatchingRecord")
    @JsonIgnore
    public DuplicaterecordCollectionRequest getMsdyn_aibfile_DuplicateMatchingRecord() {
        return new DuplicaterecordCollectionRequest(
                        contextPath.addSegment("msdyn_aibfile_DuplicateMatchingRecord"));
    }

    @NavigationProperty(name="msdyn_aibfile_DuplicateBaseRecord")
    @JsonIgnore
    public DuplicaterecordCollectionRequest getMsdyn_aibfile_DuplicateBaseRecord() {
        return new DuplicaterecordCollectionRequest(
                        contextPath.addSegment("msdyn_aibfile_DuplicateBaseRecord"));
    }

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

    @NavigationProperty(name="msdyn_aibfile_MailboxTrackingFolders")
    @JsonIgnore
    public MailboxtrackingfolderCollectionRequest getMsdyn_aibfile_MailboxTrackingFolders() {
        return new MailboxtrackingfolderCollectionRequest(
                        contextPath.addSegment("msdyn_aibfile_MailboxTrackingFolders"));
    }

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

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

    @NavigationProperty(name="msdyn_aibfile_PrincipalObjectAttributeAccesses")
    @JsonIgnore
    public PrincipalobjectattributeaccessCollectionRequest getMsdyn_aibfile_PrincipalObjectAttributeAccesses() {
        return new PrincipalobjectattributeaccessCollectionRequest(
                        contextPath.addSegment("msdyn_aibfile_PrincipalObjectAttributeAccesses"));
    }

    @NavigationProperty(name="msdyn_aibfile_FileAttachments")
    @JsonIgnore
    public FileattachmentCollectionRequest getMsdyn_aibfile_FileAttachments() {
        return new FileattachmentCollectionRequest(
                        contextPath.addSegment("msdyn_aibfile_FileAttachments"));
    }

    @NavigationProperty(name="msdyn_AIBDatasetFile_msdyn_AIBuilde")
    @JsonIgnore
    public Msdyn_aibdatasetfileCollectionRequest getMsdyn_AIBDatasetFile_msdyn_AIBuilde() {
        return new Msdyn_aibdatasetfileCollectionRequest(
                        contextPath.addSegment("msdyn_AIBDatasetFile_msdyn_AIBuilde"));
    }

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

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

    private Msdyn_aibfile _copy() {
        Msdyn_aibfile _x = new Msdyn_aibfile();
        _x.contextPath = contextPath;
        _x.changedFields = changedFields;
        _x.unmappedFields = unmappedFields;
        _x.odataType = odataType;
        _x._owningteam_value = _owningteam_value;
        _x.modifiedon = modifiedon;
        _x.statecode = statecode;
        _x._owninguser_value = _owninguser_value;
        _x.msdyn_aibfileid = msdyn_aibfileid;
        _x.msdyn_image_url = msdyn_image_url;
        _x.utcconversiontimezonecode = utcconversiontimezonecode;
        _x._modifiedby_value = _modifiedby_value;
        _x._owningbusinessunit_value = _owningbusinessunit_value;
        _x.msdyn_size = msdyn_size;
        _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
        _x._msdyn_aibdatasetscontainerid_value = _msdyn_aibdatasetscontainerid_value;
        _x.importsequencenumber = importsequencenumber;
        _x.createdon = createdon;
        _x.msdyn_name = msdyn_name;
        _x.msdyn_importmetadata = msdyn_importmetadata;
        _x.timezoneruleversionnumber = timezoneruleversionnumber;
        _x.msdyn_file_name = msdyn_file_name;
        _x._createdonbehalfby_value = _createdonbehalfby_value;
        _x._ownerid_value = _ownerid_value;
        _x._createdby_value = _createdby_value;
        _x.msdyn_mimetype = msdyn_mimetype;
        _x.msdyn_checksum = msdyn_checksum;
        _x.overriddencreatedon = overriddencreatedon;
        _x.statuscode = statuscode;
        _x.versionnumber = versionnumber;
        _x.msdyn_file = msdyn_file;
        _x.msdyn_imageid = msdyn_imageid;
        _x.msdyn_image_timestamp = msdyn_image_timestamp;
        _x.msdyn_image = msdyn_image;
        return _x;
    }

    @Override
    public String toString() {
        StringBuilder b = new StringBuilder();
        b.append("Msdyn_aibfile[");
        b.append("_owningteam_value=");
        b.append(this._owningteam_value);
        b.append(", ");
        b.append("modifiedon=");
        b.append(this.modifiedon);
        b.append(", ");
        b.append("statecode=");
        b.append(this.statecode);
        b.append(", ");
        b.append("_owninguser_value=");
        b.append(this._owninguser_value);
        b.append(", ");
        b.append("msdyn_aibfileid=");
        b.append(this.msdyn_aibfileid);
        b.append(", ");
        b.append("msdyn_image_url=");
        b.append(this.msdyn_image_url);
        b.append(", ");
        b.append("utcconversiontimezonecode=");
        b.append(this.utcconversiontimezonecode);
        b.append(", ");
        b.append("_modifiedby_value=");
        b.append(this._modifiedby_value);
        b.append(", ");
        b.append("_owningbusinessunit_value=");
        b.append(this._owningbusinessunit_value);
        b.append(", ");
        b.append("msdyn_size=");
        b.append(this.msdyn_size);
        b.append(", ");
        b.append("_modifiedonbehalfby_value=");
        b.append(this._modifiedonbehalfby_value);
        b.append(", ");
        b.append("_msdyn_aibdatasetscontainerid_value=");
        b.append(this._msdyn_aibdatasetscontainerid_value);
        b.append(", ");
        b.append("importsequencenumber=");
        b.append(this.importsequencenumber);
        b.append(", ");
        b.append("createdon=");
        b.append(this.createdon);
        b.append(", ");
        b.append("msdyn_name=");
        b.append(this.msdyn_name);
        b.append(", ");
        b.append("msdyn_importmetadata=");
        b.append(this.msdyn_importmetadata);
        b.append(", ");
        b.append("timezoneruleversionnumber=");
        b.append(this.timezoneruleversionnumber);
        b.append(", ");
        b.append("msdyn_file_name=");
        b.append(this.msdyn_file_name);
        b.append(", ");
        b.append("_createdonbehalfby_value=");
        b.append(this._createdonbehalfby_value);
        b.append(", ");
        b.append("_ownerid_value=");
        b.append(this._ownerid_value);
        b.append(", ");
        b.append("_createdby_value=");
        b.append(this._createdby_value);
        b.append(", ");
        b.append("msdyn_mimetype=");
        b.append(this.msdyn_mimetype);
        b.append(", ");
        b.append("msdyn_checksum=");
        b.append(this.msdyn_checksum);
        b.append(", ");
        b.append("overriddencreatedon=");
        b.append(this.overriddencreatedon);
        b.append(", ");
        b.append("statuscode=");
        b.append(this.statuscode);
        b.append(", ");
        b.append("versionnumber=");
        b.append(this.versionnumber);
        b.append(", ");
        b.append("msdyn_file=");
        b.append(this.msdyn_file);
        b.append(", ");
        b.append("msdyn_imageid=");
        b.append(this.msdyn_imageid);
        b.append(", ");
        b.append("msdyn_image_timestamp=");
        b.append(this.msdyn_image_timestamp);
        b.append(", ");
        b.append("msdyn_image=");
        b.append(this.msdyn_image);
        b.append("]");
        b.append(",unmappedFields=");
        b.append(unmappedFields);
        b.append(",odataType=");
        b.append(odataType);
        return b.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy