CacheSecuritySettings Class

  • java.lang.Object
    • com.azure.resourcemanager.storagecache.models.CacheSecuritySettings

Implements

public final class CacheSecuritySettings
implements JsonSerializable<CacheSecuritySettings>

Cache security settings.

Constructor Summary

Constructor Description
CacheSecuritySettings()

Creates an instance of CacheSecuritySettings class.

Method Summary

Modifier and Type Method and Description
List<NfsAccessPolicy> accessPolicies()

Get the accessPolicies property: NFS access policies defined for this cache.

static CacheSecuritySettings fromJson(JsonReader jsonReader)

Reads an instance of CacheSecuritySettings from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
CacheSecuritySettings withAccessPolicies(List<NfsAccessPolicy> accessPolicies)

Set the accessPolicies property: NFS access policies defined for this cache.

Methods inherited from java.lang.Object

Constructor Details

CacheSecuritySettings

public CacheSecuritySettings()

Creates an instance of CacheSecuritySettings class.

Method Details

accessPolicies

public List<NfsAccessPolicy> accessPolicies()

Get the accessPolicies property: NFS access policies defined for this cache.

Returns:

the accessPolicies value.

fromJson

public static CacheSecuritySettings fromJson(JsonReader jsonReader)

Reads an instance of CacheSecuritySettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the CacheSecuritySettings.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withAccessPolicies

public CacheSecuritySettings withAccessPolicies(List<NfsAccessPolicy> accessPolicies)

Set the accessPolicies property: NFS access policies defined for this cache.

Parameters:

accessPolicies - the accessPolicies value to set.

Returns:

the CacheSecuritySettings object itself.

Applies to