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 com.fasterxml.jackson.annotation.JsonProperty;
Gateway routing details.
/** * Gateway routing details. */
public class GatewayRoute {
The gateway's local address.
/** * The gateway's local address. */
@JsonProperty(value = "localAddress", access = JsonProperty.Access.WRITE_ONLY) private String localAddress;
The route's network prefix.
/** * The route's network prefix. */
@JsonProperty(value = "network", access = JsonProperty.Access.WRITE_ONLY) private String network;
The route's next hop.
/** * The route's next hop. */
@JsonProperty(value = "nextHop", access = JsonProperty.Access.WRITE_ONLY) private String nextHop;
The peer this route was learned from.
/** * The peer this route was learned from. */
@JsonProperty(value = "sourcePeer", access = JsonProperty.Access.WRITE_ONLY) private String sourcePeer;
The source this route was learned from.
/** * The source this route was learned from. */
@JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY) private String origin;
The route's AS path sequence.
/** * The route's AS path sequence. */
@JsonProperty(value = "asPath", access = JsonProperty.Access.WRITE_ONLY) private String asPath;
The route's weight.
/** * The route's weight. */
@JsonProperty(value = "weight", access = JsonProperty.Access.WRITE_ONLY) private Integer weight;
Get the gateway's local address.
Returns:the localAddress value
/** * Get the gateway's local address. * * @return the localAddress value */
public String localAddress() { return this.localAddress; }
Get the route's network prefix.
Returns:the network value
/** * Get the route's network prefix. * * @return the network value */
public String network() { return this.network; }
Get the route's next hop.
Returns:the nextHop value
/** * Get the route's next hop. * * @return the nextHop value */
public String nextHop() { return this.nextHop; }
Get the peer this route was learned from.
Returns:the sourcePeer value
/** * Get the peer this route was learned from. * * @return the sourcePeer value */
public String sourcePeer() { return this.sourcePeer; }
Get the source this route was learned from.
Returns:the origin value
/** * Get the source this route was learned from. * * @return the origin value */
public String origin() { return this.origin; }
Get the route's AS path sequence.
Returns:the asPath value
/** * Get the route's AS path sequence. * * @return the asPath value */
public String asPath() { return this.asPath; }
Get the route's weight.
Returns:the weight value
/** * Get the route's weight. * * @return the weight value */
public Integer weight() { return this.weight; } }