Class AccessControlRulesPrivilege
java.lang.Object
com.azure.resourcemanager.compute.models.AccessControlRulesPrivilege
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AccessControlRulesPrivilege>
public final class AccessControlRulesPrivilege
extends Object
implements com.azure.json.JsonSerializable<AccessControlRulesPrivilege>
The properties of an Access Control Rule Privilege.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AccessControlRulesPrivilege class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessControlRulesPrivilegefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AccessControlRulesPrivilege from the JsonReader.name()Get the name property: The name of the privilege.path()Get the path property: The HTTP path corresponding to the privilege.Get the queryParameters property: The query parameters to match in the path.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the name property: The name of the privilege.Set the path property: The HTTP path corresponding to the privilege.withQueryParameters(Map<String, String> queryParameters) Set the queryParameters property: The query parameters to match in the path.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AccessControlRulesPrivilege
public AccessControlRulesPrivilege()Creates an instance of AccessControlRulesPrivilege class.
-
-
Method Details
-
name
-
withName
Set the name property: The name of the privilege.- Parameters:
name- the name value to set.- Returns:
- the AccessControlRulesPrivilege object itself.
-
path
Get the path property: The HTTP path corresponding to the privilege.- Returns:
- the path value.
-
withPath
Set the path property: The HTTP path corresponding to the privilege.- Parameters:
path- the path value to set.- Returns:
- the AccessControlRulesPrivilege object itself.
-
queryParameters
-
withQueryParameters
Set the queryParameters property: The query parameters to match in the path.- Parameters:
queryParameters- the queryParameters value to set.- Returns:
- the AccessControlRulesPrivilege object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AccessControlRulesPrivilege>- Throws:
IOException
-
fromJson
public static AccessControlRulesPrivilege fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AccessControlRulesPrivilege from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AccessControlRulesPrivilege if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AccessControlRulesPrivilege.
-