Class BastionHostPropertiesFormatNetworkAcls
java.lang.Object
com.azure.resourcemanager.network.models.BastionHostPropertiesFormatNetworkAcls
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BastionHostPropertiesFormatNetworkAcls>
public final class BastionHostPropertiesFormatNetworkAcls
extends Object
implements com.azure.json.JsonSerializable<BastionHostPropertiesFormatNetworkAcls>
The BastionHostPropertiesFormatNetworkAcls model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BastionHostPropertiesFormatNetworkAcls class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BastionHostPropertiesFormatNetworkAcls from the JsonReader.ipRules()Get the ipRules property: Sets the IP ACL rules for Developer Bastion Host.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIpRules(List<IpRule> ipRules) Set the ipRules property: Sets the IP ACL rules for Developer Bastion Host.Methods inherited from class java.lang.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
-
BastionHostPropertiesFormatNetworkAcls
public BastionHostPropertiesFormatNetworkAcls()Creates an instance of BastionHostPropertiesFormatNetworkAcls class.
-
-
Method Details
-
ipRules
Get the ipRules property: Sets the IP ACL rules for Developer Bastion Host.- Returns:
- the ipRules value.
-
withIpRules
Set the ipRules property: Sets the IP ACL rules for Developer Bastion Host.- Parameters:
ipRules- the ipRules value to set.- Returns:
- the BastionHostPropertiesFormatNetworkAcls 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<BastionHostPropertiesFormatNetworkAcls>- Throws:
IOException
-
fromJson
public static BastionHostPropertiesFormatNetworkAcls fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BastionHostPropertiesFormatNetworkAcls from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BastionHostPropertiesFormatNetworkAcls 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 BastionHostPropertiesFormatNetworkAcls.
-