CacheInner Class

public final class CacheInner
extends ProxyResource

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

Constructor Description
CacheInner()

Creates an instance of CacheInner class.

Method Summary

Modifier and Type Method and 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.

static CacheInner fromJson(JsonReader jsonReader)

Reads an instance of CacheInner from the JsonReader.

CacheHealth health()

Get the health property: Health of the cache.

String id()

Get the id property: Fully qualified resource Id for the resource.

CacheIdentity identity()

Get the identity property: The identity of the cache, if configured.

String location()

Get the location property: The geo-location where the resource lives.

List<String> mountAddresses()

Get the mountAddresses property: Array of IPv4 addresses that can be used by clients mounting this cache.

String name()

Get the name property: The name of the resource.

CacheNetworkSettings networkSettings()

Get the networkSettings property: Specifies network settings of the cache.

List<PrimingJob> primingJobs()

Get the primingJobs property: Specifies the priming jobs defined in 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.

List<StorageTargetSpaceAllocation> spaceAllocation()

Get the spaceAllocation property: Specifies the space allocation percentage for each storage target in the cache.

String subnet()

Get the subnet property: Subnet used for the cache.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

CacheUpgradeSettings upgradeSettings()

Get the upgradeSettings property: Upgrade settings of the cache.

CacheUpgradeStatus upgradeStatus()

Get the upgradeStatus property: Upgrade status of the cache.

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)

Set the location property: The geo-location where the resource lives.

CacheInner withNetworkSettings(CacheNetworkSettings networkSettings)

Set the networkSettings property: Specifies network settings of the cache.

CacheInner withPrimingJobs(List<PrimingJob> primingJobs)

Set the primingJobs property: Specifies the priming jobs defined in 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)

Set the tags property: Resource tags.

CacheInner withUpgradeSettings(CacheUpgradeSettings upgradeSettings)

Set the upgradeSettings property: Upgrade settings of the cache.

CacheInner 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 ProxyResource

Methods inherited from java.lang.Object

Constructor Details

CacheInner

public CacheInner()

Creates an instance of CacheInner class.

Method Details

cacheSizeGB

public Integer cacheSizeGB()

Get the cacheSizeGB property: The size of this Cache, in GB.

Returns:

the cacheSizeGB value.

directoryServicesSettings

public CacheDirectorySettings directoryServicesSettings()

Get the directoryServicesSettings property: Specifies Directory Services settings of the cache.

Returns:

the directoryServicesSettings value.

encryptionSettings

public CacheEncryptionSettings encryptionSettings()

Get the encryptionSettings property: Specifies encryption settings of the cache.

Returns:

the encryptionSettings value.

fromJson

public static CacheInner fromJson(JsonReader jsonReader)

Reads an instance of CacheInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CacheInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

health

public CacheHealth health()

Get the health property: Health of the cache.

Returns:

the health value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

CacheInner.id()

Returns:

the id value.

identity

public CacheIdentity identity()

Get the identity property: The identity of the cache, if configured.

Returns:

the identity value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

mountAddresses

public List<String> mountAddresses()

Get the mountAddresses property: Array of IPv4 addresses that can be used by clients mounting this cache.

Returns:

the mountAddresses value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CacheInner.name()

Returns:

the name value.

networkSettings

public CacheNetworkSettings networkSettings()

Get the networkSettings property: Specifies network settings of the cache.

Returns:

the networkSettings value.

primingJobs

public List<PrimingJob> primingJobs()

Get the primingJobs property: Specifies the priming jobs defined in the cache.

Returns:

the primingJobs 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.

securitySettings

public CacheSecuritySettings securitySettings()

Get the securitySettings property: Specifies security settings of the cache.

Returns:

the securitySettings value.

sku

public CacheSku sku()

Get the sku property: SKU for the cache.

Returns:

the sku value.

spaceAllocation

public List<StorageTargetSpaceAllocation> spaceAllocation()

Get the spaceAllocation property: Specifies the space allocation percentage for each storage target in the cache.

Returns:

the spaceAllocation value.

subnet

public String subnet()

Get the subnet property: Subnet used for the cache.

Returns:

the subnet value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CacheInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CacheInner.type()

Returns:

the type value.

upgradeSettings

public CacheUpgradeSettings upgradeSettings()

Get the upgradeSettings property: Upgrade settings of the cache.

Returns:

the upgradeSettings value.

upgradeStatus

public CacheUpgradeStatus upgradeStatus()

Get the upgradeStatus property: Upgrade status of the cache.

Returns:

the upgradeStatus 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.

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.

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.

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.

withLocation

public CacheInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

Parameters:

location - the location value to set.

Returns:

the CacheInner object itself.

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.

withPrimingJobs

public CacheInner withPrimingJobs(List<PrimingJob> primingJobs)

Set the primingJobs property: Specifies the priming jobs defined in the cache.

Parameters:

primingJobs - the primingJobs value to set.

Returns:

the CacheInner object itself.

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.

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.

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.

withTags

public CacheInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the CacheInner object itself.

withUpgradeSettings

public CacheInner withUpgradeSettings(CacheUpgradeSettings upgradeSettings)

Set the upgradeSettings property: Upgrade settings of the cache.

Parameters:

upgradeSettings - the upgradeSettings value to set.

Returns:

the CacheInner object itself.

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.

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.

Applies to