// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.datafactory.implementation;

import com.azure.resourcemanager.datafactory.fluent.models.AccessPolicyResponseInner;
import com.azure.resourcemanager.datafactory.models.AccessPolicyResponse;
import com.azure.resourcemanager.datafactory.models.UserAccessPolicy;

public final class AccessPolicyResponseImpl implements AccessPolicyResponse {
    private AccessPolicyResponseInner innerObject;

    private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager;

    AccessPolicyResponseImpl(
        AccessPolicyResponseInner innerObject,
        com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public UserAccessPolicy policy() {
        return this.innerModel().policy();
    }

    public String accessToken() {
        return this.innerModel().accessToken();
    }

    public String dataPlaneUrl() {
        return this.innerModel().dataPlaneUrl();
    }

    public AccessPolicyResponseInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.datafactory.DataFactoryManager manager() {
        return this.serviceManager;
    }
}
