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

microsoft.dynamics.crm.entity.collection.request.PublisherCollectionRequest 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.Publisher;
import microsoft.dynamics.crm.entity.request.AppmoduleRequest;
import microsoft.dynamics.crm.entity.request.DuplicaterecordRequest;
import microsoft.dynamics.crm.entity.request.PublisherRequest;
import microsoft.dynamics.crm.entity.request.PublisheraddressRequest;
import microsoft.dynamics.crm.entity.request.SolutionRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;

public class PublisherCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public PublisherCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Publisher.class, cp -> new PublisherRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

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

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

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

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

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

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

    public SolutionRequest publisher_solution(UUID solutionid) {
        return new SolutionRequest(contextPath.addSegment("publisher_solution").addKeys(new NameValue(solutionid, UUID.class)), Optional.empty());
    }

    public SolutionCollectionRequest publisher_solution() {
        return new SolutionCollectionRequest(contextPath.addSegment("publisher_solution"), Optional.empty());
    }

    public AppmoduleRequest publisher_appmodule(UUID appmoduleid) {
        return new AppmoduleRequest(contextPath.addSegment("publisher_appmodule").addKeys(new NameValue(appmoduleid, UUID.class)), Optional.empty());
    }

    public AppmoduleCollectionRequest publisher_appmodule() {
        return new AppmoduleCollectionRequest(contextPath.addSegment("publisher_appmodule"), Optional.empty());
    }

    public PublisheraddressRequest publisher_PublisherAddress(UUID publisheraddressid) {
        return new PublisheraddressRequest(contextPath.addSegment("Publisher_PublisherAddress").addKeys(new NameValue(publisheraddressid, UUID.class)), Optional.empty());
    }

    public PublisheraddressCollectionRequest publisher_PublisherAddress() {
        return new PublisheraddressCollectionRequest(contextPath.addSegment("Publisher_PublisherAddress"), Optional.empty());
    }

}