CacheProperties Class
- java.
lang. Object - com.
azure. resourcemanager. storagecache. fluent. models. CacheProperties
- com.
Implements
public final class CacheProperties
implements JsonSerializable<CacheProperties>
Properties of the cache.
Constructor Summary
| Constructor | Description |
|---|---|
| CacheProperties() |
Creates an instance of Cache |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
cacheSizeGB()
Get the cache |
|
Cache |
directoryServicesSettings()
Get the directory |
|
Cache |
encryptionSettings()
Get the encryption |
|
static
Cache |
fromJson(JsonReader jsonReader)
Reads an instance of Cache |
|
Cache |
health()
Get the health property: Health of the cache. |
| List<String> |
mountAddresses()
Get the mount |
|
Cache |
networkSettings()
Get the network |
|
List<Priming |
primingJobs()
Get the priming |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Cache |
securitySettings()
Get the security |
|
List<Storage |
spaceAllocation()
Get the space |
| String |
subnet()
Get the subnet property: Subnet used for the cache. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Cache |
upgradeSettings()
Get the upgrade |
|
Cache |
upgradeStatus()
Get the upgrade |
| void |
validate()
Validates the instance. |
|
Cache |
withCacheSizeGB(Integer cacheSizeGB)
Set the cache |
|
Cache |
withDirectoryServicesSettings(CacheDirectorySettings directoryServicesSettings)
Set the directory |
|
Cache |
withEncryptionSettings(CacheEncryptionSettings encryptionSettings)
Set the encryption |
|
Cache |
withNetworkSettings(CacheNetworkSettings networkSettings)
Set the network |
|
Cache |
withSecuritySettings(CacheSecuritySettings securitySettings)
Set the security |
|
Cache |
withSubnet(String subnet)
Set the subnet property: Subnet used for the cache. |
|
Cache |
withUpgradeSettings(CacheUpgradeSettings upgradeSettings)
Set the upgrade |
|
Cache |
withZones(List<String> zones)
Set the zones property: Availability zones for resources. |
| List<String> |
zones()
Get the zones property: Availability zones for resources. |
Methods inherited from java.lang.Object
Constructor Details
CacheProperties
public CacheProperties()
Creates an instance of CacheProperties class.
Method Details
cacheSizeGB
public Integer cacheSizeGB()
Get the cacheSizeGB property: The size of this Cache, in GB.
Returns:
directoryServicesSettings
public CacheDirectorySettings directoryServicesSettings()
Get the directoryServicesSettings property: Specifies Directory Services settings of the cache.
Returns:
encryptionSettings
public CacheEncryptionSettings encryptionSettings()
Get the encryptionSettings property: Specifies encryption settings of the cache.
Returns:
fromJson
public static CacheProperties fromJson(JsonReader jsonReader)
Reads an instance of CacheProperties from the JsonReader.
Parameters:
Returns:
Throws:
health
public CacheHealth health()
Get the health property: Health of the cache.
Returns:
mountAddresses
public List<String> mountAddresses()
Get the mountAddresses property: Array of IPv4 addresses that can be used by clients mounting this cache.
Returns:
networkSettings
public CacheNetworkSettings networkSettings()
Get the networkSettings property: Specifies network settings of the cache.
Returns:
primingJobs
public List<PrimingJob> primingJobs()
Get the primingJobs property: Specifies the priming jobs defined in the cache.
Returns:
provisioningState
public ProvisioningStateType provisioningState()
Get the provisioningState property: ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md\#provisioningstate-property.
Returns:
securitySettings
public CacheSecuritySettings securitySettings()
Get the securitySettings property: Specifies security settings of the cache.
Returns:
spaceAllocation
public List<StorageTargetSpaceAllocation> spaceAllocation()
Get the spaceAllocation property: Specifies the space allocation percentage for each storage target in the cache.
Returns:
subnet
public String subnet()
Get the subnet property: Subnet used for the cache.
Returns:
toJson
upgradeSettings
public CacheUpgradeSettings upgradeSettings()
Get the upgradeSettings property: Upgrade settings of the cache.
Returns:
upgradeStatus
public CacheUpgradeStatus upgradeStatus()
Get the upgradeStatus property: Upgrade status of the cache.
Returns:
validate
public void validate()
Validates the instance.
withCacheSizeGB
public CacheProperties withCacheSizeGB(Integer cacheSizeGB)
Set the cacheSizeGB property: The size of this Cache, in GB.
Parameters:
Returns:
withDirectoryServicesSettings
public CacheProperties withDirectoryServicesSettings(CacheDirectorySettings directoryServicesSettings)
Set the directoryServicesSettings property: Specifies Directory Services settings of the cache.
Parameters:
Returns:
withEncryptionSettings
public CacheProperties withEncryptionSettings(CacheEncryptionSettings encryptionSettings)
Set the encryptionSettings property: Specifies encryption settings of the cache.
Parameters:
Returns:
withNetworkSettings
public CacheProperties withNetworkSettings(CacheNetworkSettings networkSettings)
Set the networkSettings property: Specifies network settings of the cache.
Parameters:
Returns:
withSecuritySettings
public CacheProperties withSecuritySettings(CacheSecuritySettings securitySettings)
Set the securitySettings property: Specifies security settings of the cache.
Parameters:
Returns:
withSubnet
public CacheProperties withSubnet(String subnet)
Set the subnet property: Subnet used for the cache.
Parameters:
Returns:
withUpgradeSettings
public CacheProperties withUpgradeSettings(CacheUpgradeSettings upgradeSettings)
Set the upgradeSettings property: Upgrade settings of the cache.
Parameters:
Returns:
withZones
public CacheProperties withZones(List<String> zones)
Set the zones property: Availability zones for resources. This field should only contain a single element in the array.
Parameters:
Returns:
zones
public List<String> zones()
Get the zones property: Availability zones for resources. This field should only contain a single element in the array.
Returns: