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

package com.azure.resourcemanager.storagecache.implementation;

import com.azure.resourcemanager.storagecache.fluent.models.AscOperationInner;
import com.azure.resourcemanager.storagecache.models.AscOperation;
import com.azure.resourcemanager.storagecache.models.ErrorResponse;
import java.util.Collections;
import java.util.Map;

public final class AscOperationImpl implements AscOperation {
    private AscOperationInner innerObject;

    private final com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager;

    AscOperationImpl(
        AscOperationInner innerObject, com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

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

    public ErrorResponse error() {
        return this.innerModel().error();
    }

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

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

    private com.azure.resourcemanager.storagecache.StorageCacheManager manager() {
        return this.serviceManager;
    }
}
