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

odata.msgraph.client.entity.collection.request.SimulationAutomationCollectionRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package odata.msgraph.client.entity.collection.request;

import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;

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

import odata.msgraph.client.entity.SimulationAutomation;
import odata.msgraph.client.entity.request.SimulationAutomationRequest;
import odata.msgraph.client.entity.request.SimulationAutomationRunRequest;

public class SimulationAutomationCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public SimulationAutomationCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, SimulationAutomation.class, cp -> new SimulationAutomationRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

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

    public SimulationAutomationRunCollectionRequest runs() {
        return new SimulationAutomationRunCollectionRequest(contextPath.addSegment("runs"), Optional.empty());
    }

}