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

odata.msgraph.client.entity.collection.request.AccessPackageCatalogCollectionRequest 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.AccessPackageCatalog;
import odata.msgraph.client.entity.request.AccessPackageCatalogRequest;
import odata.msgraph.client.entity.request.AccessPackageRequest;
import odata.msgraph.client.entity.request.AccessPackageResourceRequest;
import odata.msgraph.client.entity.request.AccessPackageResourceRoleRequest;
import odata.msgraph.client.entity.request.AccessPackageResourceScopeRequest;
import odata.msgraph.client.entity.request.CustomCalloutExtensionRequest;

public class AccessPackageCatalogCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public AccessPackageCatalogCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, AccessPackageCatalog.class, cp -> new AccessPackageCatalogRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

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

    public AccessPackageCollectionRequest accessPackages() {
        return new AccessPackageCollectionRequest(contextPath.addSegment("accessPackages"), Optional.empty());
    }

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

    public CustomCalloutExtensionCollectionRequest customWorkflowExtensions() {
        return new CustomCalloutExtensionCollectionRequest(contextPath.addSegment("customWorkflowExtensions"), Optional.empty());
    }

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

    public AccessPackageResourceRoleCollectionRequest resourceRoles() {
        return new AccessPackageResourceRoleCollectionRequest(contextPath.addSegment("resourceRoles"), Optional.empty());
    }

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

    public AccessPackageResourceCollectionRequest resources() {
        return new AccessPackageResourceCollectionRequest(contextPath.addSegment("resources"), Optional.empty());
    }

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

    public AccessPackageResourceScopeCollectionRequest resourceScopes() {
        return new AccessPackageResourceScopeCollectionRequest(contextPath.addSegment("resourceScopes"), Optional.empty());
    }

}