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 com.microsoft.azure.management.network.VirtualNetworkGatewayConnectionType; import com.microsoft.azure.management.network.VirtualNetworkGatewayConnectionProtocol; import com.microsoft.azure.management.network.VirtualNetworkGatewayConnectionStatus; import java.util.List; import com.microsoft.azure.management.network.TunnelConnectionHealth; import com.microsoft.azure.SubResource; import com.microsoft.azure.management.network.IpsecPolicy; import com.microsoft.azure.management.network.TrafficSelectorPolicy; 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 VirtualNetworkGatewayConnectionInner extends Resource {
The authorizationKey.
/** * The authorizationKey. */
@JsonProperty(value = "properties.authorizationKey") private String authorizationKey;
The reference to virtual network gateway resource.
/** * The reference to virtual network gateway resource. */
@JsonProperty(value = "properties.virtualNetworkGateway1", required = true) private VirtualNetworkGatewayInner virtualNetworkGateway1;
The reference to virtual network gateway resource.
/** * The reference to virtual network gateway resource. */
@JsonProperty(value = "properties.virtualNetworkGateway2") private VirtualNetworkGatewayInner virtualNetworkGateway2;
The reference to local network gateway resource.
/** * The reference to local network gateway resource. */
@JsonProperty(value = "properties.localNetworkGateway2") private LocalNetworkGatewayInner localNetworkGateway2;
Gateway connection type. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'.
/** * Gateway connection type. Possible values include: 'IPsec', 'Vnet2Vnet', * 'ExpressRoute', 'VPNClient'. */
@JsonProperty(value = "properties.connectionType", required = true) private VirtualNetworkGatewayConnectionType connectionType;
Connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1'.
/** * Connection protocol used for this connection. Possible values include: * 'IKEv2', 'IKEv1'. */
@JsonProperty(value = "properties.connectionProtocol") private VirtualNetworkGatewayConnectionProtocol connectionProtocol;
The routing weight.
/** * The routing weight. */
@JsonProperty(value = "properties.routingWeight") private Integer routingWeight;
The IPSec shared key.
/** * The IPSec shared key. */
@JsonProperty(value = "properties.sharedKey") private String sharedKey;
Virtual Network Gateway connection status. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'.
/** * Virtual Network Gateway connection status. Possible values include: * 'Unknown', 'Connecting', 'Connected', 'NotConnected'. */
@JsonProperty(value = "properties.connectionStatus", access = JsonProperty.Access.WRITE_ONLY) private VirtualNetworkGatewayConnectionStatus connectionStatus;
Collection of all tunnels' connection health status.
/** * Collection of all tunnels' connection health status. */
@JsonProperty(value = "properties.tunnelConnectionStatus", access = JsonProperty.Access.WRITE_ONLY) private List<TunnelConnectionHealth> tunnelConnectionStatus;
The egress bytes transferred in this connection.
/** * The egress bytes transferred in this connection. */
@JsonProperty(value = "properties.egressBytesTransferred", access = JsonProperty.Access.WRITE_ONLY) private Long egressBytesTransferred;
The ingress bytes transferred in this connection.
/** * The ingress bytes transferred in this connection. */
@JsonProperty(value = "properties.ingressBytesTransferred", access = JsonProperty.Access.WRITE_ONLY) private Long ingressBytesTransferred;
The reference to peerings resource.
/** * The reference to peerings resource. */
@JsonProperty(value = "properties.peer") private SubResource peer;
EnableBgp flag.
/** * EnableBgp flag. */
@JsonProperty(value = "properties.enableBgp") private Boolean enableBgp;
Enable policy-based traffic selectors.
/** * Enable policy-based traffic selectors. */
@JsonProperty(value = "properties.usePolicyBasedTrafficSelectors") private Boolean usePolicyBasedTrafficSelectors;
The IPSec Policies to be considered by this connection.
/** * The IPSec Policies to be considered by this connection. */
@JsonProperty(value = "properties.ipsecPolicies") private List<IpsecPolicy> ipsecPolicies;
The Traffic Selector Policies to be considered by this connection.
/** * The Traffic Selector Policies to be considered by this connection. */
@JsonProperty(value = "properties.trafficSelectorPolicies") private List<TrafficSelectorPolicy> trafficSelectorPolicies;
The resource GUID property of the virtual network gateway connection resource.
/** * The resource GUID property of the virtual network gateway connection * resource. */
@JsonProperty(value = "properties.resourceGuid", access = JsonProperty.Access.WRITE_ONLY) private String resourceGuid;
The provisioning state of the virtual network gateway connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
/** * The provisioning state of the virtual network gateway connection * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState;
Bypass ExpressRoute Gateway for data forwarding.
/** * Bypass ExpressRoute Gateway for data forwarding. */
@JsonProperty(value = "properties.expressRouteGatewayBypass") private Boolean expressRouteGatewayBypass;
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 the authorizationKey.
Returns:the authorizationKey value
/** * Get the authorizationKey. * * @return the authorizationKey value */
public String authorizationKey() { return this.authorizationKey; }
Set the authorizationKey.
Params:
  • authorizationKey – the authorizationKey value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set the authorizationKey. * * @param authorizationKey the authorizationKey value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withAuthorizationKey(String authorizationKey) { this.authorizationKey = authorizationKey; return this; }
Get the reference to virtual network gateway resource.
Returns:the virtualNetworkGateway1 value
/** * Get the reference to virtual network gateway resource. * * @return the virtualNetworkGateway1 value */
public VirtualNetworkGatewayInner virtualNetworkGateway1() { return this.virtualNetworkGateway1; }
Set the reference to virtual network gateway resource.
Params:
  • virtualNetworkGateway1 – the virtualNetworkGateway1 value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set the reference to virtual network gateway resource. * * @param virtualNetworkGateway1 the virtualNetworkGateway1 value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withVirtualNetworkGateway1(VirtualNetworkGatewayInner virtualNetworkGateway1) { this.virtualNetworkGateway1 = virtualNetworkGateway1; return this; }
Get the reference to virtual network gateway resource.
Returns:the virtualNetworkGateway2 value
/** * Get the reference to virtual network gateway resource. * * @return the virtualNetworkGateway2 value */
public VirtualNetworkGatewayInner virtualNetworkGateway2() { return this.virtualNetworkGateway2; }
Set the reference to virtual network gateway resource.
Params:
  • virtualNetworkGateway2 – the virtualNetworkGateway2 value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set the reference to virtual network gateway resource. * * @param virtualNetworkGateway2 the virtualNetworkGateway2 value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withVirtualNetworkGateway2(VirtualNetworkGatewayInner virtualNetworkGateway2) { this.virtualNetworkGateway2 = virtualNetworkGateway2; return this; }
Get the reference to local network gateway resource.
Returns:the localNetworkGateway2 value
/** * Get the reference to local network gateway resource. * * @return the localNetworkGateway2 value */
public LocalNetworkGatewayInner localNetworkGateway2() { return this.localNetworkGateway2; }
Set the reference to local network gateway resource.
Params:
  • localNetworkGateway2 – the localNetworkGateway2 value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set the reference to local network gateway resource. * * @param localNetworkGateway2 the localNetworkGateway2 value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withLocalNetworkGateway2(LocalNetworkGatewayInner localNetworkGateway2) { this.localNetworkGateway2 = localNetworkGateway2; return this; }
Get gateway connection type. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'.
Returns:the connectionType value
/** * Get gateway connection type. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'. * * @return the connectionType value */
public VirtualNetworkGatewayConnectionType connectionType() { return this.connectionType; }
Set gateway connection type. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'.
Params:
  • connectionType – the connectionType value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set gateway connection type. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'. * * @param connectionType the connectionType value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withConnectionType(VirtualNetworkGatewayConnectionType connectionType) { this.connectionType = connectionType; return this; }
Get connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1'.
Returns:the connectionProtocol value
/** * Get connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1'. * * @return the connectionProtocol value */
public VirtualNetworkGatewayConnectionProtocol connectionProtocol() { return this.connectionProtocol; }
Set connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1'.
Params:
  • connectionProtocol – the connectionProtocol value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1'. * * @param connectionProtocol the connectionProtocol value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withConnectionProtocol(VirtualNetworkGatewayConnectionProtocol connectionProtocol) { this.connectionProtocol = connectionProtocol; return this; }
Get the routing weight.
Returns:the routingWeight value
/** * Get the routing weight. * * @return the routingWeight value */
public Integer routingWeight() { return this.routingWeight; }
Set the routing weight.
Params:
  • routingWeight – the routingWeight value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set the routing weight. * * @param routingWeight the routingWeight value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withRoutingWeight(Integer routingWeight) { this.routingWeight = routingWeight; return this; }
Get the IPSec shared key.
Returns:the sharedKey value
/** * Get the IPSec shared key. * * @return the sharedKey value */
public String sharedKey() { return this.sharedKey; }
Set the IPSec shared key.
Params:
  • sharedKey – the sharedKey value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set the IPSec shared key. * * @param sharedKey the sharedKey value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withSharedKey(String sharedKey) { this.sharedKey = sharedKey; return this; }
Get virtual Network Gateway connection status. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'.
Returns:the connectionStatus value
/** * Get virtual Network Gateway connection status. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. * * @return the connectionStatus value */
public VirtualNetworkGatewayConnectionStatus connectionStatus() { return this.connectionStatus; }
Get collection of all tunnels' connection health status.
Returns:the tunnelConnectionStatus value
/** * Get collection of all tunnels' connection health status. * * @return the tunnelConnectionStatus value */
public List<TunnelConnectionHealth> tunnelConnectionStatus() { return this.tunnelConnectionStatus; }
Get the egress bytes transferred in this connection.
Returns:the egressBytesTransferred value
/** * Get the egress bytes transferred in this connection. * * @return the egressBytesTransferred value */
public Long egressBytesTransferred() { return this.egressBytesTransferred; }
Get the ingress bytes transferred in this connection.
Returns:the ingressBytesTransferred value
/** * Get the ingress bytes transferred in this connection. * * @return the ingressBytesTransferred value */
public Long ingressBytesTransferred() { return this.ingressBytesTransferred; }
Get the reference to peerings resource.
Returns:the peer value
/** * Get the reference to peerings resource. * * @return the peer value */
public SubResource peer() { return this.peer; }
Set the reference to peerings resource.
Params:
  • peer – the peer value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set the reference to peerings resource. * * @param peer the peer value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withPeer(SubResource peer) { this.peer = peer; return this; }
Get enableBgp flag.
Returns:the enableBgp value
/** * Get enableBgp flag. * * @return the enableBgp value */
public Boolean enableBgp() { return this.enableBgp; }
Set enableBgp flag.
Params:
  • enableBgp – the enableBgp value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set enableBgp flag. * * @param enableBgp the enableBgp value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withEnableBgp(Boolean enableBgp) { this.enableBgp = enableBgp; return this; }
Get enable policy-based traffic selectors.
Returns:the usePolicyBasedTrafficSelectors value
/** * Get enable policy-based traffic selectors. * * @return the usePolicyBasedTrafficSelectors value */
public Boolean usePolicyBasedTrafficSelectors() { return this.usePolicyBasedTrafficSelectors; }
Set enable policy-based traffic selectors.
Params:
  • usePolicyBasedTrafficSelectors – the usePolicyBasedTrafficSelectors value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set enable policy-based traffic selectors. * * @param usePolicyBasedTrafficSelectors the usePolicyBasedTrafficSelectors value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors) { this.usePolicyBasedTrafficSelectors = usePolicyBasedTrafficSelectors; return this; }
