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 Details

    • BastionHostPropertiesFormatNetworkAcls

      public BastionHostPropertiesFormatNetworkAcls()
      Creates an instance of BastionHostPropertiesFormatNetworkAcls class.
  • Method Details

    • ipRules

      public List<IpRule> ipRules()
      Get the ipRules property: Sets the IP ACL rules for Developer Bastion Host.
      Returns:
      the ipRules value.
    • withIpRules

      public BastionHostPropertiesFormatNetworkAcls withIpRules(List<IpRule> ipRules)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.