public final class ReadWriteDatabase extends DatabaseInner
Constructor and Description |
---|
ReadWriteDatabase() |
Modifier and Type | Method and Description |
---|---|
Duration |
hotCachePeriod()
Get the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan.
|
Boolean |
isFollowed()
Get the isFollowed property: Indicates whether the database is followed.
|
ResourceProvisioningState |
provisioningState()
Get the provisioningState property: The provisioned state of the resource.
|
Duration |
softDeletePeriod()
Get the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries
in TimeSpan.
|
DatabaseStatistics |
statistics()
Get the statistics property: The statistics of the database.
|
void |
validate()
Validates the instance.
|
ReadWriteDatabase |
withHotCachePeriod(Duration hotCachePeriod)
Set the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan.
|
ReadWriteDatabase |
withLocation(String location)
Set the location property: Resource location.
|
ReadWriteDatabase |
withSoftDeletePeriod(Duration softDeletePeriod)
Set the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries
in TimeSpan.
|
location, systemData
public ReadWriteDatabase withLocation(String location)
withLocation
in class DatabaseInner
location
- the location value to set.public ResourceProvisioningState provisioningState()
public Duration softDeletePeriod()
public ReadWriteDatabase withSoftDeletePeriod(Duration softDeletePeriod)
softDeletePeriod
- the softDeletePeriod value to set.public Duration hotCachePeriod()
public ReadWriteDatabase withHotCachePeriod(Duration hotCachePeriod)
hotCachePeriod
- the hotCachePeriod value to set.public DatabaseStatistics statistics()
public Boolean isFollowed()
public void validate()
validate
in class DatabaseInner
IllegalArgumentException
- thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.