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

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

The newest version!
package microsoft.dynamics.crm.entity;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
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.UnmappedFields;
import com.github.davidmoten.odata.client.Util;
import com.github.davidmoten.odata.client.annotation.NavigationProperty;
import com.github.davidmoten.odata.client.annotation.Property;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.RequestHelper;
import com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl;

import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.Long;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.time.OffsetDateTime;
import java.util.Optional;
import java.util.UUID;

import microsoft.dynamics.crm.entity.collection.request.AppmoduleCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.DuplicaterecordCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.PublisheraddressCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SolutionCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SyncerrorCollectionRequest;
import microsoft.dynamics.crm.entity.request.OrganizationRequest;
import microsoft.dynamics.crm.entity.request.SystemuserRequest;

@JsonPropertyOrder({
    "@odata.type", 
    "friendlyname", 
    "publisherid", 
    "address2_utcoffset", 
    "address1_line2", 
    "address1_upszone", 
    "address2_county", 
    "address1_shippingmethodcode", 
    "modifiedon", 
    "isreadonly", 
    "address1_telephone3", 
    "entityimage_timestamp", 
    "address1_country", 
    "pinpointpublisherdefaultlocale", 
    "address2_name", 
    "address1_telephone1", 
    "description", 
    "address1_addressid", 
    "address2_stateorprovince", 
    "address1_addresstypecode", 
    "address2_addressid", 
    "address2_city", 
    "address1_line3", 
    "address2_line1", 
    "versionnumber", 
    "pinpointpublisherid", 
    "_createdby_value", 
    "customizationprefix", 
    "address2_line3", 
    "address2_longitude", 
    "address1_fax", 
    "entityimage_url", 
    "address2_fax", 
    "address1_line1", 
    "address2_shippingmethodcode", 
    "address2_line2", 
    "address1_postalcode", 
    "address2_postalcode", 
    "address1_latitude", 
    "address1_name", 
    "address1_postofficebox", 
    "address2_latitude", 
    "customizationoptionvalueprefix", 
    "address2_upszone", 
    "address2_country", 
    "_modifiedonbehalfby_value", 
    "entityimageid", 
    "address2_telephone1", 
    "address1_longitude", 
    "address1_utcoffset", 
    "address2_telephone2", 
    "address2_addresstypecode", 
    "_modifiedby_value", 
    "address1_county", 
    "createdon", 
    "address2_telephone3", 
    "_createdonbehalfby_value", 
    "emailaddress", 
    "address1_stateorprovince", 
    "uniquename", 
    "address1_city", 
    "_organizationid_value", 
    "address1_telephone2", 
    "entityimage", 
    "address2_postofficebox", 
    "supportingwebsiteurl"})
@JsonInclude(Include.NON_NULL)
public class Publisher extends Crmbaseentity implements ODataEntityType {

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

    @JsonProperty("friendlyname")
    protected String friendlyname;

    @JsonProperty("publisherid")
    protected UUID publisherid;

    @JsonProperty("address2_utcoffset")
    protected Integer address2_utcoffset;

    @JsonProperty("address1_line2")
    protected String address1_line2;

    @JsonProperty("address1_upszone")
    protected String address1_upszone;

    @JsonProperty("address2_county")
    protected String address2_county;

    @JsonProperty("address1_shippingmethodcode")
    protected Integer address1_shippingmethodcode;

    @JsonProperty("modifiedon")
    protected OffsetDateTime modifiedon;

    @JsonProperty("isreadonly")
    protected Boolean isreadonly;

    @JsonProperty("address1_telephone3")
    protected String address1_telephone3;

    @JsonProperty("entityimage_timestamp")
    protected Long entityimage_timestamp;

    @JsonProperty("address1_country")
    protected String address1_country;

    @JsonProperty("pinpointpublisherdefaultlocale")
    protected String pinpointpublisherdefaultlocale;

    @JsonProperty("address2_name")
    protected String address2_name;

    @JsonProperty("address1_telephone1")
    protected String address1_telephone1;

    @JsonProperty("description")
    protected String description;

    @JsonProperty("address1_addressid")
    protected UUID address1_addressid;

    @JsonProperty("address2_stateorprovince")
    protected String address2_stateorprovince;

    @JsonProperty("address1_addresstypecode")
    protected Integer address1_addresstypecode;

    @JsonProperty("address2_addressid")
    protected UUID address2_addressid;

    @JsonProperty("address2_city")
    protected String address2_city;

    @JsonProperty("address1_line3")
    protected String address1_line3;

    @JsonProperty("address2_line1")
    protected String address2_line1;

    @JsonProperty("versionnumber")
    protected Long versionnumber;

