VnetGatewayInner Class

public final class VnetGatewayInner
extends ProxyOnlyResource

The Virtual Network gateway contract. This is used to give the Virtual Network gateway access to the VPN package.

Constructor Summary

Constructor Description
VnetGatewayInner()

Creates an instance of VnetGatewayInner class.

Method Summary

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

Reads an instance of VnetGatewayInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

String vnetName()

Get the vnetName property: The Virtual Network name.

String vpnPackageUri()

Get the vpnPackageUri property: The URI where the VPN package can be downloaded.

VnetGatewayInner withKind(String kind)

Set the kind property: Kind of resource.

VnetGatewayInner withVnetName(String vnetName)

Set the vnetName property: The Virtual Network name.

VnetGatewayInner withVpnPackageUri(String vpnPackageUri)

Set the vpnPackageUri property: The URI where the VPN package can be downloaded.

Methods inherited from ProxyOnlyResource

Methods inherited from java.lang.Object

Constructor Details

VnetGatewayInner

public VnetGatewayInner()

Creates an instance of VnetGatewayInner class.

Method Details

fromJson

public static VnetGatewayInner fromJson(JsonReader jsonReader)

Reads an instance of VnetGatewayInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VnetGatewayInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

VnetGatewayInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VnetGatewayInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VnetGatewayInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VnetGatewayInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

VnetGatewayInner.validate()

vnetName

public String vnetName()

Get the vnetName property: The Virtual Network name.

Returns:

the vnetName value.

vpnPackageUri

public String vpnPackageUri()

Get the vpnPackageUri property: The URI where the VPN package can be downloaded.

Returns:

the vpnPackageUri value.

withKind

public VnetGatewayInner withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

VnetGatewayInner.withKind(String kind)

Parameters:

kind

withVnetName

public VnetGatewayInner withVnetName(String vnetName)

Set the vnetName property: The Virtual Network name.

Parameters:

vnetName - the vnetName value to set.

Returns:

the VnetGatewayInner object itself.

withVpnPackageUri

public VnetGatewayInner withVpnPackageUri(String vpnPackageUri)

Set the vpnPackageUri property: The URI where the VPN package can be downloaded.

Parameters:

vpnPackageUri - the vpnPackageUri value to set.

Returns:

the VnetGatewayInner object itself.

Applies to