Class ConfigurationSnapshot
java.lang.Object
com.azure.data.appconfiguration.models.ConfigurationSnapshot
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConfigurationSnapshot>
public final class ConfigurationSnapshot
extends Object
implements com.azure.json.JsonSerializable<ConfigurationSnapshot>
The ConfigurationSnapshot model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConfigurationSnapshot class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationSnapshotfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConfigurationSnapshot from the JsonReader.Get the createdAt property: The time that the snapshot was created.getETag()Get the eTag property: A value representing the current state of the snapshot.Get the expiresAt property: The time that the snapshot will expire.Get the filters property: A list of filters used to filter the key-values included in the snapshot.Get the itemCount property: The amount of key-values in the snapshot.getName()Get the name property: The name of the snapshot.Get the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived state before expiring.Get the sizeInBytes property: The size in bytes of the snapshot.Get the snapshotComposition property: The composition type describes how the key-values within the snapshot are composed.Get the status property: The current status of the snapshot.getTags()Get the tags property: The tags of the snapshot.setRetentionPeriod(Duration retentionPeriod) Set the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived state before expiring.setSnapshotComposition(SnapshotComposition snapshotComposition) Set the snapshotComposition property: The composition type describes how the key-values within the snapshot are composed.Set the tags property: The tags of the snapshot.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter)
-
Constructor Details
-
ConfigurationSnapshot
Creates an instance of ConfigurationSnapshot class.- Parameters:
filters- the filters value to set.
-
-
Method Details
-
getName
Get the name property: The name of the snapshot.- Returns:
- the name value.
-
getStatus
Get the status property: The current status of the snapshot.- Returns:
- the status value.
-
getFilters
Get the filters property: A list of filters used to filter the key-values included in the snapshot.- Returns:
- the filters value.
-
getSnapshotComposition
Get the snapshotComposition property: The composition type describes how the key-values within the snapshot are composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are no two key-values containing the same key and label.- Returns:
- the snapshotComposition value.
-
setSnapshotComposition
Set the snapshotComposition property: The composition type describes how the key-values within the snapshot are composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are no two key-values containing the same key and label.- Parameters:
snapshotComposition- the snapshotComposition value to set.- Returns:
- the ConfigurationSnapshot object itself.
-
getCreatedAt
Get the createdAt property: The time that the snapshot was created.- Returns:
- the createdAt value.
-
getExpiresAt
Get the expiresAt property: The time that the snapshot will expire.- Returns:
- the expiresAt value.
-
getRetentionPeriod
Get the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used.- Returns:
- the retentionPeriod value.
-
setRetentionPeriod
Set the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used.- Parameters:
retentionPeriod- the retentionPeriod value to set.- Returns:
- the ConfigurationSnapshot object itself.
-
getSizeInBytes
Get the sizeInBytes property: The size in bytes of the snapshot.- Returns:
- the sizeInBytes value.
-
getItemCount
Get the itemCount property: The amount of key-values in the snapshot.- Returns:
- the itemCount value.
-
getTags
Get the tags property: The tags of the snapshot.- Returns:
- the tags value.
-
setTags
Set the tags property: The tags of the snapshot.- Parameters:
tags- the tags value to set.- Returns:
- the ConfigurationSnapshot object itself.
-
getETag
Get the eTag property: A value representing the current state of the snapshot.- Returns:
- the eTag value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ConfigurationSnapshot>- Throws:
IOException
-
fromJson
public static ConfigurationSnapshot fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConfigurationSnapshot from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConfigurationSnapshot if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ConfigurationSnapshot.
-