    @JsonProperty("pinpointpublisherid")
    protected Long pinpointpublisherid;

    @JsonProperty("_createdby_value")
    protected UUID _createdby_value;

    @JsonProperty("customizationprefix")
    protected String customizationprefix;

    @JsonProperty("address2_line3")
    protected String address2_line3;

    @JsonProperty("address2_longitude")
    protected Double address2_longitude;

    @JsonProperty("address1_fax")
    protected String address1_fax;

    @JsonProperty("entityimage_url")
    protected String entityimage_url;

    @JsonProperty("address2_fax")
    protected String address2_fax;

    @JsonProperty("address1_line1")
    protected String address1_line1;

    @JsonProperty("address2_shippingmethodcode")
    protected Integer address2_shippingmethodcode;

    @JsonProperty("address2_line2")
    protected String address2_line2;

    @JsonProperty("address1_postalcode")
    protected String address1_postalcode;

    @JsonProperty("address2_postalcode")
    protected String address2_postalcode;

    @JsonProperty("address1_latitude")
    protected Double address1_latitude;

    @JsonProperty("address1_name")
    protected String address1_name;

    @JsonProperty("address1_postofficebox")
    protected String address1_postofficebox;

    @JsonProperty("address2_latitude")
    protected Double address2_latitude;

    @JsonProperty("customizationoptionvalueprefix")
    protected Integer customizationoptionvalueprefix;

    @JsonProperty("address2_upszone")
    protected String address2_upszone;

    @JsonProperty("address2_country")
    protected String address2_country;

    @JsonProperty("_modifiedonbehalfby_value")
    protected UUID _modifiedonbehalfby_value;

    @JsonProperty("entityimageid")
    protected UUID entityimageid;

    @JsonProperty("address2_telephone1")
    protected String address2_telephone1;

    @JsonProperty("address1_longitude")
    protected Double address1_longitude;

    @JsonProperty("address1_utcoffset")
    protected Integer address1_utcoffset;

    @JsonProperty("address2_telephone2")
    protected String address2_telephone2;

    @JsonProperty("address2_addresstypecode")
    protected Integer address2_addresstypecode;

    @JsonProperty("_modifiedby_value")
    protected UUID _modifiedby_value;

    @JsonProperty("address1_county")
    protected String address1_county;

    @JsonProperty("createdon")
    protected OffsetDateTime createdon;

    @JsonProperty("address2_telephone3")
    protected String address2_telephone3;

    @JsonProperty("_createdonbehalfby_value")
    protected UUID _createdonbehalfby_value;

    @JsonProperty("emailaddress")
    protected String emailaddress;

    @JsonProperty("address1_stateorprovince")
    protected String address1_stateorprovince;

    @JsonProperty("uniquename")
    protected String uniquename;

    @JsonProperty("address1_city")
    protected String address1_city;

    @JsonProperty("_organizationid_value")
    protected UUID _organizationid_value;

    @JsonProperty("address1_telephone2")
    protected String address1_telephone2;

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

    @JsonProperty("address2_postofficebox")
    protected String address2_postofficebox;

    @JsonProperty("supportingwebsiteurl")
    protected String supportingwebsiteurl;

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

    public static final class Builder {
        private String friendlyname;
        private UUID publisherid;
        private Integer address2_utcoffset;
        private String address1_line2;
        private String address1_upszone;
        private String address2_county;
        private Integer address1_shippingmethodcode;
        private OffsetDateTime modifiedon;
        private Boolean isreadonly;
        private String address1_telephone3;
        private Long entityimage_timestamp;
        private String address1_country;
        private String pinpointpublisherdefaultlocale;
        private String address2_name;
        private String address1_telephone1;
        private String description;
        private UUID address1_addressid;
        private String address2_stateorprovince;
        private Integer address1_addresstypecode;
        private UUID address2_addressid;
        private String address2_city;
        private String address1_line3;
        private String address2_line1;
        private Long versionnumber;
        private Long pinpointpublisherid;
        private UUID _createdby_value;
        private String customizationprefix;
        private String address2_line3;
        private Double address2_longitude;
        private String address1_fax;
        private String entityimage_url;
        private String address2_fax;
        private String address1_line1;
        private Integer address2_shippingmethodcode;
        private String address2_line2;
        private String address1_postalcode;
        private String address2_postalcode;
        private Double address1_latitude;
        private String address1_name;
        private String address1_postofficebox;
        private Double address2_latitude;
        private Integer customizationoptionvalueprefix;
        private String address2_upszone;
        private String address2_country;
        private UUID _modifiedonbehalfby_value;
        private UUID entityimageid;
        private String address2_telephone1;
        private Double address1_longitude;
        private Integer address1_utcoffset;
        private String address2_telephone2;
        private Integer address2_addresstypecode;
        private UUID _modifiedby_value;
        private String address1_county;
        private OffsetDateTime createdon;
        private String address2_telephone3;
        private UUID _createdonbehalfby_value;
        private String emailaddress;
        private String address1_stateorprovince;
        private String uniquename;
        private String address1_city;
        private UUID _organizationid_value;
        private String address1_telephone2;
        private byte[] entityimage;
        private String address2_postofficebox;
        private String supportingwebsiteurl;
        private ChangedFields changedFields = ChangedFields.EMPTY;

