microsoft.dynamics.crm.entity.Sla 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
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.Integer;
import java.lang.Long;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.Optional;
import java.util.UUID;
import microsoft.dynamics.crm.entity.collection.request.AccountCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.ActivitypointerCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.AnnotationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.AppointmentCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.AsyncoperationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BulkdeletefailureCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.ContactCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.EmailCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.FaxCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.LetterCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.PhonecallCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.ProcesssessionCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SlaitemCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SocialactivityCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SyncerrorCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.TaskCollectionRequest;
import microsoft.dynamics.crm.entity.request.BusinessunitRequest;
import microsoft.dynamics.crm.entity.request.CalendarRequest;
import microsoft.dynamics.crm.entity.request.PrincipalRequest;
import microsoft.dynamics.crm.entity.request.SystemuserRequest;
import microsoft.dynamics.crm.entity.request.TeamRequest;
import microsoft.dynamics.crm.entity.request.TransactioncurrencyRequest;
import microsoft.dynamics.crm.entity.request.WorkflowRequest;
@JsonPropertyOrder({
"@odata.type",
"solutionid",
"_modifiedonbehalfby_value",
"changedattributelist",
"_businesshoursid_value",
"_owningbusinessunit_value",
"overwritetime",
"_createdonbehalfby_value",
"isdefault",
"modifiedon",
"slaid",
"_transactioncurrencyid_value",
"_ownerid_value",
"slaversion",
"objecttypecode",
"_modifiedby_value",
"slatype",
"versionnumber",
"exchangerate",
"ismanaged",
"statecode",
"applicablefrompicklist",
"_owninguser_value",
"applicablefrom",
"name",
"description",
"_workflowid_value",
"primaryentityotc",
"_owningteam_value",
"statuscode",
"allowpauseresume",
"createdon",
"slaidunique",
"_createdby_value",
"componentstate"})
@JsonInclude(Include.NON_NULL)
public class Sla extends Crmbaseentity implements ODataEntityType {
@Override
public String odataTypeName() {
return "Microsoft.Dynamics.CRM.sla";
}
@JsonProperty("solutionid")
protected UUID solutionid;
@JsonProperty("_modifiedonbehalfby_value")
protected UUID _modifiedonbehalfby_value;
@JsonProperty("changedattributelist")
protected String changedattributelist;
@JsonProperty("_businesshoursid_value")
protected UUID _businesshoursid_value;
@JsonProperty("_owningbusinessunit_value")
protected UUID _owningbusinessunit_value;
@JsonProperty("overwritetime")
protected OffsetDateTime overwritetime;
@JsonProperty("_createdonbehalfby_value")
protected UUID _createdonbehalfby_value;
@JsonProperty("isdefault")
protected Boolean isdefault;
@JsonProperty("modifiedon")
protected OffsetDateTime modifiedon;
@JsonProperty("slaid")
protected UUID slaid;
@JsonProperty("_transactioncurrencyid_value")
protected UUID _transactioncurrencyid_value;
@JsonProperty("_ownerid_value")
protected UUID _ownerid_value;
@JsonProperty("slaversion")
protected Integer slaversion;
@JsonProperty("objecttypecode")
protected Integer objecttypecode;
@JsonProperty("_modifiedby_value")
protected UUID _modifiedby_value;
@JsonProperty("slatype")
protected Integer slatype;
@JsonProperty("versionnumber")
protected Long versionnumber;
@JsonProperty("exchangerate")
protected BigDecimal exchangerate;
@JsonProperty("ismanaged")
protected Boolean ismanaged;
@JsonProperty("statecode")
protected Integer statecode;
@JsonProperty("applicablefrompicklist")
protected Integer applicablefrompicklist;
@JsonProperty("_owninguser_value")
protected UUID _owninguser_value;
@JsonProperty("applicablefrom")
protected String applicablefrom;
@JsonProperty("name")
protected String name;
@JsonProperty("description")
protected String description;
@JsonProperty("_workflowid_value")
protected UUID _workflowid_value;
@JsonProperty("primaryentityotc")
protected Integer primaryentityotc;
@JsonProperty("_owningteam_value")
protected UUID _owningteam_value;
@JsonProperty("statuscode")
protected Integer statuscode;
@JsonProperty("allowpauseresume")
protected Boolean allowpauseresume;
@JsonProperty("createdon")
protected OffsetDateTime createdon;
@JsonProperty("slaidunique")
protected UUID slaidunique;
@JsonProperty("_createdby_value")
protected UUID _createdby_value;
@JsonProperty("componentstate")
protected Integer componentstate;
protected Sla() {
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 builderSla() {
return new Builder();
}
public static final class Builder {
private UUID solutionid;
private UUID _modifiedonbehalfby_value;
private String changedattributelist;
private UUID _businesshoursid_value;
private UUID _owningbusinessunit_value;
private OffsetDateTime overwritetime;
private UUID _createdonbehalfby_value;
private Boolean isdefault;
private OffsetDateTime modifiedon;
private UUID slaid;
private UUID _transactioncurrencyid_value;
private UUID _ownerid_value;
private Integer slaversion;
private Integer objecttypecode;
private UUID _modifiedby_value;
private Integer slatype;
private Long versionnumber;
private BigDecimal exchangerate;
private Boolean ismanaged;
private Integer statecode;
private Integer applicablefrompicklist;
private UUID _owninguser_value;
private String applicablefrom;
private String name;
private String description;
private UUID _workflowid_value;
private Integer primaryentityotc;
private UUID _owningteam_value;
private Integer statuscode;
private Boolean allowpauseresume;
private OffsetDateTime createdon;
private UUID slaidunique;
private UUID _createdby_value;
private Integer componentstate;
private ChangedFields changedFields = ChangedFields.EMPTY;
Builder() {
// prevent instantiation
}
public Builder solutionid(UUID solutionid) {
this.solutionid = solutionid;
this.changedFields = changedFields.add("solutionid");
return this;
}
public Builder _modifiedonbehalfby_value(UUID _modifiedonbehalfby_value) {
this._modifiedonbehalfby_value = _modifiedonbehalfby_value;
this.changedFields = changedFields.add("_modifiedonbehalfby_value");
return this;
}
public Builder changedattributelist(String changedattributelist) {
this.changedattributelist = changedattributelist;
this.changedFields = changedFields.add("changedattributelist");
return this;
}
public Builder _businesshoursid_value(UUID _businesshoursid_value) {
this._businesshoursid_value = _businesshoursid_value;
this.changedFields = changedFields.add("_businesshoursid_value");
return this;
}
public Builder _owningbusinessunit_value(UUID _owningbusinessunit_value) {
this._owningbusinessunit_value = _owningbusinessunit_value;
this.changedFields = changedFields.add("_owningbusinessunit_value");
return this;
}
public Builder overwritetime(OffsetDateTime overwritetime) {
this.overwritetime = overwritetime;
this.changedFields = changedFields.add("overwritetime");
return this;
}
public Builder _createdonbehalfby_value(UUID _createdonbehalfby_value) {
this._createdonbehalfby_value = _createdonbehalfby_value;
this.changedFields = changedFields.add("_createdonbehalfby_value");
return this;
}
public Builder isdefault(Boolean isdefault) {
this.isdefault = isdefault;
this.changedFields = changedFields.add("isdefault");
return this;
}
public Builder modifiedon(OffsetDateTime modifiedon) {
this.modifiedon = modifiedon;
this.changedFields = changedFields.add("modifiedon");
return this;
}
public Builder slaid(UUID slaid) {
this.slaid = slaid;
this.changedFields = changedFields.add("slaid");
return this;
}
public Builder _transactioncurrencyid_value(UUID _transactioncurrencyid_value) {
this._transactioncurrencyid_value = _transactioncurrencyid_value;
this.changedFields = changedFields.add("_transactioncurrencyid_value");
return this;
}
public Builder _ownerid_value(UUID _ownerid_value) {
this._ownerid_value = _ownerid_value;
this.changedFields = changedFields.add("_ownerid_value");
return this;
}
public Builder slaversion(Integer slaversion) {
this.slaversion = slaversion;
this.changedFields = changedFields.add("slaversion");
return this;
}
public Builder objecttypecode(Integer objecttypecode) {
this.objecttypecode = objecttypecode;
this.changedFields = changedFields.add("objecttypecode");
return this;
}
public Builder _modifiedby_value(UUID _modifiedby_value) {
this._modifiedby_value = _modifiedby_value;
this.changedFields = changedFields.add("_modifiedby_value");
return this;
}
public Builder slatype(Integer slatype) {
this.slatype = slatype;
this.changedFields = changedFields.add("slatype");
return this;
}
public Builder versionnumber(Long versionnumber) {
this.versionnumber = versionnumber;
this.changedFields = changedFields.add("versionnumber");
return this;
}
public Builder exchangerate(BigDecimal exchangerate) {
this.exchangerate = exchangerate;
this.changedFields = changedFields.add("exchangerate");
return this;
}
public Builder ismanaged(Boolean ismanaged) {
this.ismanaged = ismanaged;
this.changedFields = changedFields.add("ismanaged");
return this;
}
public Builder statecode(Integer statecode) {
this.statecode = statecode;
this.changedFields = changedFields.add("statecode");
return this;
}
public Builder applicablefrompicklist(Integer applicablefrompicklist) {
this.applicablefrompicklist = applicablefrompicklist;
this.changedFields = changedFields.add("applicablefrompicklist");
return this;
}
public Builder _owninguser_value(UUID _owninguser_value) {
this._owninguser_value = _owninguser_value;
this.changedFields = changedFields.add("_owninguser_value");
return this;
}
public Builder applicablefrom(String applicablefrom) {
this.applicablefrom = applicablefrom;
this.changedFields = changedFields.add("applicablefrom");
return this;
}
public Builder name(String name) {
this.name = name;
this.changedFields = changedFields.add("name");
return this;
}
public Builder description(String description) {
this.description = description;
this.changedFields = changedFields.add("description");
return this;
}
public Builder _workflowid_value(UUID _workflowid_value) {
this._workflowid_value = _workflowid_value;
this.changedFields = changedFields.add("_workflowid_value");
return this;
}
public Builder primaryentityotc(Integer primaryentityotc) {
this.primaryentityotc = primaryentityotc;
this.changedFields = changedFields.add("primaryentityotc");
return this;
}
public Builder _owningteam_value(UUID _owningteam_value) {
this._owningteam_value = _owningteam_value;
this.changedFields = changedFields.add("_owningteam_value");
return this;
}
public Builder statuscode(Integer statuscode) {
this.statuscode = statuscode;
this.changedFields = changedFields.add("statuscode");
return this;
}
public Builder allowpauseresume(Boolean allowpauseresume) {
this.allowpauseresume = allowpauseresume;
this.changedFields = changedFields.add("allowpauseresume");
return this;
}
public Builder createdon(OffsetDateTime createdon) {
this.createdon = createdon;
this.changedFields = changedFields.add("createdon");
return this;
}
public Builder slaidunique(UUID slaidunique) {
this.slaidunique = slaidunique;
this.changedFields = changedFields.add("slaidunique");
return this;
}
public Builder _createdby_value(UUID _createdby_value) {
this._createdby_value = _createdby_value;
this.changedFields = changedFields.add("_createdby_value");
return this;
}
public Builder componentstate(Integer componentstate) {
this.componentstate = componentstate;
this.changedFields = changedFields.add("componentstate");
return this;
}
public Sla build() {
Sla _x = new Sla();
_x.contextPath = null;
_x.changedFields = changedFields;
_x.unmappedFields = new UnmappedFieldsImpl();
_x.odataType = "Microsoft.Dynamics.CRM.sla";
_x.solutionid = solutionid;
_x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
_x.changedattributelist = changedattributelist;
_x._businesshoursid_value = _businesshoursid_value;
_x._owningbusinessunit_value = _owningbusinessunit_value;
_x.overwritetime = overwritetime;
_x._createdonbehalfby_value = _createdonbehalfby_value;
_x.isdefault = isdefault;
_x.modifiedon = modifiedon;
_x.slaid = slaid;
_x._transactioncurrencyid_value = _transactioncurrencyid_value;
_x._ownerid_value = _ownerid_value;
_x.slaversion = slaversion;
_x.objecttypecode = objecttypecode;
_x._modifiedby_value = _modifiedby_value;
_x.slatype = slatype;
_x.versionnumber = versionnumber;
_x.exchangerate = exchangerate;
_x.ismanaged = ismanaged;
_x.statecode = statecode;
_x.applicablefrompicklist = applicablefrompicklist;
_x._owninguser_value = _owninguser_value;
_x.applicablefrom = applicablefrom;
_x.name = name;
_x.description = description;
_x._workflowid_value = _workflowid_value;
_x.primaryentityotc = primaryentityotc;
_x._owningteam_value = _owningteam_value;
_x.statuscode = statuscode;
_x.allowpauseresume = allowpauseresume;
_x.createdon = createdon;
_x.slaidunique = slaidunique;
_x._createdby_value = _createdby_value;
_x.componentstate = componentstate;
return _x;
}
}
@Override
@JsonIgnore
public ChangedFields getChangedFields() {
return changedFields;
}
@Override
public void postInject(boolean addKeysToContextPath) {
if (addKeysToContextPath && slaid != null) {
contextPath = contextPath.clearQueries().addKeys(new NameValue(slaid, UUID.class));
}
}
@Property(name="solutionid")
@JsonIgnore
public Optional getSolutionid() {
return Optional.ofNullable(solutionid);
}
public Sla withSolutionid(UUID solutionid) {
Sla _x = _copy();
_x.changedFields = changedFields.add("solutionid");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.solutionid = solutionid;
return _x;
}
@Property(name="_modifiedonbehalfby_value")
@JsonIgnore
public Optional get_modifiedonbehalfby_value() {
return Optional.ofNullable(_modifiedonbehalfby_value);
}
public Sla with_modifiedonbehalfby_value(UUID _modifiedonbehalfby_value) {
Sla _x = _copy();
_x.changedFields = changedFields.add("_modifiedonbehalfby_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
return _x;
}
@Property(name="changedattributelist")
@JsonIgnore
public Optional getChangedattributelist() {
return Optional.ofNullable(changedattributelist);
}
public Sla withChangedattributelist(String changedattributelist) {
Sla _x = _copy();
_x.changedFields = changedFields.add("changedattributelist");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.changedattributelist = changedattributelist;
return _x;
}
@Property(name="_businesshoursid_value")
@JsonIgnore
public Optional get_businesshoursid_value() {
return Optional.ofNullable(_businesshoursid_value);
}
public Sla with_businesshoursid_value(UUID _businesshoursid_value) {
Sla _x = _copy();
_x.changedFields = changedFields.add("_businesshoursid_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x._businesshoursid_value = _businesshoursid_value;
return _x;
}
@Property(name="_owningbusinessunit_value")
@JsonIgnore
public Optional get_owningbusinessunit_value() {
return Optional.ofNullable(_owningbusinessunit_value);
}
public Sla with_owningbusinessunit_value(UUID _owningbusinessunit_value) {
Sla _x = _copy();
_x.changedFields = changedFields.add("_owningbusinessunit_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x._owningbusinessunit_value = _owningbusinessunit_value;
return _x;
}
@Property(name="overwritetime")
@JsonIgnore
public Optional getOverwritetime() {
return Optional.ofNullable(overwritetime);
}
public Sla withOverwritetime(OffsetDateTime overwritetime) {
Sla _x = _copy();
_x.changedFields = changedFields.add("overwritetime");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.overwritetime = overwritetime;
return _x;
}
@Property(name="_createdonbehalfby_value")
@JsonIgnore
public Optional get_createdonbehalfby_value() {
return Optional.ofNullable(_createdonbehalfby_value);
}
public Sla with_createdonbehalfby_value(UUID _createdonbehalfby_value) {
Sla _x = _copy();
_x.changedFields = changedFields.add("_createdonbehalfby_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x._createdonbehalfby_value = _createdonbehalfby_value;
return _x;
}
@Property(name="isdefault")
@JsonIgnore
public Optional getIsdefault() {
return Optional.ofNullable(isdefault);
}
public Sla withIsdefault(Boolean isdefault) {
Sla _x = _copy();
_x.changedFields = changedFields.add("isdefault");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.isdefault = isdefault;
return _x;
}
@Property(name="modifiedon")
@JsonIgnore
public Optional getModifiedon() {
return Optional.ofNullable(modifiedon);
}
public Sla withModifiedon(OffsetDateTime modifiedon) {
Sla _x = _copy();
_x.changedFields = changedFields.add("modifiedon");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.modifiedon = modifiedon;
return _x;
}
@Property(name="slaid")
@JsonIgnore
public Optional getSlaid() {
return Optional.ofNullable(slaid);
}
public Sla withSlaid(UUID slaid) {
Sla _x = _copy();
_x.changedFields = changedFields.add("slaid");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.slaid = slaid;
return _x;
}
@Property(name="_transactioncurrencyid_value")
@JsonIgnore
public Optional get_transactioncurrencyid_value() {
return Optional.ofNullable(_transactioncurrencyid_value);
}
public Sla with_transactioncurrencyid_value(UUID _transactioncurrencyid_value) {
Sla _x = _copy();
_x.changedFields = changedFields.add("_transactioncurrencyid_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x._transactioncurrencyid_value = _transactioncurrencyid_value;
return _x;
}
@Property(name="_ownerid_value")
@JsonIgnore
public Optional get_ownerid_value() {
return Optional.ofNullable(_ownerid_value);
}
public Sla with_ownerid_value(UUID _ownerid_value) {
Sla _x = _copy();
_x.changedFields = changedFields.add("_ownerid_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x._ownerid_value = _ownerid_value;
return _x;
}
@Property(name="slaversion")
@JsonIgnore
public Optional getSlaversion() {
return Optional.ofNullable(slaversion);
}
public Sla withSlaversion(Integer slaversion) {
Sla _x = _copy();
_x.changedFields = changedFields.add("slaversion");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.slaversion = slaversion;
return _x;
}
@Property(name="objecttypecode")
@JsonIgnore
public Optional getObjecttypecode() {
return Optional.ofNullable(objecttypecode);
}
public Sla withObjecttypecode(Integer objecttypecode) {
Sla _x = _copy();
_x.changedFields = changedFields.add("objecttypecode");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.objecttypecode = objecttypecode;
return _x;
}
@Property(name="_modifiedby_value")
@JsonIgnore
public Optional get_modifiedby_value() {
return Optional.ofNullable(_modifiedby_value);
}
public Sla with_modifiedby_value(UUID _modifiedby_value) {
Sla _x = _copy();
_x.changedFields = changedFields.add("_modifiedby_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x._modifiedby_value = _modifiedby_value;
return _x;
}
@Property(name="slatype")
@JsonIgnore
public Optional getSlatype() {
return Optional.ofNullable(slatype);
}
public Sla withSlatype(Integer slatype) {
Sla _x = _copy();
_x.changedFields = changedFields.add("slatype");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.slatype = slatype;
return _x;
}
@Property(name="versionnumber")
@JsonIgnore
public Optional getVersionnumber() {
return Optional.ofNullable(versionnumber);
}
public Sla withVersionnumber(Long versionnumber) {
Sla _x = _copy();
_x.changedFields = changedFields.add("versionnumber");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.versionnumber = versionnumber;
return _x;
}
@Property(name="exchangerate")
@JsonIgnore
public Optional getExchangerate() {
return Optional.ofNullable(exchangerate);
}
public Sla withExchangerate(BigDecimal exchangerate) {
Sla _x = _copy();
_x.changedFields = changedFields.add("exchangerate");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.exchangerate = exchangerate;
return _x;
}
@Property(name="ismanaged")
@JsonIgnore
public Optional getIsmanaged() {
return Optional.ofNullable(ismanaged);
}
public Sla withIsmanaged(Boolean ismanaged) {
Sla _x = _copy();
_x.changedFields = changedFields.add("ismanaged");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.ismanaged = ismanaged;
return _x;
}
@Property(name="statecode")
@JsonIgnore
public Optional getStatecode() {
return Optional.ofNullable(statecode);
}
public Sla withStatecode(Integer statecode) {
Sla _x = _copy();
_x.changedFields = changedFields.add("statecode");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.statecode = statecode;
return _x;
}
@Property(name="applicablefrompicklist")
@JsonIgnore
public Optional getApplicablefrompicklist() {
return Optional.ofNullable(applicablefrompicklist);
}
public Sla withApplicablefrompicklist(Integer applicablefrompicklist) {
Sla _x = _copy();
_x.changedFields = changedFields.add("applicablefrompicklist");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.applicablefrompicklist = applicablefrompicklist;
return _x;
}
@Property(name="_owninguser_value")
@JsonIgnore
public Optional get_owninguser_value() {
return Optional.ofNullable(_owninguser_value);
}
public Sla with_owninguser_value(UUID _owninguser_value) {
Sla _x = _copy();
_x.changedFields = changedFields.add("_owninguser_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x._owninguser_value = _owninguser_value;
return _x;
}
@Property(name="applicablefrom")
@JsonIgnore
public Optional getApplicablefrom() {
return Optional.ofNullable(applicablefrom);
}
public Sla withApplicablefrom(String applicablefrom) {
Sla _x = _copy();
_x.changedFields = changedFields.add("applicablefrom");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.applicablefrom = applicablefrom;
return _x;
}
@Property(name="name")
@JsonIgnore
public Optional getName() {
return Optional.ofNullable(name);
}
public Sla withName(String name) {
Sla _x = _copy();
_x.changedFields = changedFields.add("name");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.name = name;
return _x;
}
@Property(name="description")
@JsonIgnore
public Optional getDescription() {
return Optional.ofNullable(description);
}
public Sla withDescription(String description) {
Sla _x = _copy();
_x.changedFields = changedFields.add("description");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.description = description;
return _x;
}
@Property(name="_workflowid_value")
@JsonIgnore
public Optional get_workflowid_value() {
return Optional.ofNullable(_workflowid_value);
}
public Sla with_workflowid_value(UUID _workflowid_value) {
Sla _x = _copy();
_x.changedFields = changedFields.add("_workflowid_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x._workflowid_value = _workflowid_value;
return _x;
}
@Property(name="primaryentityotc")
@JsonIgnore
public Optional getPrimaryentityotc() {
return Optional.ofNullable(primaryentityotc);
}
public Sla withPrimaryentityotc(Integer primaryentityotc) {
Sla _x = _copy();
_x.changedFields = changedFields.add("primaryentityotc");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.primaryentityotc = primaryentityotc;
return _x;
}
@Property(name="_owningteam_value")
@JsonIgnore
public Optional get_owningteam_value() {
return Optional.ofNullable(_owningteam_value);
}
public Sla with_owningteam_value(UUID _owningteam_value) {
Sla _x = _copy();
_x.changedFields = changedFields.add("_owningteam_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x._owningteam_value = _owningteam_value;
return _x;
}
@Property(name="statuscode")
@JsonIgnore
public Optional getStatuscode() {
return Optional.ofNullable(statuscode);
}
public Sla withStatuscode(Integer statuscode) {
Sla _x = _copy();
_x.changedFields = changedFields.add("statuscode");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.statuscode = statuscode;
return _x;
}
@Property(name="allowpauseresume")
@JsonIgnore
public Optional getAllowpauseresume() {
return Optional.ofNullable(allowpauseresume);
}
public Sla withAllowpauseresume(Boolean allowpauseresume) {
Sla _x = _copy();
_x.changedFields = changedFields.add("allowpauseresume");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.allowpauseresume = allowpauseresume;
return _x;
}
@Property(name="createdon")
@JsonIgnore
public Optional getCreatedon() {
return Optional.ofNullable(createdon);
}
public Sla withCreatedon(OffsetDateTime createdon) {
Sla _x = _copy();
_x.changedFields = changedFields.add("createdon");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.createdon = createdon;
return _x;
}
@Property(name="slaidunique")
@JsonIgnore
public Optional getSlaidunique() {
return Optional.ofNullable(slaidunique);
}
public Sla withSlaidunique(UUID slaidunique) {
Sla _x = _copy();
_x.changedFields = changedFields.add("slaidunique");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.slaidunique = slaidunique;
return _x;
}
@Property(name="_createdby_value")
@JsonIgnore
public Optional get_createdby_value() {
return Optional.ofNullable(_createdby_value);
}
public Sla with_createdby_value(UUID _createdby_value) {
Sla _x = _copy();
_x.changedFields = changedFields.add("_createdby_value");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x._createdby_value = _createdby_value;
return _x;
}
@Property(name="componentstate")
@JsonIgnore
public Optional getComponentstate() {
return Optional.ofNullable(componentstate);
}
public Sla withComponentstate(Integer componentstate) {
Sla _x = _copy();
_x.changedFields = changedFields.add("componentstate");
_x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.sla");
_x.componentstate = componentstate;
return _x;
}
public Sla withUnmappedField(String name, Object value) {
Sla _x = _copy();
_x.setUnmappedField(name, value);
return _x;
}
@NavigationProperty(name="workflowid")
@JsonIgnore
public WorkflowRequest getWorkflowid() {
return new WorkflowRequest(contextPath.addSegment("workflowid"), RequestHelper.getValue(unmappedFields, "workflowid"));
}
@NavigationProperty(name="manualsla_account")
@JsonIgnore
public AccountCollectionRequest getManualsla_account() {
return new AccountCollectionRequest(
contextPath.addSegment("manualsla_account"), RequestHelper.getValue(unmappedFields, "manualsla_account"));
}
@NavigationProperty(name="manualsla_task")
@JsonIgnore
public TaskCollectionRequest getManualsla_task() {
return new TaskCollectionRequest(
contextPath.addSegment("manualsla_task"), RequestHelper.getValue(unmappedFields, "manualsla_task"));
}
@NavigationProperty(name="createdby")
@JsonIgnore
public SystemuserRequest getCreatedby() {
return new SystemuserRequest(contextPath.addSegment("createdby"), RequestHelper.getValue(unmappedFields, "createdby"));
}
@NavigationProperty(name="businesshoursid")
@JsonIgnore
public CalendarRequest getBusinesshoursid() {
return new CalendarRequest(contextPath.addSegment("businesshoursid"), RequestHelper.getValue(unmappedFields, "businesshoursid"));
}
@NavigationProperty(name="createdonbehalfby")
@JsonIgnore
public SystemuserRequest getCreatedonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("createdonbehalfby"), RequestHelper.getValue(unmappedFields, "createdonbehalfby"));
}
@NavigationProperty(name="manualsla_email")
@JsonIgnore
public EmailCollectionRequest getManualsla_email() {
return new EmailCollectionRequest(
contextPath.addSegment("manualsla_email"), RequestHelper.getValue(unmappedFields, "manualsla_email"));
}
@NavigationProperty(name="sla_Annotation")
@JsonIgnore
public AnnotationCollectionRequest getSla_Annotation() {
return new AnnotationCollectionRequest(
contextPath.addSegment("sla_Annotation"), RequestHelper.getValue(unmappedFields, "sla_Annotation"));
}
@NavigationProperty(name="SLA_SyncErrors")
@JsonIgnore
public SyncerrorCollectionRequest getSLA_SyncErrors() {
return new SyncerrorCollectionRequest(
contextPath.addSegment("SLA_SyncErrors"), RequestHelper.getValue(unmappedFields, "SLA_SyncErrors"));
}
@NavigationProperty(name="manualsla_phonecall")
@JsonIgnore
public PhonecallCollectionRequest getManualsla_phonecall() {
return new PhonecallCollectionRequest(
contextPath.addSegment("manualsla_phonecall"), RequestHelper.getValue(unmappedFields, "manualsla_phonecall"));
}
@NavigationProperty(name="sla_contact")
@JsonIgnore
public ContactCollectionRequest getSla_contact() {
return new ContactCollectionRequest(
contextPath.addSegment("sla_contact"), RequestHelper.getValue(unmappedFields, "sla_contact"));
}
@NavigationProperty(name="manualsla_contact")
@JsonIgnore
public ContactCollectionRequest getManualsla_contact() {
return new ContactCollectionRequest(
contextPath.addSegment("manualsla_contact"), RequestHelper.getValue(unmappedFields, "manualsla_contact"));
}
@NavigationProperty(name="manualsla_activitypointer")
@JsonIgnore
public ActivitypointerCollectionRequest getManualsla_activitypointer() {
return new ActivitypointerCollectionRequest(
contextPath.addSegment("manualsla_activitypointer"), RequestHelper.getValue(unmappedFields, "manualsla_activitypointer"));
}
@NavigationProperty(name="sla_task")
@JsonIgnore
public TaskCollectionRequest getSla_task() {
return new TaskCollectionRequest(
contextPath.addSegment("sla_task"), RequestHelper.getValue(unmappedFields, "sla_task"));
}
@NavigationProperty(name="slabase_ProcessSessions")
@JsonIgnore
public ProcesssessionCollectionRequest getSlabase_ProcessSessions() {
return new ProcesssessionCollectionRequest(
contextPath.addSegment("slabase_ProcessSessions"), RequestHelper.getValue(unmappedFields, "slabase_ProcessSessions"));
}
@NavigationProperty(name="manualsla_fax")
@JsonIgnore
public FaxCollectionRequest getManualsla_fax() {
return new FaxCollectionRequest(
contextPath.addSegment("manualsla_fax"), RequestHelper.getValue(unmappedFields, "manualsla_fax"));
}
@NavigationProperty(name="modifiedby")
@JsonIgnore
public SystemuserRequest getModifiedby() {
return new SystemuserRequest(contextPath.addSegment("modifiedby"), RequestHelper.getValue(unmappedFields, "modifiedby"));
}
@NavigationProperty(name="sla_letter")
@JsonIgnore
public LetterCollectionRequest getSla_letter() {
return new LetterCollectionRequest(
contextPath.addSegment("sla_letter"), RequestHelper.getValue(unmappedFields, "sla_letter"));
}
@NavigationProperty(name="sla_email")
@JsonIgnore
public EmailCollectionRequest getSla_email() {
return new EmailCollectionRequest(
contextPath.addSegment("sla_email"), RequestHelper.getValue(unmappedFields, "sla_email"));
}
@NavigationProperty(name="manualsla_socialactivity")
@JsonIgnore
public SocialactivityCollectionRequest getManualsla_socialactivity() {
return new SocialactivityCollectionRequest(
contextPath.addSegment("manualsla_socialactivity"), RequestHelper.getValue(unmappedFields, "manualsla_socialactivity"));
}
@NavigationProperty(name="sla_fax")
@JsonIgnore
public FaxCollectionRequest getSla_fax() {
return new FaxCollectionRequest(
contextPath.addSegment("sla_fax"), RequestHelper.getValue(unmappedFields, "sla_fax"));
}
@NavigationProperty(name="sla_account")
@JsonIgnore
public AccountCollectionRequest getSla_account() {
return new AccountCollectionRequest(
contextPath.addSegment("sla_account"), RequestHelper.getValue(unmappedFields, "sla_account"));
}
@NavigationProperty(name="transactioncurrencyid")
@JsonIgnore
public TransactioncurrencyRequest getTransactioncurrencyid() {
return new TransactioncurrencyRequest(contextPath.addSegment("transactioncurrencyid"), RequestHelper.getValue(unmappedFields, "transactioncurrencyid"));
}
@NavigationProperty(name="slabase_AsyncOperations")
@JsonIgnore
public AsyncoperationCollectionRequest getSlabase_AsyncOperations() {
return new AsyncoperationCollectionRequest(
contextPath.addSegment("slabase_AsyncOperations"), RequestHelper.getValue(unmappedFields, "slabase_AsyncOperations"));
}
@NavigationProperty(name="ownerid")
@JsonIgnore
public PrincipalRequest getOwnerid() {
return new PrincipalRequest(contextPath.addSegment("ownerid"), RequestHelper.getValue(unmappedFields, "ownerid"));
}
@NavigationProperty(name="manualsla_appointment")
@JsonIgnore
public AppointmentCollectionRequest getManualsla_appointment() {
return new AppointmentCollectionRequest(
contextPath.addSegment("manualsla_appointment"), RequestHelper.getValue(unmappedFields, "manualsla_appointment"));
}
@NavigationProperty(name="sla_phonecall")
@JsonIgnore
public PhonecallCollectionRequest getSla_phonecall() {
return new PhonecallCollectionRequest(
contextPath.addSegment("sla_phonecall"), RequestHelper.getValue(unmappedFields, "sla_phonecall"));
}
@NavigationProperty(name="modifiedonbehalfby")
@JsonIgnore
public SystemuserRequest getModifiedonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("modifiedonbehalfby"), RequestHelper.getValue(unmappedFields, "modifiedonbehalfby"));
}
@NavigationProperty(name="sla_socialactivity")
@JsonIgnore
public SocialactivityCollectionRequest getSla_socialactivity() {
return new SocialactivityCollectionRequest(
contextPath.addSegment("sla_socialactivity"), RequestHelper.getValue(unmappedFields, "sla_socialactivity"));
}
@NavigationProperty(name="owningteam")
@JsonIgnore
public TeamRequest getOwningteam() {
return new TeamRequest(contextPath.addSegment("owningteam"), RequestHelper.getValue(unmappedFields, "owningteam"));
}
@NavigationProperty(name="slabase_BulkDeleteFailures")
@JsonIgnore
public BulkdeletefailureCollectionRequest getSlabase_BulkDeleteFailures() {
return new BulkdeletefailureCollectionRequest(
contextPath.addSegment("slabase_BulkDeleteFailures"), RequestHelper.getValue(unmappedFields, "slabase_BulkDeleteFailures"));
}
@NavigationProperty(name="sla_appointment")
@JsonIgnore
public AppointmentCollectionRequest getSla_appointment() {
return new AppointmentCollectionRequest(
contextPath.addSegment("sla_appointment"), RequestHelper.getValue(unmappedFields, "sla_appointment"));
}
@NavigationProperty(name="sla_slaitem_slaId")
@JsonIgnore
public SlaitemCollectionRequest getSla_slaitem_slaId() {
return new SlaitemCollectionRequest(
contextPath.addSegment("sla_slaitem_slaId"), RequestHelper.getValue(unmappedFields, "sla_slaitem_slaId"));
}
@NavigationProperty(name="owninguser")
@JsonIgnore
public SystemuserRequest getOwninguser() {
return new SystemuserRequest(contextPath.addSegment("owninguser"), RequestHelper.getValue(unmappedFields, "owninguser"));
}
@NavigationProperty(name="sla_activitypointer")
@JsonIgnore
public ActivitypointerCollectionRequest getSla_activitypointer() {
return new ActivitypointerCollectionRequest(
contextPath.addSegment("sla_activitypointer"), RequestHelper.getValue(unmappedFields, "sla_activitypointer"));
}
@NavigationProperty(name="owningbusinessunit")
@JsonIgnore
public BusinessunitRequest getOwningbusinessunit() {
return new BusinessunitRequest(contextPath.addSegment("owningbusinessunit"), RequestHelper.getValue(unmappedFields, "owningbusinessunit"));
}
@NavigationProperty(name="manualsla_letter")
@JsonIgnore
public LetterCollectionRequest getManualsla_letter() {
return new LetterCollectionRequest(
contextPath.addSegment("manualsla_letter"), RequestHelper.getValue(unmappedFields, "manualsla_letter"));
}
@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 Sla patch() {
RequestHelper.patch(this, contextPath, RequestOptions.EMPTY);
Sla _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 Sla put() {
RequestHelper.put(this, contextPath, RequestOptions.EMPTY);
Sla _x = _copy();
_x.changedFields = null;
return _x;
}
private Sla _copy() {
Sla _x = new Sla();
_x.contextPath = contextPath;
_x.changedFields = changedFields;
_x.unmappedFields = unmappedFields.copy();
_x.odataType = odataType;
_x.solutionid = solutionid;
_x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
_x.changedattributelist = changedattributelist;
_x._businesshoursid_value = _businesshoursid_value;
_x._owningbusinessunit_value = _owningbusinessunit_value;
_x.overwritetime = overwritetime;
_x._createdonbehalfby_value = _createdonbehalfby_value;
_x.isdefault = isdefault;
_x.modifiedon = modifiedon;
_x.slaid = slaid;
_x._transactioncurrencyid_value = _transactioncurrencyid_value;
_x._ownerid_value = _ownerid_value;
_x.slaversion = slaversion;
_x.objecttypecode = objecttypecode;
_x._modifiedby_value = _modifiedby_value;
_x.slatype = slatype;
_x.versionnumber = versionnumber;
_x.exchangerate = exchangerate;
_x.ismanaged = ismanaged;
_x.statecode = statecode;
_x.applicablefrompicklist = applicablefrompicklist;
_x._owninguser_value = _owninguser_value;
_x.applicablefrom = applicablefrom;
_x.name = name;
_x.description = description;
_x._workflowid_value = _workflowid_value;
_x.primaryentityotc = primaryentityotc;
_x._owningteam_value = _owningteam_value;
_x.statuscode = statuscode;
_x.allowpauseresume = allowpauseresume;
_x.createdon = createdon;
_x.slaidunique = slaidunique;
_x._createdby_value = _createdby_value;
_x.componentstate = componentstate;
return _x;
}
@Override
public String toString() {
StringBuilder b = new StringBuilder();
b.append("Sla[");
b.append("solutionid=");
b.append(this.solutionid);
b.append(", ");
b.append("_modifiedonbehalfby_value=");
b.append(this._modifiedonbehalfby_value);
b.append(", ");
b.append("changedattributelist=");
b.append(this.changedattributelist);
b.append(", ");
b.append("_businesshoursid_value=");
b.append(this._businesshoursid_value);
b.append(", ");
b.append("_owningbusinessunit_value=");
b.append(this._owningbusinessunit_value);
b.append(", ");
b.append("overwritetime=");
b.append(this.overwritetime);
b.append(", ");
b.append("_createdonbehalfby_value=");
b.append(this._createdonbehalfby_value);
b.append(", ");
b.append("isdefault=");
b.append(this.isdefault);
b.append(", ");
b.append("modifiedon=");
b.append(this.modifiedon);
b.append(", ");
b.append("slaid=");
b.append(this.slaid);
b.append(", ");
b.append("_transactioncurrencyid_value=");
b.append(this._transactioncurrencyid_value);
b.append(", ");
b.append("_ownerid_value=");
b.append(this._ownerid_value);
b.append(", ");
b.append("slaversion=");
b.append(this.slaversion);
b.append(", ");
b.append("objecttypecode=");
b.append(this.objecttypecode);
b.append(", ");
b.append("_modifiedby_value=");
b.append(this._modifiedby_value);
b.append(", ");
b.append("slatype=");
b.append(this.slatype);
b.append(", ");
b.append("versionnumber=");
b.append(this.versionnumber);
b.append(", ");
b.append("exchangerate=");
b.append(this.exchangerate);
b.append(", ");
b.append("ismanaged=");
b.append(this.ismanaged);
b.append(", ");
b.append("statecode=");
b.append(this.statecode);
b.append(", ");
b.append("applicablefrompicklist=");
b.append(this.applicablefrompicklist);
b.append(", ");
b.append("_owninguser_value=");
b.append(this._owninguser_value);
b.append(", ");
b.append("applicablefrom=");
b.append(this.applicablefrom);
b.append(", ");
b.append("name=");
b.append(this.name);
b.append(", ");
b.append("description=");
b.append(this.description);
b.append(", ");
b.append("_workflowid_value=");
b.append(this._workflowid_value);
b.append(", ");
b.append("primaryentityotc=");
b.append(this.primaryentityotc);
b.append(", ");
b.append("_owningteam_value=");
b.append(this._owningteam_value);
b.append(", ");
b.append("statuscode=");
b.append(this.statuscode);
b.append(", ");
b.append("allowpauseresume=");
b.append(this.allowpauseresume);
b.append(", ");
b.append("createdon=");
b.append(this.createdon);
b.append(", ");
b.append("slaidunique=");
b.append(this.slaidunique);
b.append(", ");
b.append("_createdby_value=");
b.append(this._createdby_value);
b.append(", ");
b.append("componentstate=");
b.append(this.componentstate);
b.append("]");
b.append(",unmappedFields=");
b.append(unmappedFields);
b.append(",odataType=");
b.append(odataType);
return b.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy