Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network.implementation; import java.util.List; import com.microsoft.azure.management.network.VirtualNetworkGatewayType; import com.microsoft.azure.management.network.VpnType; import com.microsoft.azure.management.network.VpnGatewayGeneration; import com.microsoft.azure.SubResource; import com.microsoft.azure.management.network.VirtualNetworkGatewaySku; import com.microsoft.azure.management.network.VpnClientConfiguration; import com.microsoft.azure.management.network.BgpSettings; import com.microsoft.azure.management.network.AddressSpace; import com.microsoft.azure.management.network.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; import com.microsoft.azure.Resource;
A common class for general resource information.
/** * A common class for general resource information. */
@JsonFlatten @SkipParentValidation public class VirtualNetworkGatewayInner extends Resource {
IP configurations for virtual network gateway.
/** * IP configurations for virtual network gateway. */
@JsonProperty(value = "properties.ipConfigurations") private List<VirtualNetworkGatewayIPConfigurationInner> ipConfigurations;
The type of this virtual network gateway. Possible values include: 'Vpn', 'ExpressRoute'.
/** * The type of this virtual network gateway. Possible values include: * 'Vpn', 'ExpressRoute'. */
@JsonProperty(value = "properties.gatewayType") private VirtualNetworkGatewayType gatewayType;
The type of this virtual network gateway. Possible values include: 'PolicyBased', 'RouteBased'.
/** * The type of this virtual network gateway. Possible values include: * 'PolicyBased', 'RouteBased'. */
@JsonProperty(value = "properties.vpnType") private VpnType vpnType;
The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN. Possible values include: 'None', 'Generation1', 'Generation2'.
/** * The generation for this VirtualNetworkGateway. Must be None if * gatewayType is not VPN. Possible values include: 'None', 'Generation1', * 'Generation2'. */
@JsonProperty(value = "properties.vpnGatewayGeneration") private VpnGatewayGeneration vpnGatewayGeneration;
Whether BGP is enabled for this virtual network gateway or not.
/** * Whether BGP is enabled for this virtual network gateway or not. */
@JsonProperty(value = "properties.enableBgp") private Boolean enableBgp;
ActiveActive flag.
/** * ActiveActive flag. */
@JsonProperty(value = "properties.activeActive") private Boolean activeActive;
The reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting.
/** * The reference to the LocalNetworkGateway resource which represents local * network site having default routes. Assign Null value in case of * removing existing default site setting. */
@JsonProperty(value = "properties.gatewayDefaultSite") private SubResource gatewayDefaultSite;
The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway.
/** * The reference to the VirtualNetworkGatewaySku resource which represents * the SKU selected for Virtual network gateway. */
@JsonProperty(value = "properties.sku") private VirtualNetworkGatewaySku sku;
The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations.
/** * The reference to the VpnClientConfiguration resource which represents * the P2S VpnClient configurations. */
@JsonProperty(value = "properties.vpnClientConfiguration") private VpnClientConfiguration vpnClientConfiguration;
Virtual network gateway's BGP speaker settings.
/** * Virtual network gateway's BGP speaker settings. */
@JsonProperty(value = "properties.bgpSettings") private BgpSettings bgpSettings;
The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient.
/** * The reference to the address space resource which represents the custom * routes address space specified by the customer for virtual network * gateway and VpnClient. */
@JsonProperty(value = "properties.customRoutes") private AddressSpace customRoutes;
The resource GUID property of the virtual network gateway resource.
/** * The resource GUID property of the virtual network gateway resource. */
@JsonProperty(value = "properties.resourceGuid", access = JsonProperty.Access.WRITE_ONLY) private String resourceGuid;
The provisioning state of the virtual network gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
/** * The provisioning state of the virtual network gateway resource. Possible * values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState;
Whether dns forwarding is enabled or not.
/** * Whether dns forwarding is enabled or not. */
@JsonProperty(value = "properties.enableDnsForwarding") private Boolean enableDnsForwarding;
The IP address allocated by the gateway to which dns requests can be sent.
/** * The IP address allocated by the gateway to which dns requests can be * sent. */
@JsonProperty(value = "properties.inboundDnsForwardingEndpoint", access = JsonProperty.Access.WRITE_ONLY) private String inboundDnsForwardingEndpoint;
A unique read-only string that changes whenever the resource is updated.
/** * A unique read-only string that changes whenever the resource is updated. */
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag;
Resource ID.
/** * Resource ID. */
@JsonProperty(value = "id") private String id;
Get iP configurations for virtual network gateway.
Returns:the ipConfigurations value
/** * Get iP configurations for virtual network gateway. * * @return the ipConfigurations value */
public List<VirtualNetworkGatewayIPConfigurationInner> ipConfigurations() { return this.ipConfigurations; }
Set iP configurations for virtual network gateway.
Params:
  • ipConfigurations – the ipConfigurations value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set iP configurations for virtual network gateway. * * @param ipConfigurations the ipConfigurations value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withIpConfigurations(List<VirtualNetworkGatewayIPConfigurationInner> ipConfigurations) { this.ipConfigurations = ipConfigurations; return this; }
Get the type of this virtual network gateway. Possible values include: 'Vpn', 'ExpressRoute'.
Returns:the gatewayType value
/** * Get the type of this virtual network gateway. Possible values include: 'Vpn', 'ExpressRoute'. * * @return the gatewayType value */
public VirtualNetworkGatewayType gatewayType() { return this.gatewayType; }
Set the type of this virtual network gateway. Possible values include: 'Vpn', 'ExpressRoute'.
Params:
  • gatewayType – the gatewayType value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set the type of this virtual network gateway. Possible values include: 'Vpn', 'ExpressRoute'. * * @param gatewayType the gatewayType value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withGatewayType(VirtualNetworkGatewayType gatewayType) { this.gatewayType = gatewayType; return this; }
Get the type of this virtual network gateway. Possible values include: 'PolicyBased', 'RouteBased'.
Returns:the vpnType value
/** * Get the type of this virtual network gateway. Possible values include: 'PolicyBased', 'RouteBased'. * * @return the vpnType value */
public VpnType vpnType() { return this.vpnType; }
Set the type of this virtual network gateway. Possible values include: 'PolicyBased', 'RouteBased'.
Params:
  • vpnType – the vpnType value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set the type of this virtual network gateway. Possible values include: 'PolicyBased', 'RouteBased'. * * @param vpnType the vpnType value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withVpnType(VpnType vpnType) { this.vpnType = vpnType; return this; }
Get the generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN. Possible values include: 'None', 'Generation1', 'Generation2'.
Returns:the vpnGatewayGeneration value
/** * Get the generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN. Possible values include: 'None', 'Generation1', 'Generation2'. * * @return the vpnGatewayGeneration value */
public VpnGatewayGeneration vpnGatewayGeneration() { return this.vpnGatewayGeneration; }
Set the generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN. Possible values include: 'None', 'Generation1', 'Generation2'.
Params:
  • vpnGatewayGeneration – the vpnGatewayGeneration value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set the generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN. Possible values include: 'None', 'Generation1', 'Generation2'. * * @param vpnGatewayGeneration the vpnGatewayGeneration value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withVpnGatewayGeneration(VpnGatewayGeneration vpnGatewayGeneration) { this.vpnGatewayGeneration = vpnGatewayGeneration; return this; }
Get whether BGP is enabled for this virtual network gateway or not.
Returns:the enableBgp value
/** * Get whether BGP is enabled for this virtual network gateway or not. * * @return the enableBgp value */
public Boolean enableBgp() { return this.enableBgp; }
Set whether BGP is enabled for this virtual network gateway or not.
Params:
  • enableBgp – the enableBgp value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set whether BGP is enabled for this virtual network gateway or not. * * @param enableBgp the enableBgp value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withEnableBgp(Boolean enableBgp) { this.enableBgp = enableBgp; return this; }
Get activeActive flag.
Returns:the activeActive value
/** * Get activeActive flag. * * @return the activeActive value */
public Boolean activeActive() { return this.activeActive; }
Set activeActive flag.
Params:
  • activeActive – the activeActive value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set activeActive flag. * * @param activeActive the activeActive value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withActiveActive(Boolean activeActive) { this.activeActive = activeActive; return this; }
Get the reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting.
Returns:the gatewayDefaultSite value
/** * Get the reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting. * * @return the gatewayDefaultSite value */
public SubResource gatewayDefaultSite() { return this.gatewayDefaultSite; }
Set the reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting.
Params:
  • gatewayDefaultSite – the gatewayDefaultSite value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set the reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting. * * @param gatewayDefaultSite the gatewayDefaultSite value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withGatewayDefaultSite(SubResource gatewayDefaultSite) { this.gatewayDefaultSite = gatewayDefaultSite; return this; }
Get the reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway.
Returns:the sku value
/** * Get the reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway. * * @return the sku value */
public VirtualNetworkGatewaySku sku() { return this.sku; }
Set the reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway.
Params:
  • sku – the sku value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set the reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway. * * @param sku the sku value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withSku(VirtualNetworkGatewaySku sku) { this.sku = sku; return this; }
Get the reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations.
Returns:the vpnClientConfiguration value
/** * Get the reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations. * * @return the vpnClientConfiguration value */
public VpnClientConfiguration vpnClientConfiguration() { return this.vpnClientConfiguration; }
Set the reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations.
Params:
  • vpnClientConfiguration – the vpnClientConfiguration value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set the reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations. * * @param vpnClientConfiguration the vpnClientConfiguration value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withVpnClientConfiguration(VpnClientConfiguration vpnClientConfiguration) { this.vpnClientConfiguration = vpnClientConfiguration; return this; }
Get virtual network gateway's BGP speaker settings.
Returns:the bgpSettings value
/** * Get virtual network gateway's BGP speaker settings. * * @return the bgpSettings value */
public BgpSettings bgpSettings() { return this.bgpSettings; }
Set virtual network gateway's BGP speaker settings.
Params:
  • bgpSettings – the bgpSettings value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set virtual network gateway's BGP speaker settings. * * @param bgpSettings the bgpSettings value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withBgpSettings(BgpSettings bgpSettings) { this.bgpSettings = bgpSettings; return this; }
Get the reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient.
Returns:the customRoutes value
/** * Get the reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient. * * @return the customRoutes value */
public AddressSpace customRoutes() { return this.customRoutes; }
Set the reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient.
Params:
  • customRoutes – the customRoutes value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set the reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient. * * @param customRoutes the customRoutes value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withCustomRoutes(AddressSpace customRoutes) { this.customRoutes = customRoutes; return this; }
Get the resource GUID property of the virtual network gateway resource.
Returns:the resourceGuid value
/** * Get the resource GUID property of the virtual network gateway resource. * * @return the resourceGuid value */
public String resourceGuid() { return this.resourceGuid; }
Get the provisioning state of the virtual network gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
Returns:the provisioningState value
/** * Get the provisioning state of the virtual network gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @return the provisioningState value */
public ProvisioningState provisioningState() { return this.provisioningState; }
Get whether dns forwarding is enabled or not.
Returns:the enableDnsForwarding value
/** * Get whether dns forwarding is enabled or not. * * @return the enableDnsForwarding value */
public Boolean enableDnsForwarding() { return this.enableDnsForwarding; }
Set whether dns forwarding is enabled or not.
Params:
  • enableDnsForwarding – the enableDnsForwarding value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set whether dns forwarding is enabled or not. * * @param enableDnsForwarding the enableDnsForwarding value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withEnableDnsForwarding(Boolean enableDnsForwarding) { this.enableDnsForwarding = enableDnsForwarding; return this; }
Get the IP address allocated by the gateway to which dns requests can be sent.
Returns:the inboundDnsForwardingEndpoint value
/** * Get the IP address allocated by the gateway to which dns requests can be sent. * * @return the inboundDnsForwardingEndpoint value */
public String inboundDnsForwardingEndpoint() { return this.inboundDnsForwardingEndpoint; }
Get a unique read-only string that changes whenever the resource is updated.
Returns:the etag value
/** * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */
public String etag() { return this.etag; }
Get resource ID.
Returns:the id value
/** * Get resource ID. * * @return the id value */
public String id() { return this.id; }
Set resource ID.
Params:
  • id – the id value to set
Returns:the VirtualNetworkGatewayInner object itself.
/** * Set resource ID. * * @param id the id value to set * @return the VirtualNetworkGatewayInner object itself. */
public VirtualNetworkGatewayInner withId(String id) { this.id = id; return this; } }