Partilhar via


VpnSiteInner Class

public final class VpnSiteInner
extends Resource

VpnSite Resource.

Constructor Summary

Constructor Description
VpnSiteInner()

Creates an instance of VpnSiteInner class.

Method Summary

Modifier and Type Method and Description
AddressSpace addressSpace()

Get the addressSpace property: The AddressSpace that contains an array of IP address ranges.

BgpSettings bgpProperties()

Get the bgpProperties property: The set of bgp properties.

DeviceProperties deviceProperties()

Get the deviceProperties property: The device properties.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static VpnSiteInner fromJson(JsonReader jsonReader)

Reads an instance of VpnSiteInner from the JsonReader.

String id()

Get the id property: Resource ID.

String ipAddress()

Get the ipAddress property: The ip-address for the vpn-site.

Boolean isSecuritySite()

Get the isSecuritySite property: IsSecuritySite flag.

String name()

Get the name property: The name of the resource.

O365PolicyProperties o365Policy()

Get the o365Policy property: Office365 Policy.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the VPN site resource.

String siteKey()

Get the siteKey property: The key for vpn-site that can be used for connections.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SubResource virtualWan()

Get the virtualWan property: The VirtualWAN to which the vpnSite belongs.

List<VpnSiteLinkInner> vpnSiteLinks()

Get the vpnSiteLinks property: List of all vpn site links.

VpnSiteInner withAddressSpace(AddressSpace addressSpace)

Set the addressSpace property: The AddressSpace that contains an array of IP address ranges.

VpnSiteInner withBgpProperties(BgpSettings bgpProperties)

Set the bgpProperties property: The set of bgp properties.

VpnSiteInner withDeviceProperties(DeviceProperties deviceProperties)

Set the deviceProperties property: The device properties.

VpnSiteInner withId(String id)

Set the id property: Resource ID.

VpnSiteInner withIpAddress(String ipAddress)

Set the ipAddress property: The ip-address for the vpn-site.

VpnSiteInner withIsSecuritySite(Boolean isSecuritySite)

Set the isSecuritySite property: IsSecuritySite flag.

VpnSiteInner withLocation(String location)
VpnSiteInner withO365Policy(O365PolicyProperties o365Policy)

Set the o365Policy property: Office365 Policy.

VpnSiteInner withSiteKey(String siteKey)

Set the siteKey property: The key for vpn-site that can be used for connections.

VpnSiteInner withTags(Map<String,String> tags)
VpnSiteInner withVirtualWan(SubResource virtualWan)

Set the virtualWan property: The VirtualWAN to which the vpnSite belongs.

VpnSiteInner withVpnSiteLinks(List<VpnSiteLinkInner> vpnSiteLinks)

Set the vpnSiteLinks property: List of all vpn site links.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

VpnSiteInner

public VpnSiteInner()

Creates an instance of VpnSiteInner class.

Method Details

addressSpace

public AddressSpace addressSpace()

Get the addressSpace property: The AddressSpace that contains an array of IP address ranges.

Returns:

the addressSpace value.

bgpProperties

public BgpSettings bgpProperties()

Get the bgpProperties property: The set of bgp properties.

Returns:

the bgpProperties value.

deviceProperties

public DeviceProperties deviceProperties()

Get the deviceProperties property: The device properties.

Returns:

the deviceProperties value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static VpnSiteInner fromJson(JsonReader jsonReader)

Reads an instance of VpnSiteInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VpnSiteInner 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: Resource ID.

Overrides:

VpnSiteInner.id()

Returns:

the id value.

ipAddress

public String ipAddress()

Get the ipAddress property: The ip-address for the vpn-site.

Returns:

the ipAddress value.

isSecuritySite

public Boolean isSecuritySite()

Get the isSecuritySite property: IsSecuritySite flag.

Returns:

the isSecuritySite value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VpnSiteInner.name()

Returns:

the name value.

o365Policy

public O365PolicyProperties o365Policy()

Get the o365Policy property: Office365 Policy.

Returns:

the o365Policy value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the VPN site resource.

Returns:

the provisioningState value.

siteKey

public String siteKey()

Get the siteKey property: The key for vpn-site that can be used for connections.

Returns:

the siteKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VpnSiteInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VpnSiteInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualWan

public SubResource virtualWan()

Get the virtualWan property: The VirtualWAN to which the vpnSite belongs.

Returns:

the virtualWan value.

vpnSiteLinks

public List vpnSiteLinks()

Get the vpnSiteLinks property: List of all vpn site links.

Returns:

the vpnSiteLinks value.

withAddressSpace

public VpnSiteInner withAddressSpace(AddressSpace addressSpace)

Set the addressSpace property: The AddressSpace that contains an array of IP address ranges.

Parameters:

addressSpace - the addressSpace value to set.

Returns:

the VpnSiteInner object itself.

withBgpProperties

public VpnSiteInner withBgpProperties(BgpSettings bgpProperties)

Set the bgpProperties property: The set of bgp properties.

Parameters:

bgpProperties - the bgpProperties value to set.

Returns:

the VpnSiteInner object itself.

withDeviceProperties

public VpnSiteInner withDeviceProperties(DeviceProperties deviceProperties)

Set the deviceProperties property: The device properties.

Parameters:

deviceProperties - the deviceProperties value to set.

Returns:

the VpnSiteInner object itself.

withId

public VpnSiteInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the VpnSiteInner object itself.

withIpAddress

public VpnSiteInner withIpAddress(String ipAddress)

Set the ipAddress property: The ip-address for the vpn-site.

Parameters:

ipAddress - the ipAddress value to set.

Returns:

the VpnSiteInner object itself.

withIsSecuritySite

public VpnSiteInner withIsSecuritySite(Boolean isSecuritySite)

Set the isSecuritySite property: IsSecuritySite flag.

Parameters:

isSecuritySite - the isSecuritySite value to set.

Returns:

the VpnSiteInner object itself.

withLocation

public VpnSiteInner withLocation(String location)

Overrides:

VpnSiteInner.withLocation(String location)

Parameters:

location

withO365Policy

public VpnSiteInner withO365Policy(O365PolicyProperties o365Policy)

Set the o365Policy property: Office365 Policy.

Parameters:

o365Policy - the o365Policy value to set.

Returns:

the VpnSiteInner object itself.

withSiteKey

public VpnSiteInner withSiteKey(String siteKey)

Set the siteKey property: The key for vpn-site that can be used for connections.

Parameters:

siteKey - the siteKey value to set.

Returns:

the VpnSiteInner object itself.

withTags

public VpnSiteInner withTags(Map tags)

Overrides:

VpnSiteInner.withTags(Map<String,String> tags)

Parameters:

tags

withVirtualWan

public VpnSiteInner withVirtualWan(SubResource virtualWan)

Set the virtualWan property: The VirtualWAN to which the vpnSite belongs.

Parameters:

virtualWan - the virtualWan value to set.

Returns:

the VpnSiteInner object itself.

withVpnSiteLinks

public VpnSiteInner withVpnSiteLinks(List vpnSiteLinks)

Set the vpnSiteLinks property: List of all vpn site links.

Parameters:

vpnSiteLinks - the vpnSiteLinks value to set.

Returns:

the VpnSiteInner object itself.

Applies to