        Builder() {
            // prevent instantiation
        }

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

        public Builder publisherid(UUID publisherid) {
            this.publisherid = publisherid;
            this.changedFields = changedFields.add("publisherid");
            return this;
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public Builder address1_addressid(UUID address1_addressid) {
            this.address1_addressid = address1_addressid;
            this.changedFields = changedFields.add("address1_addressid");
            return this;
        }

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

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

        public Builder address2_addressid(UUID address2_addressid) {
            this.address2_addressid = address2_addressid;
            this.changedFields = changedFields.add("address2_addressid");
            return this;
        }

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

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

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

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

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

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

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

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

        public Builder address2_longitude(Double address2_longitude) {
            this.address2_longitude = address2_longitude;
            this.changedFields = changedFields.add("address2_longitude");
            return this;
        }

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

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

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

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

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

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

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

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

        public Builder address1_latitude(Double address1_latitude) {
            this.address1_latitude = address1_latitude;
            this.changedFields = changedFields.add("address1_latitude");
            return this;
        }

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

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

        public Builder address2_latitude(Double address2_latitude) {
            this.address2_latitude = address2_latitude;
            this.changedFields = changedFields.add("address2_latitude");
            return this;
        }

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

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

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

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

        public Builder entityimageid(UUID entityimageid) {
            this.entityimageid = entityimageid;
            this.changedFields = changedFields.add("entityimageid");
            return this;
        }

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

        public Builder address1_longitude(Double address1_longitude) {
            this.address1_longitude = address1_longitude;
            this.changedFields = changedFields.add("address1_longitude");
            return this;
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public Publisher build() {
            Publisher _x = new Publisher();
            _x.contextPath = null;
            _x.changedFields = changedFields;
            _x.unmappedFields = new UnmappedFieldsImpl();
            _x.odataType = "Microsoft.Dynamics.CRM.publisher";
            _x.friendlyname = friendlyname;
            _x.publisherid = publisherid;
            _x.address2_utcoffset = address2_utcoffset;
            _x.address1_line2 = address1_line2;
            _x.address1_upszone = address1_upszone;
            _x.address2_county = address2_county;
            _x.address1_shippingmethodcode = address1_shippingmethodcode;
            _x.modifiedon = modifiedon;
            _x.isreadonly = isreadonly;
            _x.address1_telephone3 = address1_telephone3;
            _x.entityimage_timestamp = entityimage_timestamp;
            _x.address1_country = address1_country;
            _x.pinpointpublisherdefaultlocale = pinpointpublisherdefaultlocale;
            _x.address2_name = address2_name;
            _x.address1_telephone1 = address1_telephone1;
            _x.description = description;
            _x.address1_addressid = address1_addressid;
            _x.address2_stateorprovince = address2_stateorprovince;
            _x.address1_addresstypecode = address1_addresstypecode;
            _x.address2_addressid = address2_addressid;
            _x.address2_city = address2_city;
            _x.address1_line3 = address1_line3;
            _x.address2_line1 = address2_line1;
            _x.versionnumber = versionnumber;
            _x.pinpointpublisherid = pinpointpublisherid;
            _x._createdby_value = _createdby_value;
            _x.customizationprefix = customizationprefix;
            _x.address2_line3 = address2_line3;
            _x.address2_longitude = address2_longitude;
            _x.address1_fax = address1_fax;
            _x.entityimage_url = entityimage_url;
            _x.address2_fax = address2_fax;
            _x.address1_line1 = address1_line1;
            _x.address2_shippingmethodcode = address2_shippingmethodcode;
            _x.address2_line2 = address2_line2;
            _x.address1_postalcode = address1_postalcode;
            _x.address2_postalcode = address2_postalcode;
            _x.address1_latitude = address1_latitude;
            _x.address1_name = address1_name;
            _x.address1_postofficebox = address1_postofficebox;
            _x.address2_latitude = address2_latitude;
            _x.customizationoptionvalueprefix = customizationoptionvalueprefix;
            _x.address2_upszone = address2_upszone;
            _x.address2_country = address2_country;
            _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
            _x.entityimageid = entityimageid;
            _x.address2_telephone1 = address2_telephone1;
            _x.address1_longitude = address1_longitude;
            _x.address1_utcoffset = address1_utcoffset;
            _x.address2_telephone2 = address2_telephone2;
            _x.address2_addresstypecode = address2_addresstypecode;
            _x._modifiedby_value = _modifiedby_value;
            _x.address1_county = address1_county;
            _x.createdon = createdon;
            _x.address2_telephone3 = address2_telephone3;
            _x._createdonbehalfby_value = _createdonbehalfby_value;
            _x.emailaddress = emailaddress;
            _x.address1_stateorprovince = address1_stateorprovince;
            _x.uniquename = uniquename;
            _x.address1_city = address1_city;
            _x._organizationid_value = _organizationid_value;
            _x.address1_telephone2 = address1_telephone2;
            _x.entityimage = entityimage;
            _x.address2_postofficebox = address2_postofficebox;
            _x.supportingwebsiteurl = supportingwebsiteurl;
            return _x;
        }
    }

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

    @Override
    public void postInject(boolean addKeysToContextPath) {
        if (addKeysToContextPath && publisherid != null) {
            contextPath = contextPath.clearQueries().addKeys(new NameValue(publisherid, UUID.class));
        }
    }

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

    public Publisher withFriendlyname(String friendlyname) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("friendlyname");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.friendlyname = friendlyname;
        return _x;
    }

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

