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

package com.azure.resourcemanager.machinelearning.implementation;

import com.azure.resourcemanager.machinelearning.fluent.models.EndpointAuthTokenInner;
import com.azure.resourcemanager.machinelearning.models.EndpointAuthToken;

public final class EndpointAuthTokenImpl implements EndpointAuthToken {
    private EndpointAuthTokenInner innerObject;

    private final com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager;

    EndpointAuthTokenImpl(
        EndpointAuthTokenInner innerObject,
        com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

    public Long expiryTimeUtc() {
        return this.innerModel().expiryTimeUtc();
    }

    public Long refreshAfterTimeUtc() {
        return this.innerModel().refreshAfterTimeUtc();
    }

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

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

    private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
        return this.serviceManager;
    }
}
