Class VolumePropertiesExportPolicy
java.lang.Object
com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumePropertiesExportPolicy>
public final class VolumePropertiesExportPolicy
extends Object
implements com.azure.json.JsonSerializable<VolumePropertiesExportPolicy>
exportPolicy
Set of export policy rules.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VolumePropertiesExportPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumePropertiesExportPolicy
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VolumePropertiesExportPolicy from the JsonReader.rules()
Get the rules property: Export policy rule.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withRules
(List<ExportPolicyRule> rules) Set the rules property: Export policy rule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VolumePropertiesExportPolicy
public VolumePropertiesExportPolicy()Creates an instance of VolumePropertiesExportPolicy class.
-
-
Method Details
-
rules
Get the rules property: Export policy rule.- Returns:
- the rules value.
-
withRules
Set the rules property: Export policy rule.- Parameters:
rules
- the rules value to set.- Returns:
- the VolumePropertiesExportPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VolumePropertiesExportPolicy>
- Throws:
IOException
-
fromJson
public static VolumePropertiesExportPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VolumePropertiesExportPolicy from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VolumePropertiesExportPolicy 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 VolumePropertiesExportPolicy.
-