    public Publisher withPublisherid(UUID publisherid) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("publisherid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.publisherid = publisherid;
        return _x;
    }

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

    public Publisher withAddress2_utcoffset(Integer address2_utcoffset) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_utcoffset");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_utcoffset = address2_utcoffset;
        return _x;
    }

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

    public Publisher withAddress1_line2(String address1_line2) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_line2");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_line2 = address1_line2;
        return _x;
    }

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

    public Publisher withAddress1_upszone(String address1_upszone) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_upszone");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_upszone = address1_upszone;
        return _x;
    }

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

    public Publisher withAddress2_county(String address2_county) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_county");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_county = address2_county;
        return _x;
    }

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

    public Publisher withAddress1_shippingmethodcode(Integer address1_shippingmethodcode) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_shippingmethodcode");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_shippingmethodcode = address1_shippingmethodcode;
        return _x;
    }

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

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

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

    public Publisher withIsreadonly(Boolean isreadonly) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("isreadonly");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.isreadonly = isreadonly;
        return _x;
    }

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

    public Publisher withAddress1_telephone3(String address1_telephone3) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_telephone3");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_telephone3 = address1_telephone3;
        return _x;
    }

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

    public Publisher withEntityimage_timestamp(Long entityimage_timestamp) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("entityimage_timestamp");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.entityimage_timestamp = entityimage_timestamp;
        return _x;
    }

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

    public Publisher withAddress1_country(String address1_country) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_country");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_country = address1_country;
        return _x;
    }

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

    public Publisher withPinpointpublisherdefaultlocale(String pinpointpublisherdefaultlocale) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("pinpointpublisherdefaultlocale");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.pinpointpublisherdefaultlocale = pinpointpublisherdefaultlocale;
        return _x;
    }

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

    public Publisher withAddress2_name(String address2_name) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_name");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_name = address2_name;
        return _x;
    }

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

    public Publisher withAddress1_telephone1(String address1_telephone1) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_telephone1");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_telephone1 = address1_telephone1;
        return _x;
    }

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

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

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

    public Publisher withAddress1_addressid(UUID address1_addressid) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_addressid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_addressid = address1_addressid;
        return _x;
    }

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

    public Publisher withAddress2_stateorprovince(String address2_stateorprovince) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_stateorprovince");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_stateorprovince = address2_stateorprovince;
        return _x;
    }

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

    public Publisher withAddress1_addresstypecode(Integer address1_addresstypecode) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_addresstypecode");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_addresstypecode = address1_addresstypecode;
        return _x;
    }

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

    public Publisher withAddress2_addressid(UUID address2_addressid) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_addressid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_addressid = address2_addressid;
        return _x;
    }

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

    public Publisher withAddress2_city(String address2_city) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_city");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_city = address2_city;
        return _x;
    }

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

    public Publisher withAddress1_line3(String address1_line3) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_line3");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_line3 = address1_line3;
        return _x;
    }

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

    public Publisher withAddress2_line1(String address2_line1) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_line1");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_line1 = address2_line1;
        return _x;
    }

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

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

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

    public Publisher withPinpointpublisherid(Long pinpointpublisherid) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("pinpointpublisherid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.pinpointpublisherid = pinpointpublisherid;
        return _x;
    }

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

    public Publisher with_createdby_value(UUID _createdby_value) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("_createdby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x._createdby_value = _createdby_value;
        return _x;
    }

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

    public Publisher withCustomizationprefix(String customizationprefix) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("customizationprefix");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.customizationprefix = customizationprefix;
        return _x;
    }

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

    public Publisher withAddress2_line3(String address2_line3) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_line3");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_line3 = address2_line3;
        return _x;
    }

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

    public Publisher withAddress2_longitude(Double address2_longitude) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_longitude");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_longitude = address2_longitude;
        return _x;
    }

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

    public Publisher withAddress1_fax(String address1_fax) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_fax");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_fax = address1_fax;
        return _x;
    }

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

    public Publisher withEntityimage_url(String entityimage_url) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("entityimage_url");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.entityimage_url = entityimage_url;
        return _x;
    }

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

    public Publisher withAddress2_fax(String address2_fax) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_fax");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_fax = address2_fax;
        return _x;
    }

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

    public Publisher withAddress1_line1(String address1_line1) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_line1");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_line1 = address1_line1;
        return _x;
    }

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

    public Publisher withAddress2_shippingmethodcode(Integer address2_shippingmethodcode) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_shippingmethodcode");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_shippingmethodcode = address2_shippingmethodcode;
        return _x;
    }

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

    public Publisher withAddress2_line2(String address2_line2) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_line2");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_line2 = address2_line2;
        return _x;
    }

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

    public Publisher withAddress1_postalcode(String address1_postalcode) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_postalcode");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_postalcode = address1_postalcode;
        return _x;
    }

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

    public Publisher withAddress2_postalcode(String address2_postalcode) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_postalcode");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_postalcode = address2_postalcode;
        return _x;
    }

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

    public Publisher withAddress1_latitude(Double address1_latitude) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_latitude");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_latitude = address1_latitude;
        return _x;
    }

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

    public Publisher withAddress1_name(String address1_name) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_name");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_name = address1_name;
        return _x;
    }

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

    public Publisher withAddress1_postofficebox(String address1_postofficebox) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_postofficebox");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_postofficebox = address1_postofficebox;
        return _x;
    }

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

    public Publisher withAddress2_latitude(Double address2_latitude) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_latitude");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_latitude = address2_latitude;
        return _x;
    }

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

    public Publisher withCustomizationoptionvalueprefix(Integer customizationoptionvalueprefix) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("customizationoptionvalueprefix");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.customizationoptionvalueprefix = customizationoptionvalueprefix;
        return _x;
    }

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

    public Publisher withAddress2_upszone(String address2_upszone) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_upszone");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_upszone = address2_upszone;
        return _x;
    }

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

    public Publisher withAddress2_country(String address2_country) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_country");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_country = address2_country;
        return _x;
    }

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

    public Publisher with_modifiedonbehalfby_value(UUID _modifiedonbehalfby_value) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("_modifiedonbehalfby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
        return _x;
    }

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

    public Publisher withEntityimageid(UUID entityimageid) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("entityimageid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.entityimageid = entityimageid;
        return _x;
    }

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

    public Publisher withAddress2_telephone1(String address2_telephone1) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_telephone1");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_telephone1 = address2_telephone1;
        return _x;
    }

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

    public Publisher withAddress1_longitude(Double address1_longitude) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_longitude");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_longitude = address1_longitude;
        return _x;
    }

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

    public Publisher withAddress1_utcoffset(Integer address1_utcoffset) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_utcoffset");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_utcoffset = address1_utcoffset;
        return _x;
    }

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

    public Publisher withAddress2_telephone2(String address2_telephone2) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_telephone2");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_telephone2 = address2_telephone2;
        return _x;
    }

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

    public Publisher withAddress2_addresstypecode(Integer address2_addresstypecode) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_addresstypecode");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_addresstypecode = address2_addresstypecode;
        return _x;
    }

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

    public Publisher with_modifiedby_value(UUID _modifiedby_value) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("_modifiedby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x._modifiedby_value = _modifiedby_value;
        return _x;
    }

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

    public Publisher withAddress1_county(String address1_county) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_county");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_county = address1_county;
        return _x;
    }

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

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

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

    public Publisher withAddress2_telephone3(String address2_telephone3) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_telephone3");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_telephone3 = address2_telephone3;
        return _x;
    }

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

    public Publisher with_createdonbehalfby_value(UUID _createdonbehalfby_value) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("_createdonbehalfby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x._createdonbehalfby_value = _createdonbehalfby_value;
        return _x;
    }

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

    public Publisher withEmailaddress(String emailaddress) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("emailaddress");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.emailaddress = emailaddress;
        return _x;
    }

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

    public Publisher withAddress1_stateorprovince(String address1_stateorprovince) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_stateorprovince");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_stateorprovince = address1_stateorprovince;
        return _x;
    }

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

    public Publisher withUniquename(String uniquename) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("uniquename");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.uniquename = uniquename;
        return _x;
    }

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

    public Publisher withAddress1_city(String address1_city) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_city");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_city = address1_city;
        return _x;
    }

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

    public Publisher with_organizationid_value(UUID _organizationid_value) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("_organizationid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x._organizationid_value = _organizationid_value;
        return _x;
    }

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

    public Publisher withAddress1_telephone2(String address1_telephone2) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address1_telephone2");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address1_telephone2 = address1_telephone2;
        return _x;
    }

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

    public Publisher withEntityimage(byte[] entityimage) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("entityimage");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.entityimage = entityimage;
        return _x;
    }

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

    public Publisher withAddress2_postofficebox(String address2_postofficebox) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("address2_postofficebox");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.address2_postofficebox = address2_postofficebox;
        return _x;
    }

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

    public Publisher withSupportingwebsiteurl(String supportingwebsiteurl) {
        Publisher _x = _copy();
        _x.changedFields = changedFields.add("supportingwebsiteurl");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.publisher");
        _x.supportingwebsiteurl = supportingwebsiteurl;
        return _x;
    }

    public Publisher withUnmappedField(String name, Object value) {
        Publisher _x = _copy();
        _x.setUnmappedField(name, value);
        return _x;
    }

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

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

    @NavigationProperty(name="Publisher_DuplicateMatchingRecord")
    @JsonIgnore
    public DuplicaterecordCollectionRequest getPublisher_DuplicateMatchingRecord() {
        return new DuplicaterecordCollectionRequest(
                        contextPath.addSegment("Publisher_DuplicateMatchingRecord"), RequestHelper.getValue(unmappedFields, "Publisher_DuplicateMatchingRecord"));
    }

    @NavigationProperty(name="Publisher_SyncErrors")
    @JsonIgnore
    public SyncerrorCollectionRequest getPublisher_SyncErrors() {
        return new SyncerrorCollectionRequest(
                        contextPath.addSegment("Publisher_SyncErrors"), RequestHelper.getValue(unmappedFields, "Publisher_SyncErrors"));
    }

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

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

    @NavigationProperty(name="Publisher_DuplicateBaseRecord")
    @JsonIgnore
    public DuplicaterecordCollectionRequest getPublisher_DuplicateBaseRecord() {
        return new DuplicaterecordCollectionRequest(
                        contextPath.addSegment("Publisher_DuplicateBaseRecord"), RequestHelper.getValue(unmappedFields, "Publisher_DuplicateBaseRecord"));
    }

    @NavigationProperty(name="publisher_solution")
    @JsonIgnore
    public SolutionCollectionRequest getPublisher_solution() {
        return new SolutionCollectionRequest(
                        contextPath.addSegment("publisher_solution"), RequestHelper.getValue(unmappedFields, "publisher_solution"));
    }

    @NavigationProperty(name="publisher_appmodule")
    @JsonIgnore
    public AppmoduleCollectionRequest getPublisher_appmodule() {
        return new AppmoduleCollectionRequest(
                        contextPath.addSegment("publisher_appmodule"), RequestHelper.getValue(unmappedFields, "publisher_appmodule"));
    }

    @NavigationProperty(name="Publisher_PublisherAddress")
    @JsonIgnore
    public PublisheraddressCollectionRequest getPublisher_PublisherAddress() {
        return new PublisheraddressCollectionRequest(
                        contextPath.addSegment("Publisher_PublisherAddress"), RequestHelper.getValue(unmappedFields, "Publisher_PublisherAddress"));
    }

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

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

    @JsonAnyGetter
    private UnmappedFieldsImpl unmappedFields() {
        return unmappedFields == null ? UnmappedFieldsImpl.EMPTY : unmappedFields;
    }

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

    private Publisher _copy() {
        Publisher _x = new Publisher();
        _x.contextPath = contextPath;
        _x.changedFields = changedFields;
        _x.unmappedFields = unmappedFields.copy();
        _x.odataType = odataType;
        _x.friendlyname = friendlyname;
        _x.publisherid = publisherid;
        _x.address2_utcoffset = address2_utcoffset;
        _x.address1_line2 = address1_line2;
        _x.address1_upszone = address1_upszone;
        _x.address2_county = address2_county;
        _x.address1_shippingmethodcode = address1_shippingmethodcode;
        _x.modifiedon = modifiedon;
        _x.isreadonly = isreadonly;
        _x.address1_telephone3 = address1_telephone3;
        _x.entityimage_timestamp = entityimage_timestamp;
        _x.address1_country = address1_country;
        _x.pinpointpublisherdefaultlocale = pinpointpublisherdefaultlocale;
        _x.address2_name = address2_name;
        _x.address1_telephone1 = address1_telephone1;
        _x.description = description;
        _x.address1_addressid = address1_addressid;
        _x.address2_stateorprovince = address2_stateorprovince;
        _x.address1_addresstypecode = address1_addresstypecode;
        _x.address2_addressid = address2_addressid;
        _x.address2_city = address2_city;
        _x.address1_line3 = address1_line3;
        _x.address2_line1 = address2_line1;
        _x.versionnumber = versionnumber;
        _x.pinpointpublisherid = pinpointpublisherid;
        _x._createdby_value = _createdby_value;
        _x.customizationprefix = customizationprefix;
        _x.address2_line3 = address2_line3;
        _x.address2_longitude = address2_longitude;
        _x.address1_fax = address1_fax;
        _x.entityimage_url = entityimage_url;
        _x.address2_fax = address2_fax;
        _x.address1_line1 = address1_line1;
        _x.address2_shippingmethodcode = address2_shippingmethodcode;
        _x.address2_line2 = address2_line2;
        _x.address1_postalcode = address1_postalcode;
        _x.address2_postalcode = address2_postalcode;
        _x.address1_latitude = address1_latitude;
        _x.address1_name = address1_name;
        _x.address1_postofficebox = address1_postofficebox;
        _x.address2_latitude = address2_latitude;
        _x.customizationoptionvalueprefix = customizationoptionvalueprefix;
        _x.address2_upszone = address2_upszone;
        _x.address2_country = address2_country;
        _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
        _x.entityimageid = entityimageid;
        _x.address2_telephone1 = address2_telephone1;
        _x.address1_longitude = address1_longitude;
        _x.address1_utcoffset = address1_utcoffset;
        _x.address2_telephone2 = address2_telephone2;
        _x.address2_addresstypecode = address2_addresstypecode;
        _x._modifiedby_value = _modifiedby_value;
        _x.address1_county = address1_county;
        _x.createdon = createdon;
        _x.address2_telephone3 = address2_telephone3;
        _x._createdonbehalfby_value = _createdonbehalfby_value;
        _x.emailaddress = emailaddress;
        _x.address1_stateorprovince = address1_stateorprovince;
        _x.uniquename = uniquename;
        _x.address1_city = address1_city;
        _x._organizationid_value = _organizationid_value;
        _x.address1_telephone2 = address1_telephone2;
        _x.entityimage = entityimage;
        _x.address2_postofficebox = address2_postofficebox;
        _x.supportingwebsiteurl = supportingwebsiteurl;
        return _x;
    }

    @Override
    public String toString() {
        StringBuilder b = new StringBuilder();
        b.append("Publisher[");
        b.append("friendlyname=");
        b.append(this.friendlyname);
        b.append(", ");
        b.append("publisherid=");
        b.append(this.publisherid);
        b.append(", ");
        b.append("address2_utcoffset=");
        b.append(this.address2_utcoffset);
        b.append(", ");
        b.append("address1_line2=");
        b.append(this.address1_line2);
        b.append(", ");
        b.append("address1_upszone=");
        b.append(this.address1_upszone);
        b.append(", ");
        b.append("address2_county=");
        b.append(this.address2_county);
        b.append(", ");
        b.append("address1_shippingmethodcode=");
        b.append(this.address1_shippingmethodcode);
        b.append(", ");
        b.append("modifiedon=");
        b.append(this.modifiedon);
        b.append(", ");
        b.append("isreadonly=");
        b.append(this.isreadonly);
        b.append(", ");
        b.append("address1_telephone3=");
        b.append(this.address1_telephone3);
        b.append(", ");
        b.append("entityimage_timestamp=");
        b.append(this.entityimage_timestamp);
        b.append(", ");
        b.append("address1_country=");
        b.append(this.address1_country);
        b.append(", ");
        b.append("pinpointpublisherdefaultlocale=");
        b.append(this.pinpointpublisherdefaultlocale);
        b.append(", ");
        b.append("address2_name=");
        b.append(this.address2_name);
        b.append(", ");
        b.append("address1_telephone1=");
        b.append(this.address1_telephone1);
        b.append(", ");
        b.append("description=");
        b.append(this.description);
        b.append(", ");
        b.append("address1_addressid=");
        b.append(this.address1_addressid);
        b.append(", ");
        b.append("address2_stateorprovince=");
        b.append(this.address2_stateorprovince);
        b.append(", ");
        b.append("address1_addresstypecode=");
        b.append(this.address1_addresstypecode);
        b.append(", ");
        b.append("address2_addressid=");
        b.append(this.address2_addressid);
        b.append(", ");
        b.append("address2_city=");
        b.append(this.address2_city);
        b.append(", ");
        b.append("address1_line3=");
        b.append(this.address1_line3);
        b.append(", ");
        b.append("address2_line1=");
        b.append(this.address2_line1);
        b.append(", ");
        b.append("versionnumber=");
        b.append(this.versionnumber);
        b.append(", ");
        b.append("pinpointpublisherid=");
        b.append(this.pinpointpublisherid);
        b.append(", ");
        b.append("_createdby_value=");
        b.append(this._createdby_value);
        b.append(", ");
        b.append("customizationprefix=");
        b.append(this.customizationprefix);
        b.append(", ");
        b.append("address2_line3=");
        b.append(this.address2_line3);
        b.append(", ");
        b.append("address2_longitude=");
        b.append(this.address2_longitude);
        b.append(", ");
        b.append("address1_fax=");
        b.append(this.address1_fax);
        b.append(", ");
        b.append("entityimage_url=");
        b.append(this.entityimage_url);
        b.append(", ");
        b.append("address2_fax=");
        b.append(this.address2_fax);
        b.append(", ");
        b.append("address1_line1=");
        b.append(this.address1_line1);
        b.append(", ");
        b.append("address2_shippingmethodcode=");
        b.append(this.address2_shippingmethodcode);
        b.append(", ");
        b.append("address2_line2=");
        b.append(this.address2_line2);
        b.append(", ");
        b.append("address1_postalcode=");
        b.append(this.address1_postalcode);
        b.append(", ");
        b.append("address2_postalcode=");
        b.append(this.address2_postalcode);
        b.append(", ");
        b.append("address1_latitude=");
        b.append(this.address1_latitude);
        b.append(", ");
        b.append("address1_name=");
        b.append(this.address1_name);
        b.append(", ");
        b.append("address1_postofficebox=");
        b.append(this.address1_postofficebox);
        b.append(", ");
        b.append("address2_latitude=");
        b.append(this.address2_latitude);
        b.append(", ");
        b.append("customizationoptionvalueprefix=");
        b.append(this.customizationoptionvalueprefix);
        b.append(", ");
        b.append("address2_upszone=");
        b.append(this.address2_upszone);
        b.append(", ");
        b.append("address2_country=");
        b.append(this.address2_country);
        b.append(", ");
        b.append("_modifiedonbehalfby_value=");
        b.append(this._modifiedonbehalfby_value);
        b.append(", ");
        b.append("entityimageid=");
        b.append(this.entityimageid);
        b.append(", ");
        b.append("address2_telephone1=");
        b.append(this.address2_telephone1);
        b.append(", ");
        b.append("address1_longitude=");
        b.append(this.address1_longitude);
        b.append(", ");
        b.append("address1_utcoffset=");
        b.append(this.address1_utcoffset);
        b.append(", ");
        b.append("address2_telephone2=");
        b.append(this.address2_telephone2);
        b.append(", ");
        b.append("address2_addresstypecode=");
        b.append(this.address2_addresstypecode);
        b.append(", ");
        b.append("_modifiedby_value=");
        b.append(this._modifiedby_value);
        b.append(", ");
        b.append("address1_county=");
        b.append(this.address1_county);
        b.append(", ");
        b.append("createdon=");
        b.append(this.createdon);
        b.append(", ");
        b.append("address2_telephone3=");
        b.append(this.address2_telephone3);
        b.append(", ");
        b.append("_createdonbehalfby_value=");
        b.append(this._createdonbehalfby_value);
        b.append(", ");
        b.append("emailaddress=");
        b.append(this.emailaddress);
        b.append(", ");
        b.append("address1_stateorprovince=");
        b.append(this.address1_stateorprovince);
        b.append(", ");
        b.append("uniquename=");
        b.append(this.uniquename);
        b.append(", ");
        b.append("address1_city=");
        b.append(this.address1_city);
        b.append(", ");
        b.append("_organizationid_value=");
        b.append(this._organizationid_value);
        b.append(", ");
        b.append("address1_telephone2=");
        b.append(this.address1_telephone2);
        b.append(", ");
        b.append("entityimage=");
        b.append(this.entityimage);
        b.append(", ");
        b.append("address2_postofficebox=");
        b.append(this.address2_postofficebox);
        b.append(", ");
        b.append("supportingwebsiteurl=");
        b.append(this.supportingwebsiteurl);
        b.append("]");
        b.append(",unmappedFields=");
        b.append(unmappedFields);
        b.append(",odataType=");
        b.append(odataType);
        return b.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy