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

microsoft.dynamics.crm.entity.collection.request.DuplicateruleCollectionRequest Maven / Gradle / Ivy

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

import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;

import java.lang.Object;
import java.util.Optional;
import java.util.UUID;

import microsoft.dynamics.crm.entity.Duplicaterule;
import microsoft.dynamics.crm.entity.request.AnnotationRequest;
import microsoft.dynamics.crm.entity.request.DuplicaterecordRequest;
import microsoft.dynamics.crm.entity.request.DuplicateruleRequest;
import microsoft.dynamics.crm.entity.request.DuplicateruleconditionRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;

public class DuplicateruleCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public DuplicateruleCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Duplicaterule.class, cp -> new DuplicateruleRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public SyncerrorRequest duplicateRule_SyncErrors(UUID syncerrorid) {
        return new SyncerrorRequest(contextPath.addSegment("DuplicateRule_SyncErrors").addKeys(new NameValue(syncerrorid, UUID.class)), Optional.empty());
    }

    public SyncerrorCollectionRequest duplicateRule_SyncErrors() {
        return new SyncerrorCollectionRequest(contextPath.addSegment("DuplicateRule_SyncErrors"), Optional.empty());
    }

    public DuplicateruleconditionRequest duplicateRule_DuplicateRuleConditions(UUID duplicateruleconditionid) {
        return new DuplicateruleconditionRequest(contextPath.addSegment("DuplicateRule_DuplicateRuleConditions").addKeys(new NameValue(duplicateruleconditionid, UUID.class)), Optional.empty());
    }

    public DuplicateruleconditionCollectionRequest duplicateRule_DuplicateRuleConditions() {
        return new DuplicateruleconditionCollectionRequest(contextPath.addSegment("DuplicateRule_DuplicateRuleConditions"), Optional.empty());
    }

    public AnnotationRequest duplicateRule_Annotation(UUID annotationid) {
        return new AnnotationRequest(contextPath.addSegment("DuplicateRule_Annotation").addKeys(new NameValue(annotationid, UUID.class)), Optional.empty());
    }

    public AnnotationCollectionRequest duplicateRule_Annotation() {
        return new AnnotationCollectionRequest(contextPath.addSegment("DuplicateRule_Annotation"), Optional.empty());
    }

    public DuplicaterecordRequest duplicateRule_DuplicateBaseRecord(UUID duplicateid) {
        return new DuplicaterecordRequest(contextPath.addSegment("DuplicateRule_DuplicateBaseRecord").addKeys(new NameValue(duplicateid, UUID.class)), Optional.empty());
    }

    public DuplicaterecordCollectionRequest duplicateRule_DuplicateBaseRecord() {
        return new DuplicaterecordCollectionRequest(contextPath.addSegment("DuplicateRule_DuplicateBaseRecord"), Optional.empty());
    }

}