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

package com.azure.resourcemanager.appservice.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Resource metric property. */
@Fluent
public final class ResourceMetricProperty {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceMetricProperty.class);

    /*
     * Key for resource metric property.
     */
    @JsonProperty(value = "key")
    private String key;

    /*
     * Value of pair.
     */
    @JsonProperty(value = "value")
    private String value;

    /**
     * Get the key property: Key for resource metric property.
     *
     * @return the key value.
     */
    public String key() {
        return this.key;
    }

    /**
     * Set the key property: Key for resource metric property.
     *
     * @param key the key value to set.
     * @return the ResourceMetricProperty object itself.
     */
    public ResourceMetricProperty withKey(String key) {
        this.key = key;
        return this;
    }

    /**
     * Get the value property: Value of pair.
     *
     * @return the value value.
     */
    public String value() {
        return this.value;
    }

    /**
     * Set the value property: Value of pair.
     *
     * @param value the value value to set.
     * @return the ResourceMetricProperty object itself.
     */
    public ResourceMetricProperty withValue(String value) {
        this.value = value;
        return this;
    }

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