com.microsoft.azure.management.network.EffectiveRoute 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. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* 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.
*/
public class EffectiveRoute {
/**
* 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.
*/
@JsonProperty(value = "disableBgpRoutePropagation")
private Boolean disableBgpRoutePropagation;
/**
* 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'.
*/
@JsonProperty(value = "state")
private EffectiveRouteState state;
/**
* The address prefixes of the effective routes in CIDR notation.
*/
@JsonProperty(value = "addressPrefix")
private List addressPrefix;
/**
* The IP address of the next hop of the effective route.
*/
@JsonProperty(value = "nextHopIpAddress")
private List nextHopIpAddress;
/**
* 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.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* 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.
*
* @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.
*
* @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'.
*
* @return the source value
*/
public EffectiveRouteSource source() {
return this.source;
}
/**
* 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'.
*
* @return the state value
*/
public EffectiveRouteState state() {
return this.state;
}
/**
* 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.
*
* @return the addressPrefix value
*/
public List addressPrefix() {
return this.addressPrefix;
}
/**
* 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 addressPrefix) {
this.addressPrefix = addressPrefix;
return this;
}
/**
* Get the IP address of the next hop of the effective route.
*
* @return the nextHopIpAddress value
*/
public List nextHopIpAddress() {
return this.nextHopIpAddress;
}
/**
* 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 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'.
*
* @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'.
*
* @param nextHopType the nextHopType value to set
* @return the EffectiveRoute object itself.
*/
public EffectiveRoute withNextHopType(RouteNextHopType nextHopType) {
this.nextHopType = nextHopType;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy