// 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.EventInner;
import com.azure.resourcemanager.resourcehealth.models.Event;
import com.azure.resourcemanager.resourcehealth.models.EventLevelValues;
import com.azure.resourcemanager.resourcehealth.models.EventPropertiesAdditionalInformation;
import com.azure.resourcemanager.resourcehealth.models.EventPropertiesArticle;
import com.azure.resourcemanager.resourcehealth.models.EventPropertiesRecommendedActions;
import com.azure.resourcemanager.resourcehealth.models.EventSourceValues;
import com.azure.resourcemanager.resourcehealth.models.EventStatusValues;
import com.azure.resourcemanager.resourcehealth.models.EventTypeValues;
import com.azure.resourcemanager.resourcehealth.models.Faq;
import com.azure.resourcemanager.resourcehealth.models.Impact;
import com.azure.resourcemanager.resourcehealth.models.LevelValues;
import com.azure.resourcemanager.resourcehealth.models.Link;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;

public final class EventImpl implements Event {
    private EventInner innerObject;

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

    EventImpl(EventInner 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 EventTypeValues eventType() {
        return this.innerModel().eventType();
    }

    public EventSourceValues eventSource() {
        return this.innerModel().eventSource();
    }

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

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

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

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

    public LevelValues level() {
        return this.innerModel().level();
    }

    public EventLevelValues eventLevel() {
        return this.innerModel().eventLevel();
    }

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

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

    public EventPropertiesArticle article() {
        return this.innerModel().article();
    }

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

    public OffsetDateTime impactStartTime() {
        return this.innerModel().impactStartTime();
    }

    public OffsetDateTime impactMitigationTime() {
        return this.innerModel().impactMitigationTime();
    }

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

    public EventPropertiesRecommendedActions recommendedActions() {
        return this.innerModel().recommendedActions();
    }

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

    public Boolean isHir() {
        return this.innerModel().isHir();
    }

    public Boolean enableMicrosoftSupport() {
        return this.innerModel().enableMicrosoftSupport();
    }

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

    public Boolean platformInitiated() {
        return this.innerModel().platformInitiated();
    }

    public Boolean enableChatWithUs() {
        return this.innerModel().enableChatWithUs();
    }

    public Integer priority() {
        return this.innerModel().priority();
    }

    public OffsetDateTime lastUpdateTime() {
        return this.innerModel().lastUpdateTime();
    }

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

    public EventPropertiesAdditionalInformation additionalInformation() {
        return this.innerModel().additionalInformation();
    }

    public Integer duration() {
        return this.innerModel().duration();
    }

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

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

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