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

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

There is a newer version: 0.2.2
Show newest version
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.AccessPackageCatalog;
import odata.msgraph.client.entity.collection.request.AccessPackageCollectionRequest;
import odata.msgraph.client.entity.collection.request.AccessPackageResourceCollectionRequest;
import odata.msgraph.client.entity.collection.request.AccessPackageResourceRoleCollectionRequest;
import odata.msgraph.client.entity.collection.request.AccessPackageResourceScopeCollectionRequest;
import odata.msgraph.client.entity.collection.request.CustomCalloutExtensionCollectionRequest;

@JsonIgnoreType
public class AccessPackageCatalogRequest extends EntityRequest {

    public AccessPackageCatalogRequest(ContextPath contextPath, Optional value) {
        super(AccessPackageCatalog.class, contextPath, value, false);
    }

    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());
    }

}