Class VpnSiteInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.VpnSiteInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class VpnSiteInner
extends com.azure.core.management.Resource
VpnSite Resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressSpace property: The AddressSpace that contains an array of IP address ranges.Get the bgpProperties property: The set of bgp properties.Get the deviceProperties property: The device properties.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static VpnSiteInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VpnSiteInner from the JsonReader.id()Get the id property: Resource ID.Get the ipAddress property: The ip-address for the vpn-site.Get the isSecuritySite property: IsSecuritySite flag.name()Get the name property: The name of the resource.Get the o365Policy property: Office365 Policy.Get the provisioningState property: The provisioning state of the VPN site resource.siteKey()Get the siteKey property: The key for vpn-site that can be used for connections.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.com.azure.core.management.SubResourceGet the virtualWan property: The VirtualWAN to which the vpnSite belongs.Get the vpnSiteLinks property: List of all vpn site links.withAddressSpace(AddressSpace addressSpace) Set the addressSpace property: The AddressSpace that contains an array of IP address ranges.withBgpProperties(BgpSettings bgpProperties) Set the bgpProperties property: The set of bgp properties.withDeviceProperties(DeviceProperties deviceProperties) Set the deviceProperties property: The device properties.Set the id property: Resource ID.withIpAddress(String ipAddress) Set the ipAddress property: The ip-address for the vpn-site.withIsSecuritySite(Boolean isSecuritySite) Set the isSecuritySite property: IsSecuritySite flag.withLocation(String location) withO365Policy(O365PolicyProperties o365Policy) Set the o365Policy property: Office365 Policy.withSiteKey(String siteKey) Set the siteKey property: The key for vpn-site that can be used for connections.withVirtualWan(com.azure.core.management.SubResource virtualWan) Set the virtualWan property: The VirtualWAN to which the vpnSite belongs.withVpnSiteLinks(List<VpnSiteLinkInner> vpnSiteLinks) Set the vpnSiteLinks property: List of all vpn site links.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class java.lang.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
-
VpnSiteInner
public VpnSiteInner()Creates an instance of VpnSiteInner class.
-
-
Method Details
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
id
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the VpnSiteInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
virtualWan
public com.azure.core.management.SubResource virtualWan()Get the virtualWan property: The VirtualWAN to which the vpnSite belongs.- Returns:
- the virtualWan value.
-
withVirtualWan
Set the virtualWan property: The VirtualWAN to which the vpnSite belongs.- Parameters:
virtualWan- the virtualWan value to set.- Returns:
- the VpnSiteInner object itself.
-
deviceProperties
Get the deviceProperties property: The device properties.- Returns:
- the deviceProperties value.
-
withDeviceProperties
Set the deviceProperties property: The device properties.- Parameters:
deviceProperties- the deviceProperties value to set.- Returns:
- the VpnSiteInner object itself.
-
ipAddress
Get the ipAddress property: The ip-address for the vpn-site.- Returns:
- the ipAddress value.
-
withIpAddress
Set the ipAddress property: The ip-address for the vpn-site.- Parameters:
ipAddress- the ipAddress value to set.- Returns:
- the VpnSiteInner object itself.
-
siteKey
Get the siteKey property: The key for vpn-site that can be used for connections.- Returns:
- the siteKey value.
-
withSiteKey
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.
-
addressSpace
Get the addressSpace property: The AddressSpace that contains an array of IP address ranges.- Returns:
- the addressSpace value.
-
withAddressSpace
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.
-
bgpProperties
Get the bgpProperties property: The set of bgp properties.- Returns:
- the bgpProperties value.
-
withBgpProperties
Set the bgpProperties property: The set of bgp properties.- Parameters:
bgpProperties- the bgpProperties value to set.- Returns:
- the VpnSiteInner object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the VPN site resource.- Returns:
- the provisioningState value.
-
isSecuritySite
Get the isSecuritySite property: IsSecuritySite flag.- Returns:
- the isSecuritySite value.
-
withIsSecuritySite
Set the isSecuritySite property: IsSecuritySite flag.- Parameters:
isSecuritySite- the isSecuritySite value to set.- Returns:
- the VpnSiteInner object itself.
-
vpnSiteLinks
Get the vpnSiteLinks property: List of all vpn site links.- Returns:
- the vpnSiteLinks value.
-
withVpnSiteLinks
Set the vpnSiteLinks property: List of all vpn site links.- Parameters:
vpnSiteLinks- the vpnSiteLinks value to set.- Returns:
- the VpnSiteInner object itself.
-
o365Policy
Get the o365Policy property: Office365 Policy.- Returns:
- the o365Policy value.
-
withO365Policy
Set the o365Policy property: Office365 Policy.- Parameters:
o365Policy- the o365Policy value to set.- Returns:
- the VpnSiteInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the VpnSiteInner.
-