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.SubResource; import java.util.List; import com.microsoft.azure.management.network.P2SConnectionConfiguration; import com.microsoft.azure.management.network.ProvisioningState; import com.microsoft.azure.management.network.VpnClientConnectionHealth; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; import com.microsoft.azure.Resource;
P2SVpnGateway Resource.
/** * P2SVpnGateway Resource. */
@JsonFlatten @SkipParentValidation public class P2SVpnGatewayInner extends Resource {
The VirtualHub to which the gateway belongs.
/** * The VirtualHub to which the gateway belongs. */
@JsonProperty(value = "properties.virtualHub") private SubResource virtualHub;
List of all p2s connection configurations of the gateway.
/** * List of all p2s connection configurations of the gateway. */
@JsonProperty(value = "properties.p2SConnectionConfigurations") private List<P2SConnectionConfiguration> p2SConnectionConfigurations;
The provisioning state of the P2S VPN gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
/** * The provisioning state of the P2S VPN gateway resource. Possible values * include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState;
The scale unit for this p2s vpn gateway.
/** * The scale unit for this p2s vpn gateway. */
@JsonProperty(value = "properties.vpnGatewayScaleUnit") private Integer vpnGatewayScaleUnit;
The VpnServerConfiguration to which the p2sVpnGateway is attached to.
/** * The VpnServerConfiguration to which the p2sVpnGateway is attached to. */
@JsonProperty(value = "properties.vpnServerConfiguration") private SubResource vpnServerConfiguration;
All P2S VPN clients' connection health status.
/** * All P2S VPN clients' connection health status. */
@JsonProperty(value = "properties.vpnClientConnectionHealth", access = JsonProperty.Access.WRITE_ONLY) private VpnClientConnectionHealth vpnClientConnectionHealth;
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 VirtualHub to which the gateway belongs.
Returns:the virtualHub value
/** * Get the VirtualHub to which the gateway belongs. * * @return the virtualHub value */
public SubResource virtualHub() { return this.virtualHub; }
Set the VirtualHub to which the gateway belongs.
Params:
  • virtualHub – the virtualHub value to set
Returns:the P2SVpnGatewayInner object itself.
/** * Set the VirtualHub to which the gateway belongs. * * @param virtualHub the virtualHub value to set * @return the P2SVpnGatewayInner object itself. */
public P2SVpnGatewayInner withVirtualHub(SubResource virtualHub) { this.virtualHub = virtualHub; return this; }
Get list of all p2s connection configurations of the gateway.
Returns:the p2SConnectionConfigurations value
/** * Get list of all p2s connection configurations of the gateway. * * @return the p2SConnectionConfigurations value */
public List<P2SConnectionConfiguration> p2SConnectionConfigurations() { return this.p2SConnectionConfigurations; }
Set list of all p2s connection configurations of the gateway.
Params:
  • p2SConnectionConfigurations – the p2SConnectionConfigurations value to set
Returns:the P2SVpnGatewayInner object itself.
/** * Set list of all p2s connection configurations of the gateway. * * @param p2SConnectionConfigurations the p2SConnectionConfigurations value to set * @return the P2SVpnGatewayInner object itself. */
public P2SVpnGatewayInner withP2SConnectionConfigurations(List<P2SConnectionConfiguration> p2SConnectionConfigurations) { this.p2SConnectionConfigurations = p2SConnectionConfigurations; return this; }
Get the provisioning state of the P2S VPN gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
Returns:the provisioningState value
/** * Get the provisioning state of the P2S VPN gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @return the provisioningState value */
public ProvisioningState provisioningState() { return this.provisioningState; }
Get the scale unit for this p2s vpn gateway.
Returns:the vpnGatewayScaleUnit value
/** * Get the scale unit for this p2s vpn gateway. * * @return the vpnGatewayScaleUnit value */
public Integer vpnGatewayScaleUnit() { return this.vpnGatewayScaleUnit; }
Set the scale unit for this p2s vpn gateway.
Params:
  • vpnGatewayScaleUnit – the vpnGatewayScaleUnit value to set
Returns:the P2SVpnGatewayInner object itself.
/** * Set the scale unit for this p2s vpn gateway. * * @param vpnGatewayScaleUnit the vpnGatewayScaleUnit value to set * @return the P2SVpnGatewayInner object itself. */
public P2SVpnGatewayInner withVpnGatewayScaleUnit(Integer vpnGatewayScaleUnit) { this.vpnGatewayScaleUnit = vpnGatewayScaleUnit; return this; }
Get the VpnServerConfiguration to which the p2sVpnGateway is attached to.
Returns:the vpnServerConfiguration value
/** * Get the VpnServerConfiguration to which the p2sVpnGateway is attached to. * * @return the vpnServerConfiguration value */
public SubResource vpnServerConfiguration() { return this.vpnServerConfiguration; }
Set the VpnServerConfiguration to which the p2sVpnGateway is attached to.
Params:
  • vpnServerConfiguration – the vpnServerConfiguration value to set
Returns:the P2SVpnGatewayInner object itself.
/** * Set the VpnServerConfiguration to which the p2sVpnGateway is attached to. * * @param vpnServerConfiguration the vpnServerConfiguration value to set * @return the P2SVpnGatewayInner object itself. */
public P2SVpnGatewayInner withVpnServerConfiguration(SubResource vpnServerConfiguration) { this.vpnServerConfiguration = vpnServerConfiguration; return this; }
Get all P2S VPN clients' connection health status.
Returns:the vpnClientConnectionHealth value
/** * Get all P2S VPN clients' connection health status. * * @return the vpnClientConnectionHealth value */
public VpnClientConnectionHealth vpnClientConnectionHealth() { return this.vpnClientConnectionHealth; }
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 P2SVpnGatewayInner object itself.
/** * Set resource ID. * * @param id the id value to set * @return the P2SVpnGatewayInner object itself. */
public P2SVpnGatewayInner withId(String id) { this.id = id; return this; } }