Get the IPSec Policies to be considered by this connection.
Returns:the ipsecPolicies value
/** * Get the IPSec Policies to be considered by this connection. * * @return the ipsecPolicies value */
public List<IpsecPolicy> ipsecPolicies() { return this.ipsecPolicies; }
Set the IPSec Policies to be considered by this connection.
Params:
  • ipsecPolicies – the ipsecPolicies value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set the IPSec Policies to be considered by this connection. * * @param ipsecPolicies the ipsecPolicies value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withIpsecPolicies(List<IpsecPolicy> ipsecPolicies) { this.ipsecPolicies = ipsecPolicies; return this; }
Get the Traffic Selector Policies to be considered by this connection.
Returns:the trafficSelectorPolicies value
/** * Get the Traffic Selector Policies to be considered by this connection. * * @return the trafficSelectorPolicies value */
public List<TrafficSelectorPolicy> trafficSelectorPolicies() { return this.trafficSelectorPolicies; }
Set the Traffic Selector Policies to be considered by this connection.
Params:
  • trafficSelectorPolicies – the trafficSelectorPolicies value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set the Traffic Selector Policies to be considered by this connection. * * @param trafficSelectorPolicies the trafficSelectorPolicies value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withTrafficSelectorPolicies(List<TrafficSelectorPolicy> trafficSelectorPolicies) { this.trafficSelectorPolicies = trafficSelectorPolicies; return this; }
