Class BreakFileLocksRequest
java.lang.Object
com.azure.resourcemanager.netapp.models.BreakFileLocksRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BreakFileLocksRequest>
public final class BreakFileLocksRequest
extends Object
implements com.azure.json.JsonSerializable<BreakFileLocksRequest>
Break file locks request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientIp()
Get the clientIp property: To clear file locks on a volume for a particular client.Get the confirmRunningDisruptiveOperation property: Break File locks could be a disruptive operation for application as locks on the volume will be broken, if want to process, set to true.static BreakFileLocksRequest
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BreakFileLocksRequest from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withClientIp
(String clientIp) Set the clientIp property: To clear file locks on a volume for a particular client.withConfirmRunningDisruptiveOperation
(Boolean confirmRunningDisruptiveOperation) Set the confirmRunningDisruptiveOperation property: Break File locks could be a disruptive operation for application as locks on the volume will be broken, if want to process, set to true.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
-
BreakFileLocksRequest
public BreakFileLocksRequest()Creates an instance of BreakFileLocksRequest class.
-
-
Method Details
-
clientIp
Get the clientIp property: To clear file locks on a volume for a particular client.- Returns:
- the clientIp value.
-
withClientIp
Set the clientIp property: To clear file locks on a volume for a particular client.- Parameters:
clientIp
- the clientIp value to set.- Returns:
- the BreakFileLocksRequest object itself.
-
confirmRunningDisruptiveOperation
Get the confirmRunningDisruptiveOperation property: Break File locks could be a disruptive operation for application as locks on the volume will be broken, if want to process, set to true.- Returns:
- the confirmRunningDisruptiveOperation value.
-
withConfirmRunningDisruptiveOperation
public BreakFileLocksRequest withConfirmRunningDisruptiveOperation(Boolean confirmRunningDisruptiveOperation) Set the confirmRunningDisruptiveOperation property: Break File locks could be a disruptive operation for application as locks on the volume will be broken, if want to process, set to true.- Parameters:
confirmRunningDisruptiveOperation
- the confirmRunningDisruptiveOperation value to set.- Returns:
- the BreakFileLocksRequest 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<BreakFileLocksRequest>
- Throws:
IOException
-
fromJson
public static BreakFileLocksRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BreakFileLocksRequest from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BreakFileLocksRequest 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 BreakFileLocksRequest.
-