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

odata.msgraph.client.entity.request.ImportedWindowsAutopilotDeviceIdentityUploadRequest Maven / Gradle / Ivy

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.ImportedWindowsAutopilotDeviceIdentityUpload;
import odata.msgraph.client.entity.collection.request.ImportedWindowsAutopilotDeviceIdentityCollectionRequest;

@JsonIgnoreType
public class ImportedWindowsAutopilotDeviceIdentityUploadRequest extends EntityRequest {

    public ImportedWindowsAutopilotDeviceIdentityUploadRequest(ContextPath contextPath, Optional value) {
        super(ImportedWindowsAutopilotDeviceIdentityUpload.class, contextPath, value, false);
    }

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

    public ImportedWindowsAutopilotDeviceIdentityCollectionRequest deviceIdentities() {
        return new ImportedWindowsAutopilotDeviceIdentityCollectionRequest(
                        contextPath.addSegment("deviceIdentities"), Optional.empty());
    }

}