Class VolumePatch
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.netapp.models.VolumePatch
-
public final class VolumePatch extends com.azure.core.management.Resource
Volume patch resource.
-
-
Constructor Summary
Constructors Constructor Description VolumePatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumePatchPropertiesDataProtection
dataProtection()
Get the dataProtection property: DataProtection DataProtection type volumes include an object containing details of the replication.Long
defaultGroupQuotaInKiBs()
Get the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs.Long
defaultUserQuotaInKiBs()
Get the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs.VolumePatchPropertiesExportPolicy
exportPolicy()
Get the exportPolicy property: exportPolicy Set of export policy rules.Boolean
isDefaultQuotaEnabled()
Get the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume.ServiceLevel
serviceLevel()
Get the serviceLevel property: serviceLevel The service level of the file system.Float
throughputMibps()
Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will be accepted as input only for manual qosType volume.String
unixPermissions()
Get the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format.Long
usageThreshold()
Get the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes.void
validate()
Validates the instance.VolumePatch
withDataProtection(VolumePatchPropertiesDataProtection dataProtection)
Set the dataProtection property: DataProtection DataProtection type volumes include an object containing details of the replication.VolumePatch
withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs)
Set the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs.VolumePatch
withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs)
Set the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs.VolumePatch
withExportPolicy(VolumePatchPropertiesExportPolicy exportPolicy)
Set the exportPolicy property: exportPolicy Set of export policy rules.VolumePatch
withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled)
Set the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume.VolumePatch
withLocation(String location)
VolumePatch
withServiceLevel(ServiceLevel serviceLevel)
Set the serviceLevel property: serviceLevel The service level of the file system.VolumePatch
withTags(Map<String,String> tags)
VolumePatch
withThroughputMibps(Float throughputMibps)
Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will be accepted as input only for manual qosType volume.VolumePatch
withUnixPermissions(String unixPermissions)
Set the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format.VolumePatch
withUsageThreshold(Long usageThreshold)
Set the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes.
-
-
-
Method Detail
-
withLocation
public VolumePatch withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public VolumePatch withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
serviceLevel
public ServiceLevel serviceLevel()
Get the serviceLevel property: serviceLevel The service level of the file system.- Returns:
- the serviceLevel value.
-
withServiceLevel
public VolumePatch withServiceLevel(ServiceLevel serviceLevel)
Set the serviceLevel property: serviceLevel The service level of the file system.- Parameters:
serviceLevel
- the serviceLevel value to set.- Returns:
- the VolumePatch object itself.
-
usageThreshold
public Long usageThreshold()
Get the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.- Returns:
- the usageThreshold value.
-
withUsageThreshold
public VolumePatch withUsageThreshold(Long usageThreshold)
Set the usageThreshold property: usageThreshold Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.- Parameters:
usageThreshold
- the usageThreshold value to set.- Returns:
- the VolumePatch object itself.
-
exportPolicy
public VolumePatchPropertiesExportPolicy exportPolicy()
Get the exportPolicy property: exportPolicy Set of export policy rules.- Returns:
- the exportPolicy value.
-
withExportPolicy
public VolumePatch withExportPolicy(VolumePatchPropertiesExportPolicy exportPolicy)
Set the exportPolicy property: exportPolicy Set of export policy rules.- Parameters:
exportPolicy
- the exportPolicy value to set.- Returns:
- the VolumePatch object itself.
-
throughputMibps
public Float throughputMibps()
Get the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will be accepted as input only for manual qosType volume.- Returns:
- the throughputMibps value.
-
withThroughputMibps
public VolumePatch withThroughputMibps(Float throughputMibps)
Set the throughputMibps property: Maximum throughput in Mibps that can be achieved by this volume and this will be accepted as input only for manual qosType volume.- Parameters:
throughputMibps
- the throughputMibps value to set.- Returns:
- the VolumePatch object itself.
-
dataProtection
public VolumePatchPropertiesDataProtection dataProtection()
Get the dataProtection property: DataProtection DataProtection type volumes include an object containing details of the replication.- Returns:
- the dataProtection value.
-
withDataProtection
public VolumePatch withDataProtection(VolumePatchPropertiesDataProtection dataProtection)
Set the dataProtection property: DataProtection DataProtection type volumes include an object containing details of the replication.- Parameters:
dataProtection
- the dataProtection value to set.- Returns:
- the VolumePatch object itself.
-
isDefaultQuotaEnabled
public Boolean isDefaultQuotaEnabled()
Get the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume.- Returns:
- the isDefaultQuotaEnabled value.
-
withIsDefaultQuotaEnabled
public VolumePatch withIsDefaultQuotaEnabled(Boolean isDefaultQuotaEnabled)
Set the isDefaultQuotaEnabled property: Specifies if default quota is enabled for the volume.- Parameters:
isDefaultQuotaEnabled
- the isDefaultQuotaEnabled value to set.- Returns:
- the VolumePatch object itself.
-
defaultUserQuotaInKiBs
public Long defaultUserQuotaInKiBs()
Get the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies .- Returns:
- the defaultUserQuotaInKiBs value.
-
withDefaultUserQuotaInKiBs
public VolumePatch withDefaultUserQuotaInKiBs(Long defaultUserQuotaInKiBs)
Set the defaultUserQuotaInKiBs property: Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies .- Parameters:
defaultUserQuotaInKiBs
- the defaultUserQuotaInKiBs value to set.- Returns:
- the VolumePatch object itself.
-
defaultGroupQuotaInKiBs
public Long defaultGroupQuotaInKiBs()
Get the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies.- Returns:
- the defaultGroupQuotaInKiBs value.
-
withDefaultGroupQuotaInKiBs
public VolumePatch withDefaultGroupQuotaInKiBs(Long defaultGroupQuotaInKiBs)
Set the defaultGroupQuotaInKiBs property: Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies.- Parameters:
defaultGroupQuotaInKiBs
- the defaultGroupQuotaInKiBs value to set.- Returns:
- the VolumePatch object itself.
-
unixPermissions
public String unixPermissions()
Get the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users.- Returns:
- the unixPermissions value.
-
withUnixPermissions
public VolumePatch withUnixPermissions(String unixPermissions)
Set the unixPermissions property: UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users.- Parameters:
unixPermissions
- the unixPermissions value to set.- Returns:
- the VolumePatch object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-