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; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Effective Route.
/** * Effective Route. */
public class EffectiveRoute {
The name of the user defined route. This is optional.
/** * The name of the user defined route. This is optional. */
@JsonProperty(value = "name") private String name;
If true, on-premises routes are not propagated to the network interfaces in the subnet.
/** * If true, on-premises routes are not propagated to the network interfaces * in the subnet. */
@JsonProperty(value = "disableBgpRoutePropagation") private Boolean disableBgpRoutePropagation;
Who created the route. Possible values include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default'.
/** * Who created the route. Possible values include: 'Unknown', 'User', * 'VirtualNetworkGateway', 'Default'. */
@JsonProperty(value = "source") private EffectiveRouteSource source;
The value of effective route. Possible values include: 'Active', 'Invalid'.
/** * The value of effective route. Possible values include: 'Active', * 'Invalid'. */
@JsonProperty(value = "state") private EffectiveRouteState state;
The address prefixes of the effective routes in CIDR notation.
/** * The address prefixes of the effective routes in CIDR notation. */
@JsonProperty(value = "addressPrefix") private List<String> addressPrefix;
The IP address of the next hop of the effective route.
/** * The IP address of the next hop of the effective route. */
@JsonProperty(value = "nextHopIpAddress") private List<String> nextHopIpAddress;
The type of Azure hop the packet should be sent to. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'.
/** * The type of Azure hop the packet should be sent to. Possible values * include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', * 'VirtualAppliance', 'None'. */
@JsonProperty(value = "nextHopType") private RouteNextHopType nextHopType;
Get the name of the user defined route. This is optional.
Returns:the name value
/** * Get the name of the user defined route. This is optional. * * @return the name value */
public String name() { return this.name; }
Set the name of the user defined route. This is optional.
Params:
  • name – the name value to set
Returns:the EffectiveRoute object itself.
/** * Set the name of the user defined route. This is optional. * * @param name the name value to set * @return the EffectiveRoute object itself. */
public EffectiveRoute withName(String name) { this.name = name; return this; }
Get if true, on-premises routes are not propagated to the network interfaces in the subnet.
Returns:the disableBgpRoutePropagation value
/** * Get if true, on-premises routes are not propagated to the network interfaces in the subnet. * * @return the disableBgpRoutePropagation value */
public Boolean disableBgpRoutePropagation() { return this.disableBgpRoutePropagation; }
Set if true, on-premises routes are not propagated to the network interfaces in the subnet.
Params:
  • disableBgpRoutePropagation – the disableBgpRoutePropagation value to set
Returns:the EffectiveRoute object itself.
/** * Set if true, on-premises routes are not propagated to the network interfaces in the subnet. * * @param disableBgpRoutePropagation the disableBgpRoutePropagation value to set * @return the EffectiveRoute object itself. */
public EffectiveRoute withDisableBgpRoutePropagation(Boolean disableBgpRoutePropagation) { this.disableBgpRoutePropagation = disableBgpRoutePropagation; return this; }
Get who created the route. Possible values include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default'.
Returns:the source value
/** * Get who created the route. Possible values include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default'. * * @return the source value */
public EffectiveRouteSource source() { return this.source; }
Set who created the route. Possible values include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default'.
Params:
  • source – the source value to set
Returns:the EffectiveRoute object itself.
/** * Set who created the route. Possible values include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default'. * * @param source the source value to set * @return the EffectiveRoute object itself. */
public EffectiveRoute withSource(EffectiveRouteSource source) { this.source = source; return this; }
Get the value of effective route. Possible values include: 'Active', 'Invalid'.
Returns:the state value
/** * Get the value of effective route. Possible values include: 'Active', 'Invalid'. * * @return the state value */
public EffectiveRouteState state() { return this.state; }
Set the value of effective route. Possible values include: 'Active', 'Invalid'.
Params:
  • state – the state value to set
Returns:the EffectiveRoute object itself.
/** * Set the value of effective route. Possible values include: 'Active', 'Invalid'. * * @param state the state value to set * @return the EffectiveRoute object itself. */
public EffectiveRoute withState(EffectiveRouteState state) { this.state = state; return this; }
Get the address prefixes of the effective routes in CIDR notation.
Returns:the addressPrefix value
/** * Get the address prefixes of the effective routes in CIDR notation. * * @return the addressPrefix value */
public List<String> addressPrefix() { return this.addressPrefix; }
Set the address prefixes of the effective routes in CIDR notation.
Params:
  • addressPrefix – the addressPrefix value to set
Returns:the EffectiveRoute object itself.
/** * Set the address prefixes of the effective routes in CIDR notation. * * @param addressPrefix the addressPrefix value to set * @return the EffectiveRoute object itself. */
public EffectiveRoute withAddressPrefix(List<String> addressPrefix) { this.addressPrefix = addressPrefix; return this; }
Get the IP address of the next hop of the effective route.
Returns:the nextHopIpAddress value
/** * Get the IP address of the next hop of the effective route. * * @return the nextHopIpAddress value */
public List<String> nextHopIpAddress() { return this.nextHopIpAddress; }
Set the IP address of the next hop of the effective route.
Params:
  • nextHopIpAddress – the nextHopIpAddress value to set
Returns:the EffectiveRoute object itself.
/** * Set the IP address of the next hop of the effective route. * * @param nextHopIpAddress the nextHopIpAddress value to set * @return the EffectiveRoute object itself. */
public EffectiveRoute withNextHopIpAddress(List<String> nextHopIpAddress) { this.nextHopIpAddress = nextHopIpAddress; return this; }
Get the type of Azure hop the packet should be sent to. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'.
Returns:the nextHopType value
/** * Get the type of Azure hop the packet should be sent to. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'. * * @return the nextHopType value */
public RouteNextHopType nextHopType() { return this.nextHopType; }
Set the type of Azure hop the packet should be sent to. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'.
Params:
  • nextHopType – the nextHopType value to set
Returns:the EffectiveRoute object itself.
/** * Set the type of Azure hop the packet should be sent to. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'. * * @param nextHopType the nextHopType value to set * @return the EffectiveRoute object itself. */
public EffectiveRoute withNextHopType(RouteNextHopType nextHopType) { this.nextHopType = nextHopType; return this; } }