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

package com.azure.resourcemanager.resourcehealth.implementation;

import com.azure.core.management.SystemData;
import com.azure.resourcemanager.resourcehealth.fluent.models.EmergingIssuesGetResultInner;
import com.azure.resourcemanager.resourcehealth.models.EmergingIssuesGetResult;
import com.azure.resourcemanager.resourcehealth.models.StatusActiveEvent;
import com.azure.resourcemanager.resourcehealth.models.StatusBanner;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;

public final class EmergingIssuesGetResultImpl implements EmergingIssuesGetResult {
    private EmergingIssuesGetResultInner innerObject;

    private final com.azure.resourcemanager.resourcehealth.ResourceHealthManager serviceManager;

    EmergingIssuesGetResultImpl(
        EmergingIssuesGetResultInner innerObject,
        com.azure.resourcemanager.resourcehealth.ResourceHealthManager 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 OffsetDateTime refreshTimestamp() {
        return this.innerModel().refreshTimestamp();
    }

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

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

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

    private com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager() {
        return this.serviceManager;
    }
}
