Class CacheInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.storagecache.fluent.models.CacheInner
-
public final class CacheInner extends com.azure.core.management.Resource
A Cache instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md.
-
-
Constructor Summary
Constructors Constructor Description CacheInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
cacheSizeGB()
Get the cacheSizeGB property: The size of this Cache, in GB.CacheDirectorySettings
directoryServicesSettings()
Get the directoryServicesSettings property: Specifies Directory Services settings of the cache.CacheEncryptionSettings
encryptionSettings()
Get the encryptionSettings property: Specifies encryption settings of the cache.CacheHealth
health()
Get the health property: Health of the Cache.CacheIdentity
identity()
Get the identity property: The identity of the cache, if configured.List<String>
mountAddresses()
Get the mountAddresses property: Array of IP addresses that can be used by clients mounting this Cache.CacheNetworkSettings
networkSettings()
Get the networkSettings property: Specifies network settings of the cache.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.CacheSecuritySettings
securitySettings()
Get the securitySettings property: Specifies security settings of the cache.CacheSku
sku()
Get the sku property: SKU for the Cache.String
subnet()
Get the subnet property: Subnet used for the Cache.com.azure.core.management.SystemData
systemData()
Get the systemData property: The system meta data relating to this resource.CacheUpgradeStatus
upgradeStatus()
Get the upgradeStatus property: Upgrade status of the Cache.void
validate()
Validates the instance.CacheInner
withCacheSizeGB(Integer cacheSizeGB)
Set the cacheSizeGB property: The size of this Cache, in GB.CacheInner
withDirectoryServicesSettings(CacheDirectorySettings directoryServicesSettings)
Set the directoryServicesSettings property: Specifies Directory Services settings of the cache.CacheInner
withEncryptionSettings(CacheEncryptionSettings encryptionSettings)
Set the encryptionSettings property: Specifies encryption settings of the cache.CacheInner
withIdentity(CacheIdentity identity)
Set the identity property: The identity of the cache, if configured.CacheInner
withLocation(String location)
CacheInner
withNetworkSettings(CacheNetworkSettings networkSettings)
Set the networkSettings property: Specifies network settings of the cache.CacheInner
withSecuritySettings(CacheSecuritySettings securitySettings)
Set the securitySettings property: Specifies security settings of the cache.CacheInner
withSku(CacheSku sku)
Set the sku property: SKU for the Cache.CacheInner
withSubnet(String subnet)
Set the subnet property: Subnet used for the Cache.CacheInner
withTags(Map<String,String> tags)
CacheInner
withZones(List<String> zones)
Set the zones property: Availability zones for resources.List<String>
zones()
Get the zones property: Availability zones for resources.
-
-
-
Method Detail
-
identity
public CacheIdentity identity()
Get the identity property: The identity of the cache, if configured.- Returns:
- the identity value.
-
withIdentity
public CacheInner withIdentity(CacheIdentity identity)
Set the identity property: The identity of the cache, if configured.- Parameters:
identity
- the identity value to set.- Returns:
- the CacheInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()
Get the systemData property: The system meta data relating to this resource.- Returns:
- the systemData value.
-
sku
public CacheSku sku()
Get the sku property: SKU for the Cache.- Returns:
- the sku value.
-
withSku
public CacheInner withSku(CacheSku sku)
Set the sku property: SKU for the Cache.- Parameters:
sku
- the sku value to set.- Returns:
- the CacheInner object itself.
-
withLocation
public CacheInner withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public CacheInner withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
cacheSizeGB
public Integer cacheSizeGB()
Get the cacheSizeGB property: The size of this Cache, in GB.- Returns:
- the cacheSizeGB value.
-
withCacheSizeGB
public CacheInner withCacheSizeGB(Integer cacheSizeGB)
Set the cacheSizeGB property: The size of this Cache, in GB.- Parameters:
cacheSizeGB
- the cacheSizeGB value to set.- Returns:
- the CacheInner object itself.
-
health
public CacheHealth health()
Get the health property: Health of the Cache.- Returns:
- the health value.
-
mountAddresses
public List<String> mountAddresses()
Get the mountAddresses property: Array of IP addresses that can be used by clients mounting this Cache.- Returns:
- the mountAddresses value.
-
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:
- the provisioningState value.
-
subnet
public String subnet()
Get the subnet property: Subnet used for the Cache.- Returns:
- the subnet value.
-
withSubnet
public CacheInner withSubnet(String subnet)
Set the subnet property: Subnet used for the Cache.- Parameters:
subnet
- the subnet value to set.- Returns:
- the CacheInner object itself.
-
upgradeStatus
public CacheUpgradeStatus upgradeStatus()
Get the upgradeStatus property: Upgrade status of the Cache.- Returns:
- the upgradeStatus value.
-
networkSettings
public CacheNetworkSettings networkSettings()
Get the networkSettings property: Specifies network settings of the cache.- Returns:
- the networkSettings value.
-
withNetworkSettings
public CacheInner withNetworkSettings(CacheNetworkSettings networkSettings)
Set the networkSettings property: Specifies network settings of the cache.- Parameters:
networkSettings
- the networkSettings value to set.- Returns:
- the CacheInner object itself.
-
encryptionSettings
public CacheEncryptionSettings encryptionSettings()
Get the encryptionSettings property: Specifies encryption settings of the cache.- Returns:
- the encryptionSettings value.
-
withEncryptionSettings
public CacheInner withEncryptionSettings(CacheEncryptionSettings encryptionSettings)
Set the encryptionSettings property: Specifies encryption settings of the cache.- Parameters:
encryptionSettings
- the encryptionSettings value to set.- Returns:
- the CacheInner object itself.
-
securitySettings
public CacheSecuritySettings securitySettings()
Get the securitySettings property: Specifies security settings of the cache.- Returns:
- the securitySettings value.
-
withSecuritySettings
public CacheInner withSecuritySettings(CacheSecuritySettings securitySettings)
Set the securitySettings property: Specifies security settings of the cache.- Parameters:
securitySettings
- the securitySettings value to set.- Returns:
- the CacheInner object itself.
-
directoryServicesSettings
public CacheDirectorySettings directoryServicesSettings()
Get the directoryServicesSettings property: Specifies Directory Services settings of the cache.- Returns:
- the directoryServicesSettings value.
-
withDirectoryServicesSettings
public CacheInner withDirectoryServicesSettings(CacheDirectorySettings directoryServicesSettings)
Set the directoryServicesSettings property: Specifies Directory Services settings of the cache.- Parameters:
directoryServicesSettings
- the directoryServicesSettings value to set.- Returns:
- the CacheInner object itself.
-
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:
- the zones value.
-
withZones
public CacheInner withZones(List<String> zones)
Set the zones property: Availability zones for resources. This field should only contain a single element in the array.- Parameters:
zones
- the zones value to set.- Returns:
- the CacheInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-