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

package com.azure.resourcemanager.devtestlabs.implementation;

import com.azure.resourcemanager.devtestlabs.fluent.models.ArtifactInner;
import com.azure.resourcemanager.devtestlabs.models.Artifact;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.Map;

public final class ArtifactImpl implements Artifact {
    private ArtifactInner innerObject;

    private final com.azure.resourcemanager.devtestlabs.DevTestLabsManager serviceManager;

    ArtifactImpl(ArtifactInner innerObject, com.azure.resourcemanager.devtestlabs.DevTestLabsManager 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 location() {
        return this.innerModel().location();
    }

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

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

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

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

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

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

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

    public Object parameters() {
        return this.innerModel().parameters();
    }

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

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

    private com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager() {
        return this.serviceManager;
    }
}
