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

microsoft.dynamics.crm.entity.collection.request.ConnectionCollectionRequest 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.Connection;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.ConnectionRequest;
import microsoft.dynamics.crm.entity.request.PrincipalobjectattributeaccessRequest;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;

public class ConnectionCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public ConnectionCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Connection.class, cp -> new ConnectionRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public PrincipalobjectattributeaccessRequest connection_principalobjectattributeaccess(UUID principalobjectattributeaccessid) {
        return new PrincipalobjectattributeaccessRequest(contextPath.addSegment("connection_principalobjectattributeaccess").addKeys(new NameValue(principalobjectattributeaccessid, UUID.class)), Optional.empty());
    }

    public PrincipalobjectattributeaccessCollectionRequest connection_principalobjectattributeaccess() {
        return new PrincipalobjectattributeaccessCollectionRequest(contextPath.addSegment("connection_principalobjectattributeaccess"), Optional.empty());
    }

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

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

    public ProcesssessionRequest connection_ProcessSessions(UUID processsessionid) {
        return new ProcesssessionRequest(contextPath.addSegment("Connection_ProcessSessions").addKeys(new NameValue(processsessionid, UUID.class)), Optional.empty());
    }

    public ProcesssessionCollectionRequest connection_ProcessSessions() {
        return new ProcesssessionCollectionRequest(contextPath.addSegment("Connection_ProcessSessions"), Optional.empty());
    }

    public ConnectionRequest connection_related_connection(UUID connectionid) {
        return new ConnectionRequest(contextPath.addSegment("connection_related_connection").addKeys(new NameValue(connectionid, UUID.class)), Optional.empty());
    }

    public ConnectionCollectionRequest connection_related_connection() {
        return new ConnectionCollectionRequest(contextPath.addSegment("connection_related_connection"), Optional.empty());
    }

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

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

}