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.ProvisioningState; import com.microsoft.azure.management.network.ExpressRouteCircuitPeeringId; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.SubResource;
ExpressRouteConnection resource.
/** * ExpressRouteConnection resource. */
@JsonFlatten public class ExpressRouteConnectionInner extends SubResource {
The provisioning state of the express route connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
/** * The provisioning state of the express route connection resource. * Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState;
The ExpressRoute circuit peering.
/** * The ExpressRoute circuit peering. */
@JsonProperty(value = "properties.expressRouteCircuitPeering", required = true) private ExpressRouteCircuitPeeringId expressRouteCircuitPeering;
Authorization key to establish the connection.
/** * Authorization key to establish the connection. */
@JsonProperty(value = "properties.authorizationKey") private String authorizationKey;
The routing weight associated to the connection.
/** * The routing weight associated to the connection. */
@JsonProperty(value = "properties.routingWeight") private Integer routingWeight;
Enable internet security.
/** * Enable internet security. */
@JsonProperty(value = "properties.enableInternetSecurity") private Boolean enableInternetSecurity;
The name of the resource.
/** * The name of the resource. */
@JsonProperty(value = "name", required = true) private String name;
Get the provisioning state of the express route connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
Returns:the provisioningState value
/** * Get the provisioning state of the express route connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @return the provisioningState value */
public ProvisioningState provisioningState() { return this.provisioningState; }
Get the ExpressRoute circuit peering.
Returns:the expressRouteCircuitPeering value
/** * Get the ExpressRoute circuit peering. * * @return the expressRouteCircuitPeering value */
public ExpressRouteCircuitPeeringId expressRouteCircuitPeering() { return this.expressRouteCircuitPeering; }
Set the ExpressRoute circuit peering.
Params:
  • expressRouteCircuitPeering – the expressRouteCircuitPeering value to set
Returns:the ExpressRouteConnectionInner object itself.
/** * Set the ExpressRoute circuit peering. * * @param expressRouteCircuitPeering the expressRouteCircuitPeering value to set * @return the ExpressRouteConnectionInner object itself. */
public ExpressRouteConnectionInner withExpressRouteCircuitPeering(ExpressRouteCircuitPeeringId expressRouteCircuitPeering) { this.expressRouteCircuitPeering = expressRouteCircuitPeering; return this; }
Get authorization key to establish the connection.
Returns:the authorizationKey value
/** * Get authorization key to establish the connection. * * @return the authorizationKey value */
public String authorizationKey() { return this.authorizationKey; }
Set authorization key to establish the connection.
Params:
  • authorizationKey – the authorizationKey value to set
Returns:the ExpressRouteConnectionInner object itself.
/** * Set authorization key to establish the connection. * * @param authorizationKey the authorizationKey value to set * @return the ExpressRouteConnectionInner object itself. */
public ExpressRouteConnectionInner withAuthorizationKey(String authorizationKey) { this.authorizationKey = authorizationKey; return this; }
Get the routing weight associated to the connection.
Returns:the routingWeight value
/** * Get the routing weight associated to the connection. * * @return the routingWeight value */
public Integer routingWeight() { return this.routingWeight; }
Set the routing weight associated to the connection.
Params:
  • routingWeight – the routingWeight value to set
Returns:the ExpressRouteConnectionInner object itself.
/** * Set the routing weight associated to the connection. * * @param routingWeight the routingWeight value to set * @return the ExpressRouteConnectionInner object itself. */
public ExpressRouteConnectionInner withRoutingWeight(Integer routingWeight) { this.routingWeight = routingWeight; return this; }
Get enable internet security.
Returns:the enableInternetSecurity value
/** * Get enable internet security. * * @return the enableInternetSecurity value */
public Boolean enableInternetSecurity() { return this.enableInternetSecurity; }
Set enable internet security.
Params:
  • enableInternetSecurity – the enableInternetSecurity value to set
Returns:the ExpressRouteConnectionInner object itself.
/** * Set enable internet security. * * @param enableInternetSecurity the enableInternetSecurity value to set * @return the ExpressRouteConnectionInner object itself. */
public ExpressRouteConnectionInner withEnableInternetSecurity(Boolean enableInternetSecurity) { this.enableInternetSecurity = enableInternetSecurity; return this; }
Get the name of the resource.
Returns:the name value
/** * Get the name of the resource. * * @return the name value */
public String name() { return this.name; }
Set the name of the resource.
Params:
  • name – the name value to set
Returns:the ExpressRouteConnectionInner object itself.
/** * Set the name of the resource. * * @param name the name value to set * @return the ExpressRouteConnectionInner object itself. */
public ExpressRouteConnectionInner withName(String name) { this.name = name; return this; } }