com.microsoft.azure.management.network.implementation.VpnConnectionInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-network Show documentation
Show all versions of azure-mgmt-network Show documentation
This package contains Microsoft Azure Network Management SDK.
/**
* 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.SubResource;
import com.microsoft.azure.management.network.VpnConnectionStatus;
import java.util.List;
import com.microsoft.azure.management.network.IpsecPolicy;
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;
/**
* VpnConnection Resource.
*/
@JsonFlatten
@SkipParentValidation
public class VpnConnectionInner extends Resource {
/**
* Id of the connected vpn site.
*/
@JsonProperty(value = "properties.remoteVpnSite")
private SubResource remoteVpnSite;
/**
* routing weight for vpn connection.
*/
@JsonProperty(value = "properties.routingWeight")
private Integer routingWeight;
/**
* The connection status. Possible values include: 'Unknown', 'Connecting',
* 'Connected', 'NotConnected'.
*/
@JsonProperty(value = "properties.connectionStatus")
private VpnConnectionStatus connectionStatus;
/**
* Ingress bytes transferred.
*/
@JsonProperty(value = "properties.ingressBytesTransferred", access = JsonProperty.Access.WRITE_ONLY)
private Long ingressBytesTransferred;
/**
* Egress bytes transferred.
*/
@JsonProperty(value = "properties.egressBytesTransferred", access = JsonProperty.Access.WRITE_ONLY)
private Long egressBytesTransferred;
/**
* Expected bandwidth in MBPS.
*/
@JsonProperty(value = "properties.connectionBandwidthInMbps", access = JsonProperty.Access.WRITE_ONLY)
private Integer connectionBandwidthInMbps;
/**
* SharedKey for the vpn connection.
*/
@JsonProperty(value = "properties.sharedKey")
private String sharedKey;
/**
* EnableBgp flag.
*/
@JsonProperty(value = "properties.enableBgp")
private Boolean enableBgp;
/**
* The IPSec Policies to be considered by this connection.
*/
@JsonProperty(value = "properties.ipsecPolicies")
private List ipsecPolicies;
/**
* The provisioning state of the resource. Possible values include:
* 'Succeeded', 'Updating', 'Deleting', 'Failed'.
*/
@JsonProperty(value = "properties.provisioningState")
private ProvisioningState provisioningState;
/**
* Gets 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.
*/
@JsonProperty(value = "id")
private String id;
/**
* Get the remoteVpnSite value.
*
* @return the remoteVpnSite value
*/
public SubResource remoteVpnSite() {
return this.remoteVpnSite;
}
/**
* Set the remoteVpnSite value.
*
* @param remoteVpnSite the remoteVpnSite value to set
* @return the VpnConnectionInner object itself.
*/
public VpnConnectionInner withRemoteVpnSite(SubResource remoteVpnSite) {
this.remoteVpnSite = remoteVpnSite;
return this;
}
/**
* Get the routingWeight value.
*
* @return the routingWeight value
*/
public Integer routingWeight() {
return this.routingWeight;
}
/**
* Set the routingWeight value.
*
* @param routingWeight the routingWeight value to set
* @return the VpnConnectionInner object itself.
*/
public VpnConnectionInner withRoutingWeight(Integer routingWeight) {
this.routingWeight = routingWeight;
return this;
}
/**
* Get the connectionStatus value.
*
* @return the connectionStatus value
*/
public VpnConnectionStatus connectionStatus() {
return this.connectionStatus;
}
/**
* Set the connectionStatus value.
*
* @param connectionStatus the connectionStatus value to set
* @return the VpnConnectionInner object itself.
*/
public VpnConnectionInner withConnectionStatus(VpnConnectionStatus connectionStatus) {
this.connectionStatus = connectionStatus;
return this;
}
/**
* Get the ingressBytesTransferred value.
*
* @return the ingressBytesTransferred value
*/
public Long ingressBytesTransferred() {
return this.ingressBytesTransferred;
}
/**
* Get the egressBytesTransferred value.
*
* @return the egressBytesTransferred value
*/
public Long egressBytesTransferred() {
return this.egressBytesTransferred;
}
/**
* Get the connectionBandwidthInMbps value.
*
* @return the connectionBandwidthInMbps value
*/
public Integer connectionBandwidthInMbps() {
return this.connectionBandwidthInMbps;
}
/**
* Get the sharedKey value.
*
* @return the sharedKey value
*/
public String sharedKey() {
return this.sharedKey;
}
/**
* Set the sharedKey value.
*
* @param sharedKey the sharedKey value to set
* @return the VpnConnectionInner object itself.
*/
public VpnConnectionInner withSharedKey(String sharedKey) {
this.sharedKey = sharedKey;
return this;
}
/**
* Get the enableBgp value.
*
* @return the enableBgp value
*/
public Boolean enableBgp() {
return this.enableBgp;
}
/**
* Set the enableBgp value.
*
* @param enableBgp the enableBgp value to set
* @return the VpnConnectionInner object itself.
*/
public VpnConnectionInner withEnableBgp(Boolean enableBgp) {
this.enableBgp = enableBgp;
return this;
}
/**
* Get the ipsecPolicies value.
*
* @return the ipsecPolicies value
*/
public List ipsecPolicies() {
return this.ipsecPolicies;
}
/**
* Set the ipsecPolicies value.
*
* @param ipsecPolicies the ipsecPolicies value to set
* @return the VpnConnectionInner object itself.
*/
public VpnConnectionInner withIpsecPolicies(List ipsecPolicies) {
this.ipsecPolicies = ipsecPolicies;
return this;
}
/**
* Get the provisioningState value.
*
* @return the provisioningState value
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
}
/**
* Set the provisioningState value.
*
* @param provisioningState the provisioningState value to set
* @return the VpnConnectionInner object itself.
*/
public VpnConnectionInner withProvisioningState(ProvisioningState provisioningState) {
this.provisioningState = provisioningState;
return this;
}
/**
* Get the etag value.
*
* @return the etag value
*/
public String etag() {
return this.etag;
}
/**
* Get the id value.
*
* @return the id value
*/
public String id() {
return this.id;
}
/**
* Set the id value.
*
* @param id the id value to set
* @return the VpnConnectionInner object itself.
*/
public VpnConnectionInner withId(String id) {
this.id = id;
return this;
}
}