ConfigurationSnapshot Class
- java.
lang. Object - com.
azure. data. appconfiguration. models. ConfigurationSnapshot
- com.
Implements
public final class ConfigurationSnapshot
implements JsonSerializable<ConfigurationSnapshot>
The ConfigurationSnapshot model.
Constructor Summary
Constructor | Description |
---|---|
ConfigurationSnapshot(List<ConfigurationSettingsFilter> filters) |
Creates an instance of Configuration |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Configuration |
fromJson(JsonReader jsonReader)
Reads an instance of Configuration |
Offset |
getCreatedAt()
Get the created |
String |
getETag()
Get the e |
Offset |
getExpiresAt()
Get the expires |
List<Configuration |
getFilters()
Get the filters property: A list of filters used to filter the key-values included in the snapshot. |
Long |
getItemCount()
Get the item |
String |
getName()
Get the name property: The name of the snapshot. |
Duration |
getRetentionPeriod()
Get the retention |
Long |
getSizeInBytes()
Get the size |
Snapshot |
getSnapshotComposition()
Get the snapshot |
Configuration |
getStatus()
Get the status property: The current status of the snapshot. |
Map<String,String> |
getTags()
Get the tags property: The tags of the snapshot. |
Configuration |
setRetentionPeriod(Duration retentionPeriod)
Set the retention |
Configuration |
setSnapshotComposition(SnapshotComposition snapshotComposition)
Set the snapshot |
Configuration |
setTags(Map<String,String> tags)
Set the tags property: The tags of the snapshot. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ConfigurationSnapshot
public ConfigurationSnapshot(List
Creates an instance of ConfigurationSnapshot class.
Parameters:
Method Details
fromJson
public static ConfigurationSnapshot fromJson(JsonReader jsonReader)
Reads an instance of ConfigurationSnapshot from the JsonReader.
Parameters:
Returns:
Throws:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: The time that the snapshot was created.
Returns:
getETag
public String getETag()
Get the eTag property: A value representing the current state of the snapshot.
Returns:
getExpiresAt
public OffsetDateTime getExpiresAt()
Get the expiresAt property: The time that the snapshot will expire.
Returns:
getFilters
public List
Get the filters property: A list of filters used to filter the key-values included in the snapshot.
Returns:
getItemCount
public Long getItemCount()
Get the itemCount property: The amount of key-values in the snapshot.
Returns:
getName
public String getName()
Get the name property: The name of the snapshot.
Returns:
getRetentionPeriod
public Duration 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:
getSizeInBytes
public Long getSizeInBytes()
Get the sizeInBytes property: The size in bytes of the snapshot.
Returns:
getSnapshotComposition
public SnapshotComposition 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:
getStatus
public ConfigurationSnapshotStatus getStatus()
Get the status property: The current status of the snapshot.
Returns:
getTags
public Map
Get the tags property: The tags of the snapshot.
Returns:
setRetentionPeriod
public ConfigurationSnapshot setRetentionPeriod(Duration retentionPeriod)
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:
Returns:
setSnapshotComposition
public ConfigurationSnapshot setSnapshotComposition(SnapshotComposition snapshotComposition)
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:
Returns:
setTags
public ConfigurationSnapshot setTags(Map
Set the tags property: The tags of the snapshot.
Parameters:
Returns:
toJson
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour