Class KeyValueProperties
java.lang.Object
com.azure.resourcemanager.appconfiguration.fluent.models.KeyValueProperties
All key-value properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the contentType property: The content type of the key-value's value.etag()
Get the etag property: An ETag indicating the state of a key-value within a configuration store.key()
Get the key property: The primary identifier of a key-value.label()
Get the label property: A value used to group key-values.Get the lastModified property: The last time a modifying operation was performed on the given key-value.locked()
Get the locked property: A value indicating whether the key-value is locked.tags()
Get the tags property: A dictionary of tags that can help identify what a key-value may be applicable for.void
validate()
Validates the instance.value()
Get the value property: The value of the key-value.withContentType
(String contentType) Set the contentType property: The content type of the key-value's value.Set the tags property: A dictionary of tags that can help identify what a key-value may be applicable for.Set the value property: The value of the key-value.
-
Constructor Details
-
KeyValueProperties
public KeyValueProperties()
-
-
Method Details
-
key
Get the key property: The primary identifier of a key-value. The key is used in unison with the label to uniquely identify a key-value.- Returns:
- the key value.
-
label
Get the label property: A value used to group key-values. The label is used in unison with the key to uniquely identify a key-value.- Returns:
- the label value.
-
value
Get the value property: The value of the key-value.- Returns:
- the value value.
-
withValue
Set the value property: The value of the key-value.- Parameters:
value
- the value value to set.- Returns:
- the KeyValueProperties object itself.
-
contentType
Get the contentType property: The content type of the key-value's value. Providing a proper content-type can enable transformations of values when they are retrieved by applications.- Returns:
- the contentType value.
-
withContentType
Set the contentType property: The content type of the key-value's value. Providing a proper content-type can enable transformations of values when they are retrieved by applications.- Parameters:
contentType
- the contentType value to set.- Returns:
- the KeyValueProperties object itself.
-
etag
Get the etag property: An ETag indicating the state of a key-value within a configuration store.- Returns:
- the etag value.
-
lastModified
Get the lastModified property: The last time a modifying operation was performed on the given key-value.- Returns:
- the lastModified value.
-
locked
Get the locked property: A value indicating whether the key-value is locked. A locked key-value may not be modified until it is unlocked.- Returns:
- the locked value.
-
tags
Get the tags property: A dictionary of tags that can help identify what a key-value may be applicable for.- Returns:
- the tags value.
-
withTags
Set the tags property: A dictionary of tags that can help identify what a key-value may be applicable for.- Parameters:
tags
- the tags value to set.- Returns:
- the KeyValueProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-