microsoft.dynamics.crm.entity.Displaystring Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-microsoft-dynamics Show documentation
Show all versions of odata-client-microsoft-dynamics Show documentation
Java client as template for Microsoft Dynamics organisation endpoints
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.request.OrganizationRequest;
import microsoft.dynamics.crm.entity.request.SystemuserRequest;
@JsonPropertyOrder({
"@odata.type",
"customdisplaystring",
"modifiedon",
"_organizationid_value",
"componentstate",
"languagecode",
"ismanaged",
"displaystringid",
"_modifiedonbehalfby_value",
"createdon",
"customcomment",
"displaystringidunique",
"formatparameters",
"_createdonbehalfby_value",
"publisheddisplaystring",
"versionnumber",
"overwritetime",
"_createdby_value",
"displaystringkey",
"_modifiedby_value",
"solutionid"})
@JsonInclude(Include.NON_NULL)
public class Displaystring extends Crmbaseentity implements ODataEntityType {
@Override
public String odataTypeName() {
return "Microsoft.Dynamics.CRM.displaystring";
}
@JsonProperty("customdisplaystring")
protected String customdisplaystring;
@JsonProperty("modifiedon")
protected OffsetDateTime modifiedon;
@JsonProperty("_organizationid_value")
protected String _organizationid_value;
@JsonProperty("componentstate")
protected Integer componentstate;
@JsonProperty("languagecode")
protected Integer languagecode;
@JsonProperty("ismanaged")
protected Boolean ismanaged;
@JsonProperty("displaystringid")
protected String displaystringid;
@JsonProperty("_modifiedonbehalfby_value")
protected String _modifiedonbehalfby_value;
@JsonProperty("createdon")
protected OffsetDateTime createdon;
@JsonProperty("customcomment")
protected String customcomment;
@JsonProperty("displaystringidunique")
protected String displaystringidunique;
@JsonProperty("formatparameters")
protected Integer formatparameters;
@JsonProperty("_createdonbehalfby_value")
protected String _createdonbehalfby_value;
@JsonProperty("publisheddisplaystring")
protected String publisheddisplaystring;
@JsonProperty("versionnumber")
protected Long versionnumber;
@JsonProperty("overwritetime")
protected OffsetDateTime overwritetime;
@JsonProperty("_createdby_value")
protected String _createdby_value;
@JsonProperty("displaystringkey")
protected String displaystringkey;
@JsonProperty("_modifiedby_value")
protected String _modifiedby_value;
@JsonProperty("solutionid")
protected String solutionid;
protected Displaystring() {
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 builderDisplaystring() {
return new Builder();
}
public static final class Builder {
private String customdisplaystring;
private OffsetDateTime modifiedon;
private String _organizationid_value;
private Integer componentstate;
private Integer languagecode;
private Boolean ismanaged;
private String displaystringid;
private String _modifiedonbehalfby_value;
private OffsetDateTime createdon;
private String customcomment;
private String displaystringidunique;
private Integer formatparameters;
private String _createdonbehalfby_value;
private String publisheddisplaystring;
private Long versionnumber;
private OffsetDateTime overwritetime;
private String _createdby_value;
private String displaystringkey;
private String _modifiedby_value;
private String solutionid;
private ChangedFields changedFields = new ChangedFields();
Builder() {
// prevent instantiation
}
public Builder customdisplaystring(String customdisplaystring) {
this.customdisplaystring = customdisplaystring;
this.changedFields = changedFields.add("customdisplaystring");
return this;
}
public Builder modifiedon(OffsetDateTime modifiedon) {
this.modifiedon = modifiedon;
this.changedFields = changedFields.add("modifiedon");
return this;
}
public Builder _organizationid_value(String _organizationid_value) {
this._organizationid_value = _organizationid_value;
this.changedFields = changedFields.add("_organizationid_value");
return this;
}
public Builder componentstate(Integer componentstate) {
this.componentstate = componentstate;
this.changedFields = changedFields.add("componentstate");
return this;
}
public Builder languagecode(Integer languagecode) {
this.languagecode = languagecode;
this.changedFields = changedFields.add("languagecode");
return this;
}
public Builder ismanaged(Boolean ismanaged) {
this.ismanaged = ismanaged;
this.changedFields = changedFields.add("ismanaged");
return this;
}
public Builder displaystringid(String displaystringid) {
this.displaystringid = displaystringid;
this.changedFields = changedFields.add("displaystringid");
return this;
}
public Builder _modifiedonbehalfby_value(String _modifiedonbehalfby_value) {
this._modifiedonbehalfby_value = _modifiedonbehalfby_value;
this.changedFields = changedFields.add("_modifiedonbehalfby_value");
return this;
}
public Builder createdon(OffsetDateTime createdon) {
this.createdon = createdon;
this.changedFields = changedFields.add("createdon");
return this;
}
public Builder customcomment(String customcomment) {
this.customcomment = customcomment;
this.changedFields = changedFields.add("customcomment");
return this;
}
public Builder displaystringidunique(String displaystringidunique) {
this.displaystringidunique = displaystringidunique;
this.changedFields = changedFields.add("displaystringidunique");
return this;
}
public Builder formatparameters(Integer formatparameters) {
this.formatparameters = formatparameters;
this.changedFields = changedFields.add("formatparameters");
return this;
}
public Builder _createdonbehalfby_value(String _createdonbehalfby_value) {
this._createdonbehalfby_value = _createdonbehalfby_value;
this.changedFields = changedFields.add("_createdonbehalfby_value");
return this;
}
public Builder publisheddisplaystring(String publisheddisplaystring) {
this.publisheddisplaystring = publisheddisplaystring;
this.changedFields = changedFields.add("publisheddisplaystring");
return this;
}
public Builder versionnumber(Long versionnumber) {
this.versionnumber = versionnumber;
this.changedFields = changedFields.add("versionnumber");
return this;
}
public Builder overwritetime(OffsetDateTime overwritetime) {
this.overwritetime = overwritetime;
this.changedFields = changedFields.add("overwritetime");
return this;
}
public Builder _createdby_value(String _createdby_value) {
this._createdby_value = _createdby_value;
this.changedFields = changedFields.add("_createdby_value");
return this;
}
public Builder displaystringkey(String displaystringkey) {
this.displaystringkey = displaystringkey;
this.changedFields = changedFields.add("displaystringkey");
return this;
}
public Builder _modifiedby_value(String _modifiedby_value) {
this._modifiedby_value = _modifiedby_value;
this.changedFields = changedFields.add("_modifiedby_value");
return this;
}
public Builder solutionid(String solutionid) {
this.solutionid = solutionid;
this.changedFields = changedFields.add("solutionid");
return this;
}
public Displaystring build() {
Displaystring _x = new Displaystring();
_x.contextPath = null;
_x.changedFields = changedFields;
_x.unmappedFields = new UnmappedFields();
_x.odataType = "Microsoft.Dynamics.CRM.displaystring";
_x.customdisplaystring = customdisplaystring;
_x.modifiedon = modifiedon;
_x._organizationid_value = _organizationid_value;
_x.componentstate = componentstate;
_x.languagecode = languagecode;
_x.ismanaged = ismanaged;
_x.displaystringid = displaystringid;
_x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
_x.createdon = createdon;
_x.customcomment = customcomment;
_x.displaystringidunique = displaystringidunique;
_x.formatparameters = formatparameters;
_x._createdonbehalfby_value = _createdonbehalfby_value;
_x.publisheddisplaystring = publisheddisplaystring;
_x.versionnumber = versionnumber;
_x.overwritetime = overwritetime;
_x._createdby_value = _createdby_value;
_x.displaystringkey = displaystringkey;
_x._modifiedby_value = _modifiedby_value;
_x.solutionid = solutionid;
return _x;
}
}
@Override
@JsonIgnore
public ChangedFields getChangedFields() {
return changedFields;
}
@Override
public void postInject(boolean addKeysToContextPath) {
if (addKeysToContextPath && displaystringid != null) {
contextPath = contextPath.clearQueries().addKeys(new NameValue(displaystringid.toString()));
}
}
@Property(name="customdisplaystring")
@JsonIgnore
public Optional getCustomdisplaystring() {
return Optional.ofNullable(customdisplaystring);
}
public Displaystring withCustomdisplaystring(String customdisplaystring) {
Checks.checkIsAscii(customdisplaystring);
Displaystring _x = _copy();
_x.changedFields = changedFields.add("customdisplaystring");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.customdisplaystring = customdisplaystring;
return _x;
}
@Property(name="modifiedon")
@JsonIgnore
public Optional getModifiedon() {
return Optional.ofNullable(modifiedon);
}
public Displaystring withModifiedon(OffsetDateTime modifiedon) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("modifiedon");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.modifiedon = modifiedon;
return _x;
}
@Property(name="_organizationid_value")
@JsonIgnore
public Optional get_organizationid_value() {
return Optional.ofNullable(_organizationid_value);
}
public Displaystring with_organizationid_value(String _organizationid_value) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("_organizationid_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x._organizationid_value = _organizationid_value;
return _x;
}
@Property(name="componentstate")
@JsonIgnore
public Optional getComponentstate() {
return Optional.ofNullable(componentstate);
}
public Displaystring withComponentstate(Integer componentstate) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("componentstate");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.componentstate = componentstate;
return _x;
}
@Property(name="languagecode")
@JsonIgnore
public Optional getLanguagecode() {
return Optional.ofNullable(languagecode);
}
public Displaystring withLanguagecode(Integer languagecode) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("languagecode");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.languagecode = languagecode;
return _x;
}
@Property(name="ismanaged")
@JsonIgnore
public Optional getIsmanaged() {
return Optional.ofNullable(ismanaged);
}
public Displaystring withIsmanaged(Boolean ismanaged) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("ismanaged");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.ismanaged = ismanaged;
return _x;
}
@Property(name="displaystringid")
@JsonIgnore
public Optional getDisplaystringid() {
return Optional.ofNullable(displaystringid);
}
public Displaystring withDisplaystringid(String displaystringid) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("displaystringid");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.displaystringid = displaystringid;
return _x;
}
@Property(name="_modifiedonbehalfby_value")
@JsonIgnore
public Optional get_modifiedonbehalfby_value() {
return Optional.ofNullable(_modifiedonbehalfby_value);
}
public Displaystring with_modifiedonbehalfby_value(String _modifiedonbehalfby_value) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("_modifiedonbehalfby_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
return _x;
}
@Property(name="createdon")
@JsonIgnore
public Optional getCreatedon() {
return Optional.ofNullable(createdon);
}
public Displaystring withCreatedon(OffsetDateTime createdon) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("createdon");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.createdon = createdon;
return _x;
}
@Property(name="customcomment")
@JsonIgnore
public Optional getCustomcomment() {
return Optional.ofNullable(customcomment);
}
public Displaystring withCustomcomment(String customcomment) {
Checks.checkIsAscii(customcomment);
Displaystring _x = _copy();
_x.changedFields = changedFields.add("customcomment");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.customcomment = customcomment;
return _x;
}
@Property(name="displaystringidunique")
@JsonIgnore
public Optional getDisplaystringidunique() {
return Optional.ofNullable(displaystringidunique);
}
public Displaystring withDisplaystringidunique(String displaystringidunique) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("displaystringidunique");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.displaystringidunique = displaystringidunique;
return _x;
}
@Property(name="formatparameters")
@JsonIgnore
public Optional getFormatparameters() {
return Optional.ofNullable(formatparameters);
}
public Displaystring withFormatparameters(Integer formatparameters) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("formatparameters");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.formatparameters = formatparameters;
return _x;
}
@Property(name="_createdonbehalfby_value")
@JsonIgnore
public Optional get_createdonbehalfby_value() {
return Optional.ofNullable(_createdonbehalfby_value);
}
public Displaystring with_createdonbehalfby_value(String _createdonbehalfby_value) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("_createdonbehalfby_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x._createdonbehalfby_value = _createdonbehalfby_value;
return _x;
}
@Property(name="publisheddisplaystring")
@JsonIgnore
public Optional getPublisheddisplaystring() {
return Optional.ofNullable(publisheddisplaystring);
}
public Displaystring withPublisheddisplaystring(String publisheddisplaystring) {
Checks.checkIsAscii(publisheddisplaystring);
Displaystring _x = _copy();
_x.changedFields = changedFields.add("publisheddisplaystring");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.publisheddisplaystring = publisheddisplaystring;
return _x;
}
@Property(name="versionnumber")
@JsonIgnore
public Optional getVersionnumber() {
return Optional.ofNullable(versionnumber);
}
public Displaystring withVersionnumber(Long versionnumber) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("versionnumber");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.versionnumber = versionnumber;
return _x;
}
@Property(name="overwritetime")
@JsonIgnore
public Optional getOverwritetime() {
return Optional.ofNullable(overwritetime);
}
public Displaystring withOverwritetime(OffsetDateTime overwritetime) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("overwritetime");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.overwritetime = overwritetime;
return _x;
}
@Property(name="_createdby_value")
@JsonIgnore
public Optional get_createdby_value() {
return Optional.ofNullable(_createdby_value);
}
public Displaystring with_createdby_value(String _createdby_value) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("_createdby_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x._createdby_value = _createdby_value;
return _x;
}
@Property(name="displaystringkey")
@JsonIgnore
public Optional getDisplaystringkey() {
return Optional.ofNullable(displaystringkey);
}
public Displaystring withDisplaystringkey(String displaystringkey) {
Checks.checkIsAscii(displaystringkey);
Displaystring _x = _copy();
_x.changedFields = changedFields.add("displaystringkey");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.displaystringkey = displaystringkey;
return _x;
}
@Property(name="_modifiedby_value")
@JsonIgnore
public Optional get_modifiedby_value() {
return Optional.ofNullable(_modifiedby_value);
}
public Displaystring with_modifiedby_value(String _modifiedby_value) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("_modifiedby_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x._modifiedby_value = _modifiedby_value;
return _x;
}
@Property(name="solutionid")
@JsonIgnore
public Optional getSolutionid() {
return Optional.ofNullable(solutionid);
}
public Displaystring withSolutionid(String solutionid) {
Displaystring _x = _copy();
_x.changedFields = changedFields.add("solutionid");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.displaystring");
_x.solutionid = solutionid;
return _x;
}
@NavigationProperty(name="modifiedonbehalfby")
@JsonIgnore
public SystemuserRequest getModifiedonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("modifiedonbehalfby"));
}
@NavigationProperty(name="createdby")
@JsonIgnore
public SystemuserRequest getCreatedby() {
return new SystemuserRequest(contextPath.addSegment("createdby"));
}
@NavigationProperty(name="organizationid")
@JsonIgnore
public OrganizationRequest getOrganizationid() {
return new OrganizationRequest(contextPath.addSegment("organizationid"));
}
@NavigationProperty(name="DisplayString_AsyncOperations")
@JsonIgnore
public AsyncoperationCollectionRequest getDisplayString_AsyncOperations() {
return new AsyncoperationCollectionRequest(
contextPath.addSegment("DisplayString_AsyncOperations"));
}
@NavigationProperty(name="createdonbehalfby")
@JsonIgnore
public SystemuserRequest getCreatedonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("createdonbehalfby"));
}
@NavigationProperty(name="DisplayString_BulkDeleteFailures")
@JsonIgnore
public BulkdeletefailureCollectionRequest getDisplayString_BulkDeleteFailures() {
return new BulkdeletefailureCollectionRequest(
contextPath.addSegment("DisplayString_BulkDeleteFailures"));
}
@NavigationProperty(name="modifiedby")
@JsonIgnore
public SystemuserRequest getModifiedby() {
return new SystemuserRequest(contextPath.addSegment("modifiedby"));
}
@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 Displaystring patch() {
RequestHelper.patch(this, contextPath, RequestOptions.EMPTY);
Displaystring _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 Displaystring put() {
RequestHelper.put(this, contextPath, RequestOptions.EMPTY);
Displaystring _x = _copy();
_x.changedFields = null;
return _x;
}
private Displaystring _copy() {
Displaystring _x = new Displaystring();
_x.contextPath = contextPath;
_x.changedFields = changedFields;
_x.unmappedFields = unmappedFields;
_x.odataType = odataType;
_x.customdisplaystring = customdisplaystring;
_x.modifiedon = modifiedon;
_x._organizationid_value = _organizationid_value;
_x.componentstate = componentstate;
_x.languagecode = languagecode;
_x.ismanaged = ismanaged;
_x.displaystringid = displaystringid;
_x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
_x.createdon = createdon;
_x.customcomment = customcomment;
_x.displaystringidunique = displaystringidunique;
_x.formatparameters = formatparameters;
_x._createdonbehalfby_value = _createdonbehalfby_value;
_x.publisheddisplaystring = publisheddisplaystring;
_x.versionnumber = versionnumber;
_x.overwritetime = overwritetime;
_x._createdby_value = _createdby_value;
_x.displaystringkey = displaystringkey;
_x._modifiedby_value = _modifiedby_value;
_x.solutionid = solutionid;
return _x;
}
@Override
public String toString() {
StringBuilder b = new StringBuilder();
b.append("Displaystring[");
b.append("customdisplaystring=");
b.append(this.customdisplaystring);
b.append(", ");
b.append("modifiedon=");
b.append(this.modifiedon);
b.append(", ");
b.append("_organizationid_value=");
b.append(this._organizationid_value);
b.append(", ");
b.append("componentstate=");
b.append(this.componentstate);
b.append(", ");
b.append("languagecode=");
b.append(this.languagecode);
b.append(", ");
b.append("ismanaged=");
b.append(this.ismanaged);
b.append(", ");
b.append("displaystringid=");
b.append(this.displaystringid);
b.append(", ");
b.append("_modifiedonbehalfby_value=");
b.append(this._modifiedonbehalfby_value);
b.append(", ");
b.append("createdon=");
b.append(this.createdon);
b.append(", ");
b.append("customcomment=");
b.append(this.customcomment);
b.append(", ");
b.append("displaystringidunique=");
b.append(this.displaystringidunique);
b.append(", ");
b.append("formatparameters=");
b.append(this.formatparameters);
b.append(", ");
b.append("_createdonbehalfby_value=");
b.append(this._createdonbehalfby_value);
b.append(", ");
b.append("publisheddisplaystring=");
b.append(this.publisheddisplaystring);
b.append(", ");
b.append("versionnumber=");
b.append(this.versionnumber);
b.append(", ");
b.append("overwritetime=");
b.append(this.overwritetime);
b.append(", ");
b.append("_createdby_value=");
b.append(this._createdby_value);
b.append(", ");
b.append("displaystringkey=");
b.append(this.displaystringkey);
b.append(", ");
b.append("_modifiedby_value=");
b.append(this._modifiedby_value);
b.append(", ");
b.append("solutionid=");
b.append(this.solutionid);
b.append("]");
b.append(",unmappedFields=");
b.append(unmappedFields);
b.append(",odataType=");
b.append(odataType);
return b.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy