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

odata.msgraph.client.entity.collection.request.DeviceEnrollmentConfigurationCollectionRequest 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.DeviceEnrollmentConfiguration;
import odata.msgraph.client.entity.request.DeviceEnrollmentConfigurationRequest;
import odata.msgraph.client.entity.request.EnrollmentConfigurationAssignmentRequest;

public class DeviceEnrollmentConfigurationCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public DeviceEnrollmentConfigurationCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, DeviceEnrollmentConfiguration.class, cp -> new DeviceEnrollmentConfigurationRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

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

    public EnrollmentConfigurationAssignmentCollectionRequest assignments() {
        return new EnrollmentConfigurationAssignmentCollectionRequest(contextPath.addSegment("assignments"), Optional.empty());
    }

}