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

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

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.Workflowlog;
import microsoft.dynamics.crm.entity.request.FileattachmentRequest;
import microsoft.dynamics.crm.entity.request.WorkflowlogRequest;

public class WorkflowlogCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public WorkflowlogCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Workflowlog.class, cp -> new WorkflowlogRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public FileattachmentRequest workflowlog_FileAttachments(UUID fileattachmentid) {
        return new FileattachmentRequest(contextPath.addSegment("workflowlog_FileAttachments").addKeys(new NameValue(fileattachmentid, UUID.class)), Optional.empty());
    }

    public FileattachmentCollectionRequest workflowlog_FileAttachments() {
        return new FileattachmentCollectionRequest(contextPath.addSegment("workflowlog_FileAttachments"), Optional.empty());
    }

}