/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.eventgrid.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Schema of the Data property of an EventGridEvent for an
 * Microsoft.AppConfiguration.KeyValueDeleted event.
 */
public class AppConfigurationKeyValueDeletedEventData {
    /**
     * The key used to identify the key-value that was deleted.
     */
    @JsonProperty(value = "key")
    private String key;

    /**
     * The label, if any, used to identify the key-value that was deleted.
     */
    @JsonProperty(value = "label")
    private String label;

    /**
     * The etag representing the key-value that was deleted.
     */
    @JsonProperty(value = "etag")
    private String etag;

    /**
     * Get the key used to identify the key-value that was deleted.
     *
     * @return the key value
     */
    public String key() {
        return this.key;
    }

    /**
     * Set the key used to identify the key-value that was deleted.
     *
     * @param key the key value to set
     * @return the AppConfigurationKeyValueDeletedEventData object itself.
     */
    public AppConfigurationKeyValueDeletedEventData withKey(String key) {
        this.key = key;
        return this;
    }

    /**
     * Get the label, if any, used to identify the key-value that was deleted.
     *
     * @return the label value
     */
    public String label() {
        return this.label;
    }

    /**
     * Set the label, if any, used to identify the key-value that was deleted.
     *
     * @param label the label value to set
     * @return the AppConfigurationKeyValueDeletedEventData object itself.
     */
    public AppConfigurationKeyValueDeletedEventData withLabel(String label) {
        this.label = label;
        return this;
    }

    /**
     * Get the etag representing the key-value that was deleted.
     *
     * @return the etag value
     */
    public String etag() {
        return this.etag;
    }

    /**
     * Set the etag representing the key-value that was deleted.
     *
     * @param etag the etag value to set
     * @return the AppConfigurationKeyValueDeletedEventData object itself.
     */
    public AppConfigurationKeyValueDeletedEventData withEtag(String etag) {
        this.etag = etag;
        return this;
    }

}
