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

odata.msgraph.client.beta.termStore.entity.request.GroupRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package odata.msgraph.client.beta.termStore.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.beta.termStore.entity.Group;
import odata.msgraph.client.beta.termStore.entity.collection.request.SetCollectionRequest;

@JsonIgnoreType
public class GroupRequest extends EntityRequest {

    public GroupRequest(ContextPath contextPath, Optional value) {
        super(Group.class, contextPath, value, false);
    }

    public SetCollectionRequest sets() {
        return new SetCollectionRequest(
                        contextPath.addSegment("sets"), Optional.empty());
    }

    public SetRequest sets(String id) {
        return new SetRequest(contextPath.addSegment("sets").addKeys(new NameValue(id.toString())), Optional.empty());
    }

}