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

microsoft.dynamics.crm.entity.collection.request.TracelogCollectionRequest 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.Tracelog;
import microsoft.dynamics.crm.entity.request.TracelogRequest;

public class TracelogCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public TracelogCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Tracelog.class, cp -> new TracelogRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public TracelogRequest tracelog_parent_tracelog(UUID tracelogid) {
        return new TracelogRequest(contextPath.addSegment("tracelog_parent_tracelog").addKeys(new NameValue(tracelogid, UUID.class)), Optional.empty());
    }

    public TracelogCollectionRequest tracelog_parent_tracelog() {
        return new TracelogCollectionRequest(contextPath.addSegment("tracelog_parent_tracelog"), Optional.empty());
    }

}