microsoft.dynamics.crm.entity.Msdyn_componentlayer 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.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;
@JsonPropertyOrder({
"@odata.type",
"msdyn_children",
"msdyn_name",
"msdyn_solutioncomponentname",
"msdyn_changes",
"msdyn_publishername",
"msdyn_overwritetime",
"msdyn_solutionname",
"msdyn_componentjson",
"msdyn_componentlayerid",
"msdyn_componentid",
"msdyn_order"})
@JsonInclude(Include.NON_NULL)
public class Msdyn_componentlayer extends Crmbaseentity implements ODataEntityType {
@Override
public String odataTypeName() {
return "Microsoft.Dynamics.CRM.msdyn_componentlayer";
}
@JsonProperty("msdyn_children")
protected String msdyn_children;
@JsonProperty("msdyn_name")
protected String msdyn_name;
@JsonProperty("msdyn_solutioncomponentname")
protected String msdyn_solutioncomponentname;
@JsonProperty("msdyn_changes")
protected String msdyn_changes;
@JsonProperty("msdyn_publishername")
protected String msdyn_publishername;
@JsonProperty("msdyn_overwritetime")
protected OffsetDateTime msdyn_overwritetime;
@JsonProperty("msdyn_solutionname")
protected String msdyn_solutionname;
@JsonProperty("msdyn_componentjson")
protected String msdyn_componentjson;
@JsonProperty("msdyn_componentlayerid")
protected String msdyn_componentlayerid;
@JsonProperty("msdyn_componentid")
protected String msdyn_componentid;
@JsonProperty("msdyn_order")
protected Integer msdyn_order;
protected Msdyn_componentlayer() {
super();
}
/**
* Returns a builder which is used to create a new
* instance of this class (given that this class is immutable).
*
* @return a new Builder for this class
*/
// Suffix used on builder factory method to differentiate the method
// from static builder methods on superclasses
public static Builder builderMsdyn_componentlayer() {
return new Builder();
}
public static final class Builder {
private String msdyn_children;
private String msdyn_name;
private String msdyn_solutioncomponentname;
private String msdyn_changes;
private String msdyn_publishername;
private OffsetDateTime msdyn_overwritetime;
private String msdyn_solutionname;
private String msdyn_componentjson;
private String msdyn_componentlayerid;
private String msdyn_componentid;
private Integer msdyn_order;
private ChangedFields changedFields = new ChangedFields();
Builder() {
// prevent instantiation
}
public Builder msdyn_children(String msdyn_children) {
this.msdyn_children = msdyn_children;
this.changedFields = changedFields.add("msdyn_children");
return this;
}
public Builder msdyn_name(String msdyn_name) {
this.msdyn_name = msdyn_name;
this.changedFields = changedFields.add("msdyn_name");
return this;
}
public Builder msdyn_solutioncomponentname(String msdyn_solutioncomponentname) {
this.msdyn_solutioncomponentname = msdyn_solutioncomponentname;
this.changedFields = changedFields.add("msdyn_solutioncomponentname");
return this;
}
public Builder msdyn_changes(String msdyn_changes) {
this.msdyn_changes = msdyn_changes;
this.changedFields = changedFields.add("msdyn_changes");
return this;
}
public Builder msdyn_publishername(String msdyn_publishername) {
this.msdyn_publishername = msdyn_publishername;
this.changedFields = changedFields.add("msdyn_publishername");
return this;
}
public Builder msdyn_overwritetime(OffsetDateTime msdyn_overwritetime) {
this.msdyn_overwritetime = msdyn_overwritetime;
this.changedFields = changedFields.add("msdyn_overwritetime");
return this;
}
public Builder msdyn_solutionname(String msdyn_solutionname) {
this.msdyn_solutionname = msdyn_solutionname;
this.changedFields = changedFields.add("msdyn_solutionname");
return this;
}
public Builder msdyn_componentjson(String msdyn_componentjson) {
this.msdyn_componentjson = msdyn_componentjson;
this.changedFields = changedFields.add("msdyn_componentjson");
return this;
}
public Builder msdyn_componentlayerid(String msdyn_componentlayerid) {
this.msdyn_componentlayerid = msdyn_componentlayerid;
this.changedFields = changedFields.add("msdyn_componentlayerid");
return this;
}
public Builder msdyn_componentid(String msdyn_componentid) {
this.msdyn_componentid = msdyn_componentid;
this.changedFields = changedFields.add("msdyn_componentid");
return this;
}
public Builder msdyn_order(Integer msdyn_order) {
this.msdyn_order = msdyn_order;
this.changedFields = changedFields.add("msdyn_order");
return this;
}
public Msdyn_componentlayer build() {
Msdyn_componentlayer _x = new Msdyn_componentlayer();
_x.contextPath = null;
_x.changedFields = changedFields;
_x.unmappedFields = new UnmappedFields();
_x.odataType = "Microsoft.Dynamics.CRM.msdyn_componentlayer";
_x.msdyn_children = msdyn_children;
_x.msdyn_name = msdyn_name;
_x.msdyn_solutioncomponentname = msdyn_solutioncomponentname;
_x.msdyn_changes = msdyn_changes;
_x.msdyn_publishername = msdyn_publishername;
_x.msdyn_overwritetime = msdyn_overwritetime;
_x.msdyn_solutionname = msdyn_solutionname;
_x.msdyn_componentjson = msdyn_componentjson;
_x.msdyn_componentlayerid = msdyn_componentlayerid;
_x.msdyn_componentid = msdyn_componentid;
_x.msdyn_order = msdyn_order;
return _x;
}
}
@Override
@JsonIgnore
public ChangedFields getChangedFields() {
return changedFields;
}
@Override
public void postInject(boolean addKeysToContextPath) {
if (addKeysToContextPath && msdyn_componentlayerid != null) {
contextPath = contextPath.clearQueries().addKeys(new NameValue(msdyn_componentlayerid.toString()));
}
}
@Property(name="msdyn_children")
@JsonIgnore
public Optional getMsdyn_children() {
return Optional.ofNullable(msdyn_children);
}
public Msdyn_componentlayer withMsdyn_children(String msdyn_children) {
Checks.checkIsAscii(msdyn_children);
Msdyn_componentlayer _x = _copy();
_x.changedFields = changedFields.add("msdyn_children");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_componentlayer");
_x.msdyn_children = msdyn_children;
return _x;
}
@Property(name="msdyn_name")
@JsonIgnore
public Optional getMsdyn_name() {
return Optional.ofNullable(msdyn_name);
}
public Msdyn_componentlayer withMsdyn_name(String msdyn_name) {
Checks.checkIsAscii(msdyn_name);
Msdyn_componentlayer _x = _copy();
_x.changedFields = changedFields.add("msdyn_name");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_componentlayer");
_x.msdyn_name = msdyn_name;
return _x;
}
@Property(name="msdyn_solutioncomponentname")
@JsonIgnore
public Optional getMsdyn_solutioncomponentname() {
return Optional.ofNullable(msdyn_solutioncomponentname);
}
public Msdyn_componentlayer withMsdyn_solutioncomponentname(String msdyn_solutioncomponentname) {
Checks.checkIsAscii(msdyn_solutioncomponentname);
Msdyn_componentlayer _x = _copy();
_x.changedFields = changedFields.add("msdyn_solutioncomponentname");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_componentlayer");
_x.msdyn_solutioncomponentname = msdyn_solutioncomponentname;
return _x;
}
@Property(name="msdyn_changes")
@JsonIgnore
public Optional getMsdyn_changes() {
return Optional.ofNullable(msdyn_changes);
}
public Msdyn_componentlayer withMsdyn_changes(String msdyn_changes) {
Checks.checkIsAscii(msdyn_changes);
Msdyn_componentlayer _x = _copy();
_x.changedFields = changedFields.add("msdyn_changes");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_componentlayer");
_x.msdyn_changes = msdyn_changes;
return _x;
}
@Property(name="msdyn_publishername")
@JsonIgnore
public Optional getMsdyn_publishername() {
return Optional.ofNullable(msdyn_publishername);
}
public Msdyn_componentlayer withMsdyn_publishername(String msdyn_publishername) {
Checks.checkIsAscii(msdyn_publishername);
Msdyn_componentlayer _x = _copy();
_x.changedFields = changedFields.add("msdyn_publishername");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_componentlayer");
_x.msdyn_publishername = msdyn_publishername;
return _x;
}
@Property(name="msdyn_overwritetime")
@JsonIgnore
public Optional getMsdyn_overwritetime() {
return Optional.ofNullable(msdyn_overwritetime);
}
public Msdyn_componentlayer withMsdyn_overwritetime(OffsetDateTime msdyn_overwritetime) {
Msdyn_componentlayer _x = _copy();
_x.changedFields = changedFields.add("msdyn_overwritetime");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_componentlayer");
_x.msdyn_overwritetime = msdyn_overwritetime;
return _x;
}
@Property(name="msdyn_solutionname")
@JsonIgnore
public Optional getMsdyn_solutionname() {
return Optional.ofNullable(msdyn_solutionname);
}
public Msdyn_componentlayer withMsdyn_solutionname(String msdyn_solutionname) {
Checks.checkIsAscii(msdyn_solutionname);
Msdyn_componentlayer _x = _copy();
_x.changedFields = changedFields.add("msdyn_solutionname");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_componentlayer");
_x.msdyn_solutionname = msdyn_solutionname;
return _x;
}
@Property(name="msdyn_componentjson")
@JsonIgnore
public Optional getMsdyn_componentjson() {
return Optional.ofNullable(msdyn_componentjson);
}
public Msdyn_componentlayer withMsdyn_componentjson(String msdyn_componentjson) {
Checks.checkIsAscii(msdyn_componentjson);
Msdyn_componentlayer _x = _copy();
_x.changedFields = changedFields.add("msdyn_componentjson");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_componentlayer");
_x.msdyn_componentjson = msdyn_componentjson;
return _x;
}
@Property(name="msdyn_componentlayerid")
@JsonIgnore
public Optional getMsdyn_componentlayerid() {
return Optional.ofNullable(msdyn_componentlayerid);
}
public Msdyn_componentlayer withMsdyn_componentlayerid(String msdyn_componentlayerid) {
Msdyn_componentlayer _x = _copy();
_x.changedFields = changedFields.add("msdyn_componentlayerid");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_componentlayer");
_x.msdyn_componentlayerid = msdyn_componentlayerid;
return _x;
}
@Property(name="msdyn_componentid")
@JsonIgnore
public Optional getMsdyn_componentid() {
return Optional.ofNullable(msdyn_componentid);
}
public Msdyn_componentlayer withMsdyn_componentid(String msdyn_componentid) {
Checks.checkIsAscii(msdyn_componentid);
Msdyn_componentlayer _x = _copy();
_x.changedFields = changedFields.add("msdyn_componentid");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_componentlayer");
_x.msdyn_componentid = msdyn_componentid;
return _x;
}
@Property(name="msdyn_order")
@JsonIgnore
public Optional getMsdyn_order() {
return Optional.ofNullable(msdyn_order);
}
public Msdyn_componentlayer withMsdyn_order(Integer msdyn_order) {
Msdyn_componentlayer _x = _copy();
_x.changedFields = changedFields.add("msdyn_order");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.msdyn_componentlayer");
_x.msdyn_order = msdyn_order;
return _x;
}
@JsonAnySetter
private void setUnmappedField(String name, Object value) {
if (unmappedFields == null) {
unmappedFields = new UnmappedFields();
}
unmappedFields.put(name, value);
}
@Override
@JsonIgnore
public UnmappedFields getUnmappedFields() {
return unmappedFields == null ? new UnmappedFields() : unmappedFields;
}
/**
* Submits only changed fields for update and returns an
* immutable copy of {@code this} with changed fields reset.
*
* @return a copy of {@code this} with changed fields reset
* @throws ClientException if HTTP response is not as expected
*/
public Msdyn_componentlayer patch() {
RequestHelper.patch(this, contextPath, RequestOptions.EMPTY);
Msdyn_componentlayer _x = _copy();
_x.changedFields = null;
return _x;
}
/**
* Submits all fields for update and returns an immutable copy of {@code this}
* with changed fields reset (they were ignored anyway).
*
* @return a copy of {@code this} with changed fields reset
* @throws ClientException if HTTP response is not as expected
*/
public Msdyn_componentlayer put() {
RequestHelper.put(this, contextPath, RequestOptions.EMPTY);
Msdyn_componentlayer _x = _copy();
_x.changedFields = null;
return _x;
}
private Msdyn_componentlayer _copy() {
Msdyn_componentlayer _x = new Msdyn_componentlayer();
_x.contextPath = contextPath;
_x.changedFields = changedFields;
_x.unmappedFields = unmappedFields;
_x.odataType = odataType;
_x.msdyn_children = msdyn_children;
_x.msdyn_name = msdyn_name;
_x.msdyn_solutioncomponentname = msdyn_solutioncomponentname;
_x.msdyn_changes = msdyn_changes;
_x.msdyn_publishername = msdyn_publishername;
_x.msdyn_overwritetime = msdyn_overwritetime;
_x.msdyn_solutionname = msdyn_solutionname;
_x.msdyn_componentjson = msdyn_componentjson;
_x.msdyn_componentlayerid = msdyn_componentlayerid;
_x.msdyn_componentid = msdyn_componentid;
_x.msdyn_order = msdyn_order;
return _x;
}
@Override
public String toString() {
StringBuilder b = new StringBuilder();
b.append("Msdyn_componentlayer[");
b.append("msdyn_children=");
b.append(this.msdyn_children);
b.append(", ");
b.append("msdyn_name=");
b.append(this.msdyn_name);
b.append(", ");
b.append("msdyn_solutioncomponentname=");
b.append(this.msdyn_solutioncomponentname);
b.append(", ");
b.append("msdyn_changes=");
b.append(this.msdyn_changes);
b.append(", ");
b.append("msdyn_publishername=");
b.append(this.msdyn_publishername);
b.append(", ");
b.append("msdyn_overwritetime=");
b.append(this.msdyn_overwritetime);
b.append(", ");
b.append("msdyn_solutionname=");
b.append(this.msdyn_solutionname);
b.append(", ");
b.append("msdyn_componentjson=");
b.append(this.msdyn_componentjson);
b.append(", ");
b.append("msdyn_componentlayerid=");
b.append(this.msdyn_componentlayerid);
b.append(", ");
b.append("msdyn_componentid=");
b.append(this.msdyn_componentid);
b.append(", ");
b.append("msdyn_order=");
b.append(this.msdyn_order);
b.append("]");
b.append(",unmappedFields=");
b.append(unmappedFields);
b.append(",odataType=");
b.append(odataType);
return b.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy