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

package com.azure.resourcemanager.costmanagement.implementation;

import com.azure.resourcemanager.costmanagement.fluent.models.DownloadUrlInner;
import com.azure.resourcemanager.costmanagement.models.DownloadUrl;
import java.time.OffsetDateTime;

public final class DownloadUrlImpl implements DownloadUrl {
    private DownloadUrlInner innerObject;

    private final com.azure.resourcemanager.costmanagement.CostManagementManager serviceManager;

    DownloadUrlImpl(
        DownloadUrlInner innerObject, com.azure.resourcemanager.costmanagement.CostManagementManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

    private com.azure.resourcemanager.costmanagement.CostManagementManager manager() {
        return this.serviceManager;
    }
}
