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

odata.msgraph.client.entity.request.UnifiedRoleManagementPolicyRequest 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.UnifiedRoleManagementPolicy;
import odata.msgraph.client.entity.collection.request.UnifiedRoleManagementPolicyRuleCollectionRequest;

@JsonIgnoreType
public class UnifiedRoleManagementPolicyRequest extends EntityRequest {

    public UnifiedRoleManagementPolicyRequest(ContextPath contextPath, Optional value) {
        super(UnifiedRoleManagementPolicy.class, contextPath, value, false);
    }

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

    public UnifiedRoleManagementPolicyRuleCollectionRequest effectiveRules() {
        return new UnifiedRoleManagementPolicyRuleCollectionRequest(
                        contextPath.addSegment("effectiveRules"), Optional.empty());
    }

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

    public UnifiedRoleManagementPolicyRuleCollectionRequest rules() {
        return new UnifiedRoleManagementPolicyRuleCollectionRequest(
                        contextPath.addSegment("rules"), Optional.empty());
    }

}