Partager via


VpnLinkProviderProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.VpnLinkProviderProperties

Implements

public final class VpnLinkProviderProperties
implements JsonSerializable<VpnLinkProviderProperties>

List of properties of a link provider.

Constructor Summary

Constructor Description
VpnLinkProviderProperties()

Creates an instance of VpnLinkProviderProperties class.

Method Summary

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

Reads an instance of VpnLinkProviderProperties from the JsonReader.

String linkProviderName()

Get the linkProviderName property: Name of the link provider.

Integer linkSpeedInMbps()

Get the linkSpeedInMbps property: Link speed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VpnLinkProviderProperties withLinkProviderName(String linkProviderName)

Set the linkProviderName property: Name of the link provider.

VpnLinkProviderProperties withLinkSpeedInMbps(Integer linkSpeedInMbps)

Set the linkSpeedInMbps property: Link speed.

Methods inherited from java.lang.Object

Constructor Details

VpnLinkProviderProperties

public VpnLinkProviderProperties()

Creates an instance of VpnLinkProviderProperties class.

Method Details

fromJson

public static VpnLinkProviderProperties fromJson(JsonReader jsonReader)

Reads an instance of VpnLinkProviderProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VpnLinkProviderProperties 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 VpnLinkProviderProperties.

linkProviderName

public String linkProviderName()

Get the linkProviderName property: Name of the link provider.

Returns:

the linkProviderName value.

linkSpeedInMbps

public Integer linkSpeedInMbps()

Get the linkSpeedInMbps property: Link speed.

Returns:

the linkSpeedInMbps value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLinkProviderName

public VpnLinkProviderProperties withLinkProviderName(String linkProviderName)

Set the linkProviderName property: Name of the link provider.

Parameters:

linkProviderName - the linkProviderName value to set.

Returns:

the VpnLinkProviderProperties object itself.

withLinkSpeedInMbps

public VpnLinkProviderProperties withLinkSpeedInMbps(Integer linkSpeedInMbps)

Set the linkSpeedInMbps property: Link speed.

Parameters:

linkSpeedInMbps - the linkSpeedInMbps value to set.

Returns:

the VpnLinkProviderProperties object itself.

Applies to