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

microsoft.dynamics.crm.entity.collection.request.UserqueryvisualizationCollectionRequest 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.Userqueryvisualization;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.entity.request.UserqueryvisualizationRequest;

public class UserqueryvisualizationCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public UserqueryvisualizationCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Userqueryvisualization.class, cp -> new UserqueryvisualizationRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

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

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

}