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

package com.azure.resourcemanager.postgresqlflexibleserver.implementation;

import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.LtrBackupResponseInner;
import com.azure.resourcemanager.postgresqlflexibleserver.models.ExecutionStatus;
import com.azure.resourcemanager.postgresqlflexibleserver.models.LtrBackupResponse;
import java.time.OffsetDateTime;

public final class LtrBackupResponseImpl implements LtrBackupResponse {
    private LtrBackupResponseInner innerObject;

    private final com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager serviceManager;

    LtrBackupResponseImpl(
        LtrBackupResponseInner innerObject,
        com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

    public ExecutionStatus status() {
        return this.innerModel().status();
    }

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

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

    public Double percentComplete() {
        return this.innerModel().percentComplete();
    }

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

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

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

    private com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager() {
        return this.serviceManager;
    }
}
