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

odata.msgraph.client.entity.request.AccessPackageAssignmentRequestRequest 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.ActionRequestNoReturn;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.annotation.Action;
import com.github.davidmoten.odata.client.internal.Checks;
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.complex.CustomExtensionData;
import odata.msgraph.client.entity.AccessPackageAssignmentRequest;

@JsonIgnoreType
public class AccessPackageAssignmentRequestRequest extends EntityRequest {

    public AccessPackageAssignmentRequestRequest(ContextPath contextPath, Optional value) {
        super(AccessPackageAssignmentRequest.class, contextPath, value, false);
    }

    public AccessPackageRequest accessPackage() {
        return new AccessPackageRequest(contextPath.addSegment("accessPackage"), Optional.empty());
    }

    public odata.msgraph.client.entity.request.AccessPackageAssignmentRequest assignment() {
        return new odata.msgraph.client.entity.request.AccessPackageAssignmentRequest(contextPath.addSegment("assignment"), Optional.empty());
    }

    public AccessPackageSubjectRequest requestor() {
        return new AccessPackageSubjectRequest(contextPath.addSegment("requestor"), Optional.empty());
    }

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

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

    @Action(name = "resume")
    @JsonIgnore
    public ActionRequestNoReturn resume(String source, String type, CustomExtensionData data) {
        Map _parameters = ParameterMap
            .put("source", "Edm.String", Checks.checkIsAscii(source))
            .put("type", "Edm.String", Checks.checkIsAscii(type))
            .put("data", "microsoft.graph.customExtensionData", data)
            .build();
        return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.resume"), _parameters);
    }

}