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

microsoft.dynamics.crm.entity.collection.request.FileattachmentCollectionRequest 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.Fileattachment;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.FileattachmentRequest;
import microsoft.dynamics.crm.entity.request.SolutionRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;

public class FileattachmentCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public FileattachmentCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Fileattachment.class, cp -> new FileattachmentRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

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

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

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

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

    public AsyncoperationRequest fileAttachment_AsyncOperation_DataBlobId(UUID asyncoperationid) {
        return new AsyncoperationRequest(contextPath.addSegment("FileAttachment_AsyncOperation_DataBlobId").addKeys(new NameValue(asyncoperationid, UUID.class)), Optional.empty());
    }

    public AsyncoperationCollectionRequest fileAttachment_AsyncOperation_DataBlobId() {
        return new AsyncoperationCollectionRequest(contextPath.addSegment("FileAttachment_AsyncOperation_DataBlobId"), Optional.empty());
    }

}