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

odata.msgraph.client.entity.request.EducationSchoolRequest 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.EducationSchool;
import odata.msgraph.client.entity.collection.request.EducationClassCollectionRequest;
import odata.msgraph.client.entity.collection.request.EducationUserCollectionRequest;

@JsonIgnoreType
public class EducationSchoolRequest extends EntityRequest {

    public EducationSchoolRequest(ContextPath contextPath, Optional value) {
        super(EducationSchool.class, contextPath, value, false);
    }

    public AdministrativeUnitRequest administrativeUnit() {
        return new AdministrativeUnitRequest(contextPath.addSegment("administrativeUnit"), Optional.empty());
    }

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

    public EducationClassCollectionRequest classes() {
        return new EducationClassCollectionRequest(
                        contextPath.addSegment("classes"), Optional.empty());
    }

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

    public EducationUserCollectionRequest users() {
        return new EducationUserCollectionRequest(
                        contextPath.addSegment("users"), Optional.empty());
    }

}