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

package com.azure.resourcemanager.customerinsights.implementation;

import com.azure.resourcemanager.customerinsights.fluent.models.WidgetTypeResourceFormatInner;
import com.azure.resourcemanager.customerinsights.models.WidgetTypeResourceFormat;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.Map;

public final class WidgetTypeResourceFormatImpl implements WidgetTypeResourceFormat {
    private WidgetTypeResourceFormatInner innerObject;

    private final com.azure.resourcemanager.customerinsights.CustomerInsightsManager serviceManager;

    WidgetTypeResourceFormatImpl(
        WidgetTypeResourceFormatInner innerObject,
        com.azure.resourcemanager.customerinsights.CustomerInsightsManager 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 String widgetTypeName() {
        return this.innerModel().widgetTypeName();
    }

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

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

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

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

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

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

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

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

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

    private com.azure.resourcemanager.customerinsights.CustomerInsightsManager manager() {
        return this.serviceManager;
    }
}
