|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.gkeonprem.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * BareMetalAdminBgpLbConfig represents configuration parameters for a Border Gateway Protocol (BGP) |
| 21 | + * load balancer. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the GKE On-Prem API. For a detailed explanation see: |
| 25 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class BareMetalAdminBgpLbConfig extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Required. AddressPools is a list of non-overlapping IP pools used by load balancer typed |
| 35 | + * services. All addresses must be routable to load balancer nodes. IngressVIP must be included in |
| 36 | + * the pools. |
| 37 | + * The value may be {@code null}. |
| 38 | + */ |
| 39 | + @com.google.api.client.util.Key |
| 40 | + private java.util.List<BareMetalAdminLoadBalancerAddressPool> addressPools; |
| 41 | + |
| 42 | + /** |
| 43 | + * Required. BGP autonomous system number (ASN) of the cluster. This field can be updated after |
| 44 | + * cluster creation. |
| 45 | + * The value may be {@code null}. |
| 46 | + */ |
| 47 | + @com.google.api.client.util.Key @com.google.api.client.json.JsonString |
| 48 | + private java.lang.Long asn; |
| 49 | + |
| 50 | + /** |
| 51 | + * Required. The list of BGP peers that the cluster will connect to. At least one peer must be |
| 52 | + * configured for each control plane node. Control plane nodes will connect to these peers to |
| 53 | + * advertise the control plane VIP. The Services load balancer also uses these peers by default. |
| 54 | + * This field can be updated after cluster creation. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private java.util.List<BareMetalAdminBgpPeerConfig> bgpPeerConfigs; |
| 59 | + |
| 60 | + /** |
| 61 | + * Specifies the node pool running data plane load balancing. L2 connectivity is required among |
| 62 | + * nodes in this pool. If missing, the control plane node pool is used for data plane load |
| 63 | + * balancing. |
| 64 | + * The value may be {@code null}. |
| 65 | + */ |
| 66 | + @com.google.api.client.util.Key |
| 67 | + private BareMetalAdminLoadBalancerNodePoolConfig loadBalancerNodePoolConfig; |
| 68 | + |
| 69 | + /** |
| 70 | + * Required. AddressPools is a list of non-overlapping IP pools used by load balancer typed |
| 71 | + * services. All addresses must be routable to load balancer nodes. IngressVIP must be included in |
| 72 | + * the pools. |
| 73 | + * @return value or {@code null} for none |
| 74 | + */ |
| 75 | + public java.util.List<BareMetalAdminLoadBalancerAddressPool> getAddressPools() { |
| 76 | + return addressPools; |
| 77 | + } |
| 78 | + |
| 79 | + /** |
| 80 | + * Required. AddressPools is a list of non-overlapping IP pools used by load balancer typed |
| 81 | + * services. All addresses must be routable to load balancer nodes. IngressVIP must be included in |
| 82 | + * the pools. |
| 83 | + * @param addressPools addressPools or {@code null} for none |
| 84 | + */ |
| 85 | + public BareMetalAdminBgpLbConfig setAddressPools(java.util.List<BareMetalAdminLoadBalancerAddressPool> addressPools) { |
| 86 | + this.addressPools = addressPools; |
| 87 | + return this; |
| 88 | + } |
| 89 | + |
| 90 | + /** |
| 91 | + * Required. BGP autonomous system number (ASN) of the cluster. This field can be updated after |
| 92 | + * cluster creation. |
| 93 | + * @return value or {@code null} for none |
| 94 | + */ |
| 95 | + public java.lang.Long getAsn() { |
| 96 | + return asn; |
| 97 | + } |
| 98 | + |
| 99 | + /** |
| 100 | + * Required. BGP autonomous system number (ASN) of the cluster. This field can be updated after |
| 101 | + * cluster creation. |
| 102 | + * @param asn asn or {@code null} for none |
| 103 | + */ |
| 104 | + public BareMetalAdminBgpLbConfig setAsn(java.lang.Long asn) { |
| 105 | + this.asn = asn; |
| 106 | + return this; |
| 107 | + } |
| 108 | + |
| 109 | + /** |
| 110 | + * Required. The list of BGP peers that the cluster will connect to. At least one peer must be |
| 111 | + * configured for each control plane node. Control plane nodes will connect to these peers to |
| 112 | + * advertise the control plane VIP. The Services load balancer also uses these peers by default. |
| 113 | + * This field can be updated after cluster creation. |
| 114 | + * @return value or {@code null} for none |
| 115 | + */ |
| 116 | + public java.util.List<BareMetalAdminBgpPeerConfig> getBgpPeerConfigs() { |
| 117 | + return bgpPeerConfigs; |
| 118 | + } |
| 119 | + |
| 120 | + /** |
| 121 | + * Required. The list of BGP peers that the cluster will connect to. At least one peer must be |
| 122 | + * configured for each control plane node. Control plane nodes will connect to these peers to |
| 123 | + * advertise the control plane VIP. The Services load balancer also uses these peers by default. |
| 124 | + * This field can be updated after cluster creation. |
| 125 | + * @param bgpPeerConfigs bgpPeerConfigs or {@code null} for none |
| 126 | + */ |
| 127 | + public BareMetalAdminBgpLbConfig setBgpPeerConfigs(java.util.List<BareMetalAdminBgpPeerConfig> bgpPeerConfigs) { |
| 128 | + this.bgpPeerConfigs = bgpPeerConfigs; |
| 129 | + return this; |
| 130 | + } |
| 131 | + |
| 132 | + /** |
| 133 | + * Specifies the node pool running data plane load balancing. L2 connectivity is required among |
| 134 | + * nodes in this pool. If missing, the control plane node pool is used for data plane load |
| 135 | + * balancing. |
| 136 | + * @return value or {@code null} for none |
| 137 | + */ |
| 138 | + public BareMetalAdminLoadBalancerNodePoolConfig getLoadBalancerNodePoolConfig() { |
| 139 | + return loadBalancerNodePoolConfig; |
| 140 | + } |
| 141 | + |
| 142 | + /** |
| 143 | + * Specifies the node pool running data plane load balancing. L2 connectivity is required among |
| 144 | + * nodes in this pool. If missing, the control plane node pool is used for data plane load |
| 145 | + * balancing. |
| 146 | + * @param loadBalancerNodePoolConfig loadBalancerNodePoolConfig or {@code null} for none |
| 147 | + */ |
| 148 | + public BareMetalAdminBgpLbConfig setLoadBalancerNodePoolConfig(BareMetalAdminLoadBalancerNodePoolConfig loadBalancerNodePoolConfig) { |
| 149 | + this.loadBalancerNodePoolConfig = loadBalancerNodePoolConfig; |
| 150 | + return this; |
| 151 | + } |
| 152 | + |
| 153 | + @Override |
| 154 | + public BareMetalAdminBgpLbConfig set(String fieldName, Object value) { |
| 155 | + return (BareMetalAdminBgpLbConfig) super.set(fieldName, value); |
| 156 | + } |
| 157 | + |
| 158 | + @Override |
| 159 | + public BareMetalAdminBgpLbConfig clone() { |
| 160 | + return (BareMetalAdminBgpLbConfig) super.clone(); |
| 161 | + } |
| 162 | + |
| 163 | +} |
0 commit comments