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

microsoft.dynamics.crm.entity.collection.request.CustomcontrolCollectionRequest 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.Customcontrol;
import microsoft.dynamics.crm.entity.request.CustomcontrolRequest;
import microsoft.dynamics.crm.entity.request.CustomcontrolresourceRequest;

public class CustomcontrolCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public CustomcontrolCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Customcontrol.class, cp -> new CustomcontrolRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public CustomcontrolresourceRequest customcontrol_resource_id(UUID customcontrolresourceid) {
        return new CustomcontrolresourceRequest(contextPath.addSegment("customcontrol_resource_id").addKeys(new NameValue(customcontrolresourceid, UUID.class)), Optional.empty());
    }

    public CustomcontrolresourceCollectionRequest customcontrol_resource_id() {
        return new CustomcontrolresourceCollectionRequest(contextPath.addSegment("customcontrol_resource_id"), Optional.empty());
    }

}