com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueModifiedEventData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-messaging-eventgrid Show documentation
Show all versions of azure-messaging-eventgrid Show documentation
This package contains Microsoft Azure EventGrid SDK.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.messaging.eventgrid.systemevents;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueModified event. */
@Fluent
public final class AppConfigurationKeyValueModifiedEventData {
/*
* The key used to identify the key-value that was modified.
*/
@JsonProperty(value = "key")
private String key;
/*
* The label, if any, used to identify the key-value that was modified.
*/
@JsonProperty(value = "label")
private String label;
/*
* The etag representing the new state of the key-value.
*/
@JsonProperty(value = "etag")
private String etag;
/*
* The sync token representing the server state after the event.
*/
@JsonProperty(value = "syncToken")
private String syncToken;
/** Creates an instance of AppConfigurationKeyValueModifiedEventData class. */
public AppConfigurationKeyValueModifiedEventData() {}
/**
* Get the key property: The key used to identify the key-value that was modified.
*
* @return the key value.
*/
public String getKey() {
return this.key;
}
/**
* Set the key property: The key used to identify the key-value that was modified.
*
* @param key the key value to set.
* @return the AppConfigurationKeyValueModifiedEventData object itself.
*/
public AppConfigurationKeyValueModifiedEventData setKey(String key) {
this.key = key;
return this;
}
/**
* Get the label property: The label, if any, used to identify the key-value that was modified.
*
* @return the label value.
*/
public String getLabel() {
return this.label;
}
/**
* Set the label property: The label, if any, used to identify the key-value that was modified.
*
* @param label the label value to set.
* @return the AppConfigurationKeyValueModifiedEventData object itself.
*/
public AppConfigurationKeyValueModifiedEventData setLabel(String label) {
this.label = label;
return this;
}
/**
* Get the etag property: The etag representing the new state of the key-value.
*
* @return the etag value.
*/
public String getEtag() {
return this.etag;
}
/**
* Set the etag property: The etag representing the new state of the key-value.
*
* @param etag the etag value to set.
* @return the AppConfigurationKeyValueModifiedEventData object itself.
*/
public AppConfigurationKeyValueModifiedEventData setEtag(String etag) {
this.etag = etag;
return this;
}
/**
* Get the syncToken property: The sync token representing the server state after the event.
*
* @return the syncToken value.
*/
public String getSyncToken() {
return this.syncToken;
}
/**
* Set the syncToken property: The sync token representing the server state after the event.
*
* @param syncToken the syncToken value to set.
* @return the AppConfigurationKeyValueModifiedEventData object itself.
*/
public AppConfigurationKeyValueModifiedEventData setSyncToken(String syncToken) {
this.syncToken = syncToken;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy