All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.compute.model.RouterBgpPeer Maven / Gradle / Ivy

There is a newer version: v1-rev20250107-2.0.0
Show newest version
/*
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://code.google.com/p/google-apis-client-generator/
 * (build: 2016-05-27 16:00:31 UTC)
 * on 2016-07-07 at 07:34:17 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.compute.model;

/**
 * BGP information that needs to be configured into the routing stack to establish the BGP peering.
 * It must specify peer ASN and either interface name, IP, or peer IP. Reference:
 * https://tools.ietf.org/html/rfc4273
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: * http://code.google.com/p/google-http-java-client/wiki/JSON *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class RouterBgpPeer extends com.google.api.client.json.GenericJson { /** * The priority of routes advertised to this BGP peer. In the case where there is more than one * matching route of maximum length, the routes with lowest priority value win. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Long advertisedRoutePriority; /** * Name of the interface the BGP peer is associated with. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String interfaceName; /** * IP address of the interface inside Google Cloud Platform. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String ipAddress; /** * Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for * every tunnel. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Long peerAsn; /** * IP address of the BGP interface outside Google cloud. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String peerIpAddress; /** * The priority of routes advertised to this BGP peer. In the case where there is more than one * matching route of maximum length, the routes with lowest priority value win. * @return value or {@code null} for none */ public java.lang.Long getAdvertisedRoutePriority() { return advertisedRoutePriority; } /** * The priority of routes advertised to this BGP peer. In the case where there is more than one * matching route of maximum length, the routes with lowest priority value win. * @param advertisedRoutePriority advertisedRoutePriority or {@code null} for none */ public RouterBgpPeer setAdvertisedRoutePriority(java.lang.Long advertisedRoutePriority) { this.advertisedRoutePriority = advertisedRoutePriority; return this; } /** * Name of the interface the BGP peer is associated with. * @return value or {@code null} for none */ public java.lang.String getInterfaceName() { return interfaceName; } /** * Name of the interface the BGP peer is associated with. * @param interfaceName interfaceName or {@code null} for none */ public RouterBgpPeer setInterfaceName(java.lang.String interfaceName) { this.interfaceName = interfaceName; return this; } /** * IP address of the interface inside Google Cloud Platform. * @return value or {@code null} for none */ public java.lang.String getIpAddress() { return ipAddress; } /** * IP address of the interface inside Google Cloud Platform. * @param ipAddress ipAddress or {@code null} for none */ public RouterBgpPeer setIpAddress(java.lang.String ipAddress) { this.ipAddress = ipAddress; return this; } /** * Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. * @param name name or {@code null} for none */ public RouterBgpPeer setName(java.lang.String name) { this.name = name; return this; } /** * Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for * every tunnel. * @return value or {@code null} for none */ public java.lang.Long getPeerAsn() { return peerAsn; } /** * Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for * every tunnel. * @param peerAsn peerAsn or {@code null} for none */ public RouterBgpPeer setPeerAsn(java.lang.Long peerAsn) { this.peerAsn = peerAsn; return this; } /** * IP address of the BGP interface outside Google cloud. * @return value or {@code null} for none */ public java.lang.String getPeerIpAddress() { return peerIpAddress; } /** * IP address of the BGP interface outside Google cloud. * @param peerIpAddress peerIpAddress or {@code null} for none */ public RouterBgpPeer setPeerIpAddress(java.lang.String peerIpAddress) { this.peerIpAddress = peerIpAddress; return this; } @Override public RouterBgpPeer set(String fieldName, Object value) { return (RouterBgpPeer) super.set(fieldName, value); } @Override public RouterBgpPeer clone() { return (RouterBgpPeer) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy