Class RouteTargetAddressPropertiesFormatInner

java.lang.Object
com.azure.resourcemanager.network.fluent.models.RouteTargetAddressPropertiesFormatInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteTargetAddressPropertiesFormatInner>

public final class RouteTargetAddressPropertiesFormatInner extends Object implements com.azure.json.JsonSerializable<RouteTargetAddressPropertiesFormatInner>
Properties of route target address.
  • Constructor Details

    • RouteTargetAddressPropertiesFormatInner

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

    • subnet

      public SubnetInner subnet()
      Get the subnet property: The reference to the subnet resource.
      Returns:
      the subnet value.
    • withSubnet

      Set the subnet property: The reference to the subnet resource.
      Parameters:
      subnet - the subnet value to set.
      Returns:
      the RouteTargetAddressPropertiesFormatInner object itself.
    • privateIpAddress

      public String privateIpAddress()
      Get the privateIpAddress property: The private IPv4 or IPv6 address of the service gateway route target address.
      Returns:
      the privateIpAddress value.
    • withPrivateIpAddress

      public RouteTargetAddressPropertiesFormatInner withPrivateIpAddress(String privateIpAddress)
      Set the privateIpAddress property: The private IPv4 or IPv6 address of the service gateway route target address.
      Parameters:
      privateIpAddress - the privateIpAddress value to set.
      Returns:
      the RouteTargetAddressPropertiesFormatInner object itself.
    • privateIpAllocationMethod

      public IpAllocationMethod privateIpAllocationMethod()
      Get the privateIpAllocationMethod property: The Private IP allocation method.
      Returns:
      the privateIpAllocationMethod value.
    • withPrivateIpAllocationMethod

      public RouteTargetAddressPropertiesFormatInner withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)
      Set the privateIpAllocationMethod property: The Private IP allocation method.
      Parameters:
      privateIpAllocationMethod - the privateIpAllocationMethod value to set.
      Returns:
      the RouteTargetAddressPropertiesFormatInner 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<RouteTargetAddressPropertiesFormatInner>
      Throws:
      IOException
    • fromJson

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