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

package com.azure.resourcemanager.newrelicobservability.fluent.models;

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

/** Details of VM Resource having NewRelic OneAgent installed. */
@Fluent
public final class AppServiceInfoInner {
    /*
     * Azure App service resource ID
     */
    @JsonProperty(value = "azureResourceId")
    private String azureResourceId;

    /*
     * Version of the NewRelic agent installed on the App service.
     */
    @JsonProperty(value = "agentVersion")
    private String agentVersion;

    /*
     * Status of the NewRelic agent installed on the App service.
     */
    @JsonProperty(value = "agentStatus")
    private String agentStatus;

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

    /**
     * Get the azureResourceId property: Azure App service resource ID.
     *
     * @return the azureResourceId value.
     */
    public String azureResourceId() {
        return this.azureResourceId;
    }

    /**
     * Set the azureResourceId property: Azure App service resource ID.
     *
     * @param azureResourceId the azureResourceId value to set.
     * @return the AppServiceInfoInner object itself.
     */
    public AppServiceInfoInner withAzureResourceId(String azureResourceId) {
        this.azureResourceId = azureResourceId;
        return this;
    }

    /**
     * Get the agentVersion property: Version of the NewRelic agent installed on the App service.
     *
     * @return the agentVersion value.
     */
    public String agentVersion() {
        return this.agentVersion;
    }

    /**
     * Set the agentVersion property: Version of the NewRelic agent installed on the App service.
     *
     * @param agentVersion the agentVersion value to set.
     * @return the AppServiceInfoInner object itself.
     */
    public AppServiceInfoInner withAgentVersion(String agentVersion) {
        this.agentVersion = agentVersion;
        return this;
    }

    /**
     * Get the agentStatus property: Status of the NewRelic agent installed on the App service.
     *
     * @return the agentStatus value.
     */
    public String agentStatus() {
        return this.agentStatus;
    }

    /**
     * Set the agentStatus property: Status of the NewRelic agent installed on the App service.
     *
     * @param agentStatus the agentStatus value to set.
     * @return the AppServiceInfoInner object itself.
     */
    public AppServiceInfoInner withAgentStatus(String agentStatus) {
        this.agentStatus = agentStatus;
        return this;
    }

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