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

package com.azure.resourcemanager.applicationinsights.implementation;

import com.azure.resourcemanager.applicationinsights.fluent.models.AnnotationInner;
import com.azure.resourcemanager.applicationinsights.models.Annotation;
import java.time.OffsetDateTime;

public final class AnnotationImpl implements Annotation {
    private AnnotationInner innerObject;

    private final com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager;

    AnnotationImpl(
        AnnotationInner innerObject,
        com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

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

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

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

    private com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager() {
        return this.serviceManager;
    }
}
