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

package com.azure.resourcemanager.desktopvirtualization.implementation;

import com.azure.resourcemanager.desktopvirtualization.fluent.models.RegistrationInfoInner;
import com.azure.resourcemanager.desktopvirtualization.models.RegistrationInfo;
import com.azure.resourcemanager.desktopvirtualization.models.RegistrationTokenOperation;
import java.time.OffsetDateTime;

public final class RegistrationInfoImpl implements RegistrationInfo {
    private RegistrationInfoInner innerObject;

    private final com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager serviceManager;

    RegistrationInfoImpl(
        RegistrationInfoInner innerObject,
        com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public OffsetDateTime expirationTime() {
        return this.innerModel().expirationTime();
    }

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

    public RegistrationTokenOperation registrationTokenOperation() {
        return this.innerModel().registrationTokenOperation();
    }

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

    private com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager() {
        return this.serviceManager;
    }
}
