// 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.core.management.SystemData;
import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.LtrServerBackupOperationInner;
import com.azure.resourcemanager.postgresqlflexibleserver.models.ExecutionStatus;
import com.azure.resourcemanager.postgresqlflexibleserver.models.LtrServerBackupOperation;
import java.time.OffsetDateTime;

public final class LtrServerBackupOperationImpl implements LtrServerBackupOperation {
    private LtrServerBackupOperationInner innerObject;

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

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

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

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

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

    public SystemData systemData() {
        return this.innerModel().systemData();
    }

    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 LtrServerBackupOperationInner innerModel() {
        return this.innerObject;
    }

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