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

package com.azure.resourcemanager.azurestack.implementation;

import com.azure.resourcemanager.azurestack.fluent.models.DeploymentLicenseResponseInner;
import com.azure.resourcemanager.azurestack.models.DeploymentLicenseResponse;
import java.util.Collections;
import java.util.List;

public final class DeploymentLicenseResponseImpl implements DeploymentLicenseResponse {
    private DeploymentLicenseResponseInner innerObject;

    private final com.azure.resourcemanager.azurestack.AzureStackManager serviceManager;

    DeploymentLicenseResponseImpl(
        DeploymentLicenseResponseInner innerObject,
        com.azure.resourcemanager.azurestack.AzureStackManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public List<String> temporaryLicenseChain() {
        List<String> inner = this.innerModel().temporaryLicenseChain();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

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

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

    private com.azure.resourcemanager.azurestack.AzureStackManager manager() {
        return this.serviceManager;
    }
}
