microsoft.dynamics.crm.entity.request.DuplicateruleRequest 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.request;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.annotation.Action;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;
import java.util.Map;
import microsoft.dynamics.crm.entity.Asyncoperation;
import microsoft.dynamics.crm.entity.Duplicaterule;
import microsoft.dynamics.crm.entity.collection.request.AnnotationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.DuplicaterecordCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.DuplicateruleconditionCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SyncerrorCollectionRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
@JsonIgnoreType
public class DuplicateruleRequest extends EntityRequest {
public DuplicateruleRequest(ContextPath contextPath) {
super(Duplicaterule.class, contextPath, SchemaInfo.INSTANCE);
}
public SystemuserRequest createdonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("createdonbehalfby"));
}
public TeamRequest owningteam() {
return new TeamRequest(contextPath.addSegment("owningteam"));
}
public SystemuserRequest modifiedonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("modifiedonbehalfby"));
}
public SyncerrorCollectionRequest duplicateRule_SyncErrors() {
return new SyncerrorCollectionRequest(
contextPath.addSegment("DuplicateRule_SyncErrors"));
}
public SyncerrorRequest duplicateRule_SyncErrors(String syncerrorid) {
return new SyncerrorRequest(contextPath.addSegment("DuplicateRule_SyncErrors").addKeys(new NameValue(syncerrorid.toString())));
}
public PrincipalRequest ownerid() {
return new PrincipalRequest(contextPath.addSegment("ownerid"));
}
public SystemuserRequest modifiedby() {
return new SystemuserRequest(contextPath.addSegment("modifiedby"));
}
public DuplicateruleconditionCollectionRequest duplicateRule_DuplicateRuleConditions() {
return new DuplicateruleconditionCollectionRequest(
contextPath.addSegment("DuplicateRule_DuplicateRuleConditions"));
}
public DuplicateruleconditionRequest duplicateRule_DuplicateRuleConditions(String duplicateruleconditionid) {
return new DuplicateruleconditionRequest(contextPath.addSegment("DuplicateRule_DuplicateRuleConditions").addKeys(new NameValue(duplicateruleconditionid.toString())));
}
public BusinessunitRequest owningbusinessunit() {
return new BusinessunitRequest(contextPath.addSegment("owningbusinessunit"));
}
public AnnotationCollectionRequest duplicateRule_Annotation() {
return new AnnotationCollectionRequest(
contextPath.addSegment("DuplicateRule_Annotation"));
}
public AnnotationRequest duplicateRule_Annotation(String annotationid) {
return new AnnotationRequest(contextPath.addSegment("DuplicateRule_Annotation").addKeys(new NameValue(annotationid.toString())));
}
public DuplicaterecordCollectionRequest duplicateRule_DuplicateBaseRecord() {
return new DuplicaterecordCollectionRequest(
contextPath.addSegment("DuplicateRule_DuplicateBaseRecord"));
}
public DuplicaterecordRequest duplicateRule_DuplicateBaseRecord(String duplicateid) {
return new DuplicaterecordRequest(contextPath.addSegment("DuplicateRule_DuplicateBaseRecord").addKeys(new NameValue(duplicateid.toString())));
}
public SystemuserRequest owninguser() {
return new SystemuserRequest(contextPath.addSegment("owninguser"));
}
public SystemuserRequest createdby() {
return new SystemuserRequest(contextPath.addSegment("createdby"));
}
@Action(name = "PublishDuplicateRule")
@JsonIgnore
public ActionRequestReturningNonCollectionUnwrapped publishDuplicateRule() {
Map _parameters = ParameterMap.empty();
return new ActionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.PublishDuplicateRule"), Asyncoperation.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy