Class NWRuleSetVirtualNetworkRules

java.lang.Object
com.azure.resourcemanager.servicebus.models.NWRuleSetVirtualNetworkRules
All Implemented Interfaces:
com.azure.json.JsonSerializable<NWRuleSetVirtualNetworkRules>

public final class NWRuleSetVirtualNetworkRules extends Object implements com.azure.json.JsonSerializable<NWRuleSetVirtualNetworkRules>
Description of VirtualNetworkRules - NetworkRules resource.
  • Constructor Details

    • NWRuleSetVirtualNetworkRules

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

    • subnet

      public Subnet subnet()
      Get the subnet property: Subnet properties.
      Returns:
      the subnet value.
    • withSubnet

      public NWRuleSetVirtualNetworkRules withSubnet(Subnet subnet)
      Set the subnet property: Subnet properties.
      Parameters:
      subnet - the subnet value to set.
      Returns:
      the NWRuleSetVirtualNetworkRules object itself.
    • ignoreMissingVnetServiceEndpoint

      public Boolean ignoreMissingVnetServiceEndpoint()
      Get the ignoreMissingVnetServiceEndpoint property: Value that indicates whether to ignore missing VNet Service Endpoint.
      Returns:
      the ignoreMissingVnetServiceEndpoint value.
    • withIgnoreMissingVnetServiceEndpoint

      public NWRuleSetVirtualNetworkRules withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint)
      Set the ignoreMissingVnetServiceEndpoint property: Value that indicates whether to ignore missing VNet Service Endpoint.
      Parameters:
      ignoreMissingVnetServiceEndpoint - the ignoreMissingVnetServiceEndpoint value to set.
      Returns:
      the NWRuleSetVirtualNetworkRules 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<NWRuleSetVirtualNetworkRules>
      Throws:
      IOException
    • fromJson

      public static NWRuleSetVirtualNetworkRules fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NWRuleSetVirtualNetworkRules from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NWRuleSetVirtualNetworkRules 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 NWRuleSetVirtualNetworkRules.