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

package com.azure.resourcemanager.agrifood.implementation;

import com.azure.core.management.SystemData;
import com.azure.resourcemanager.agrifood.fluent.models.FarmBeatsExtensionInner;
import com.azure.resourcemanager.agrifood.models.DetailedInformation;
import com.azure.resourcemanager.agrifood.models.FarmBeatsExtension;
import java.util.Collections;
import java.util.List;

public final class FarmBeatsExtensionImpl implements FarmBeatsExtension {
    private FarmBeatsExtensionInner innerObject;

    private final com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager;

    FarmBeatsExtensionImpl(
        FarmBeatsExtensionInner innerObject, com.azure.resourcemanager.agrifood.AgriFoodManager 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 String targetResourceType() {
        return this.innerModel().targetResourceType();
    }

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

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

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

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

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

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

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

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

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

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

    private com.azure.resourcemanager.agrifood.AgriFoodManager manager() {
        return this.serviceManager;
    }
}
