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

microsoft.dynamics.crm.entity.collection.request.TeamtemplateCollectionRequest 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.Teamtemplate;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.entity.request.TeamRequest;
import microsoft.dynamics.crm.entity.request.TeamtemplateRequest;

public class TeamtemplateCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public TeamtemplateCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Teamtemplate.class, cp -> new TeamtemplateRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public TeamRequest teamtemplate_Teams(UUID ownerid) {
        return new TeamRequest(contextPath.addSegment("teamtemplate_Teams").addKeys(new NameValue(ownerid, UUID.class)), Optional.empty());
    }

    public TeamCollectionRequest teamtemplate_Teams() {
        return new TeamCollectionRequest(contextPath.addSegment("teamtemplate_Teams"), Optional.empty());
    }

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

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

}