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

package com.azure.resourcemanager.recoveryservicesbackup.implementation;

import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.OperationResultInfoBaseResourceInner;
import com.azure.resourcemanager.recoveryservicesbackup.models.HttpStatusCode;
import com.azure.resourcemanager.recoveryservicesbackup.models.OperationResultInfoBase;
import com.azure.resourcemanager.recoveryservicesbackup.models.OperationResultInfoBaseResource;
import java.util.Collections;
import java.util.List;
import java.util.Map;

public final class OperationResultInfoBaseResourceImpl implements OperationResultInfoBaseResource {
    private OperationResultInfoBaseResourceInner innerObject;

    private final com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager;

    OperationResultInfoBaseResourceImpl(
        OperationResultInfoBaseResourceInner innerObject,
        com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public HttpStatusCode statusCode() {
        return this.innerModel().statusCode();
    }

    public Map<String, List<String>> headers() {
        Map<String, List<String>> inner = this.innerModel().headers();
        if (inner != null) {
            return Collections.unmodifiableMap(inner);
        } else {
            return Collections.emptyMap();
        }
    }

    public OperationResultInfoBase operation() {
        return this.innerModel().operation();
    }

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

    private com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager() {
        return this.serviceManager;
    }
}
