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

odata.msgraph.client.identitygovernance.entity.request.WorkflowBaseRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package odata.msgraph.client.identitygovernance.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.request.UserRequest;
import odata.msgraph.client.identitygovernance.entity.WorkflowBase;
import odata.msgraph.client.identitygovernance.entity.collection.request.TaskCollectionRequest;

@JsonIgnoreType
public class WorkflowBaseRequest extends EntityRequest {

    public WorkflowBaseRequest(ContextPath contextPath, Optional value) {
        super(WorkflowBase.class, contextPath, value, false);
    }

    public UserRequest createdBy() {
        return new UserRequest(contextPath.addSegment("createdBy"), Optional.empty());
    }

    public UserRequest lastModifiedBy() {
        return new UserRequest(contextPath.addSegment("lastModifiedBy"), Optional.empty());
    }

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

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

}