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

odata.msgraph.client.entity.request.SubjectRightsRequestRequest 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.JsonIgnore;
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.FunctionRequestReturningStream;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.annotation.Function;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;

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

import odata.msgraph.client.entity.SubjectRightsRequest;
import odata.msgraph.client.entity.collection.request.AuthoredNoteCollectionRequest;
import odata.msgraph.client.entity.collection.request.UserCollectionRequest;

@JsonIgnoreType
public class SubjectRightsRequestRequest extends EntityRequest {

    public SubjectRightsRequestRequest(ContextPath contextPath, Optional value) {
        super(SubjectRightsRequest.class, contextPath, value, false);
    }

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

    public UserCollectionRequest approvers() {
        return new UserCollectionRequest(
                        contextPath.addSegment("approvers"), Optional.empty());
    }

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

    public UserCollectionRequest collaborators() {
        return new UserCollectionRequest(
                        contextPath.addSegment("collaborators"), Optional.empty());
    }

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

    public AuthoredNoteCollectionRequest notes() {
        return new AuthoredNoteCollectionRequest(
                        contextPath.addSegment("notes"), Optional.empty());
    }

    public TeamRequest team() {
        return new TeamRequest(contextPath.addSegment("team"), Optional.empty());
    }

    @Function(name = "getFinalAttachment")
    @JsonIgnore
    public FunctionRequestReturningStream getFinalAttachment() {
        Map _parameters = ParameterMap.empty();
        return new FunctionRequestReturningStream(this.contextPath.addActionOrFunctionSegment("microsoft.graph.getFinalAttachment"), _parameters);
    }

    @Function(name = "getFinalReport")
    @JsonIgnore
    public FunctionRequestReturningStream getFinalReport() {
        Map _parameters = ParameterMap.empty();
        return new FunctionRequestReturningStream(this.contextPath.addActionOrFunctionSegment("microsoft.graph.getFinalReport"), _parameters);
    }

}