Share via


RouteTargetAddressPropertiesFormatInner Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.RouteTargetAddressPropertiesFormatInner

Implements

public final class RouteTargetAddressPropertiesFormatInner
implements JsonSerializable<RouteTargetAddressPropertiesFormatInner>

Properties of route target address.

Constructor Summary

Constructor Description
RouteTargetAddressPropertiesFormatInner()

Creates an instance of RouteTargetAddressPropertiesFormatInner class.

Method Summary

Modifier and Type Method and Description
static RouteTargetAddressPropertiesFormatInner fromJson(JsonReader jsonReader)

Reads an instance of RouteTargetAddressPropertiesFormatInner from the JsonReader.

String privateIpAddress()

Get the privateIpAddress property: The private IPv4 or IPv6 address of the service gateway route target address.

IpAllocationMethod privateIpAllocationMethod()

Get the privateIpAllocationMethod property: The Private IP allocation method.

SubnetInner subnet()

Get the subnet property: The reference to the subnet resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RouteTargetAddressPropertiesFormatInner withPrivateIpAddress(String privateIpAddress)

Set the privateIpAddress property: The private IPv4 or IPv6 address of the service gateway route target address.

RouteTargetAddressPropertiesFormatInner withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)

Set the privateIpAllocationMethod property: The Private IP allocation method.

RouteTargetAddressPropertiesFormatInner withSubnet(SubnetInner subnet)

Set the subnet property: The reference to the subnet resource.

Methods inherited from java.lang.Object

Constructor Details

RouteTargetAddressPropertiesFormatInner

public RouteTargetAddressPropertiesFormatInner()

Creates an instance of RouteTargetAddressPropertiesFormatInner class.

Method Details

fromJson

public static RouteTargetAddressPropertiesFormatInner fromJson(JsonReader jsonReader)

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.

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.

privateIpAllocationMethod

public IpAllocationMethod privateIpAllocationMethod()

Get the privateIpAllocationMethod property: The Private IP allocation method.

Returns:

the privateIpAllocationMethod value.

subnet

public SubnetInner subnet()

Get the subnet property: The reference to the subnet resource.

Returns:

the subnet value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

withSubnet

public RouteTargetAddressPropertiesFormatInner withSubnet(SubnetInner subnet)

Set the subnet property: The reference to the subnet resource.

Parameters:

subnet - the subnet value to set.

Returns:

the RouteTargetAddressPropertiesFormatInner object itself.

Applies to