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

odata.msgraph.client.entity.request.PlannerRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package odata.msgraph.client.entity.request;

import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.NameValue;

import java.lang.Object;
import java.lang.String;
import java.util.Optional;

import odata.msgraph.client.entity.Planner;
import odata.msgraph.client.entity.collection.request.PlannerBucketCollectionRequest;
import odata.msgraph.client.entity.collection.request.PlannerPlanCollectionRequest;
import odata.msgraph.client.entity.collection.request.PlannerTaskCollectionRequest;

@JsonIgnoreType
public class PlannerRequest extends EntityRequest {

    public PlannerRequest(ContextPath contextPath, Optional value) {
        super(Planner.class, contextPath, value, false);
    }

    public PlannerBucketRequest buckets(String id) {
        return new PlannerBucketRequest(contextPath.addSegment("buckets").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public PlannerBucketCollectionRequest buckets() {
        return new PlannerBucketCollectionRequest(
                        contextPath.addSegment("buckets"), Optional.empty());
    }

    public PlannerPlanRequest plans(String id) {
        return new PlannerPlanRequest(contextPath.addSegment("plans").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public PlannerPlanCollectionRequest plans() {
        return new PlannerPlanCollectionRequest(
                        contextPath.addSegment("plans"), Optional.empty());
    }

    public PlannerTaskRequest tasks(String id) {
        return new PlannerTaskRequest(contextPath.addSegment("tasks").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public PlannerTaskCollectionRequest tasks() {
        return new PlannerTaskCollectionRequest(
                        contextPath.addSegment("tasks"), Optional.empty());
    }

}