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

package com.azure.resourcemanager.paloaltonetworks.ngfw.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Application Insights key. */
@Fluent
public final class ApplicationInsights {
    /*
     * Resource id for Application Insights
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * Application Insights key
     */
    @JsonProperty(value = "key")
    private String key;

    /** Creates an instance of ApplicationInsights class. */
    public ApplicationInsights() {
    }

    /**
     * Get the id property: Resource id for Application Insights.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id property: Resource id for Application Insights.
     *
     * @param id the id value to set.
     * @return the ApplicationInsights object itself.
     */
    public ApplicationInsights withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the key property: Application Insights key.
     *
     * @return the key value.
     */
    public String key() {
        return this.key;
    }

    /**
     * Set the key property: Application Insights key.
     *
     * @param key the key value to set.
     * @return the ApplicationInsights object itself.
     */
    public ApplicationInsights withKey(String key) {
        this.key = key;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
