Class SharedPublicIpAddressConfiguration

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

public final class SharedPublicIpAddressConfiguration extends Object implements com.azure.json.JsonSerializable<SharedPublicIpAddressConfiguration>
Properties of a virtual machine that determine how it is connected to a load balancer.
  • Constructor Details

    • SharedPublicIpAddressConfiguration

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

    • inboundNatRules

      public List<InboundNatRule> inboundNatRules()
      Get the inboundNatRules property: The incoming NAT rules.
      Returns:
      the inboundNatRules value.
    • withInboundNatRules

      public SharedPublicIpAddressConfiguration withInboundNatRules(List<InboundNatRule> inboundNatRules)
      Set the inboundNatRules property: The incoming NAT rules.
      Parameters:
      inboundNatRules - the inboundNatRules value to set.
      Returns:
      the SharedPublicIpAddressConfiguration 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<SharedPublicIpAddressConfiguration>
      Throws:
      IOException
    • fromJson

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