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 Summary
ConstructorsConstructorDescriptionCreates an instance of RouteTargetAddressPropertiesFormatInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteTargetAddressPropertiesFormatInner from the JsonReader.Get the privateIpAddress property: The private IPv4 or IPv6 address of the service gateway route target address.Get the privateIpAllocationMethod property: The Private IP allocation method.subnet()Get the subnet property: The reference to the subnet resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPrivateIpAddress(String privateIpAddress) Set the privateIpAddress property: The private IPv4 or IPv6 address of the service gateway route target address.withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod) Set the privateIpAllocationMethod property: The Private IP allocation method.withSubnet(SubnetInner subnet) Set the subnet property: The reference to the subnet resource.Methods inherited from class 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
-
RouteTargetAddressPropertiesFormatInner
public RouteTargetAddressPropertiesFormatInner()Creates an instance of RouteTargetAddressPropertiesFormatInner class.
-
-
Method Details
-
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
Get the privateIpAddress property: The private IPv4 or IPv6 address of the service gateway route target address.- Returns:
- the privateIpAddress value.
-
withPrivateIpAddress
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
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
- Specified by:
toJsonin interfacecom.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.
-