Get the resource GUID property of the virtual network gateway connection resource.
Returns:the resourceGuid value
/** * Get the resource GUID property of the virtual network gateway connection resource. * * @return the resourceGuid value */
public String resourceGuid() { return this.resourceGuid; }
Get the provisioning state of the virtual network gateway connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
Returns:the provisioningState value
/** * Get the provisioning state of the virtual network gateway connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @return the provisioningState value */
public ProvisioningState provisioningState() { return this.provisioningState; }
Get bypass ExpressRoute Gateway for data forwarding.
Returns:the expressRouteGatewayBypass value
/** * Get bypass ExpressRoute Gateway for data forwarding. * * @return the expressRouteGatewayBypass value */
public Boolean expressRouteGatewayBypass() { return this.expressRouteGatewayBypass; }
Set bypass ExpressRoute Gateway for data forwarding.
Params:
  • expressRouteGatewayBypass – the expressRouteGatewayBypass value to set
Returns:the VirtualNetworkGatewayConnectionInner object itself.
/** * Set bypass ExpressRoute Gateway for data forwarding. * * @param expressRouteGatewayBypass the expressRouteGatewayBypass value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withExpressRouteGatewayBypass(Boolean expressRouteGatewayBypass) { this.expressRouteGatewayBypass = expressRouteGatewayBypass; return this; }
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 VirtualNetworkGatewayConnectionInner object itself.
/** * Set resource ID. * * @param id the id value to set * @return the VirtualNetworkGatewayConnectionInner object itself. */
public VirtualNetworkGatewayConnectionInner withId(String id) { this.id = id; return this; } }