|
| 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.networksecurity.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * A deployment represents a zonal intercept backend ready to accept GENEVE-encapsulated traffic, |
| 21 | + * e.g. a zonal instance group fronted by an internal passthrough load balancer. Deployments are |
| 22 | + * always part of a global deployment group which represents a global intercept service. |
| 23 | + * |
| 24 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 25 | + * transmitted over HTTP when working with the Network Security API. For a detailed explanation see: |
| 26 | + * <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> |
| 27 | + * </p> |
| 28 | + * |
| 29 | + * @author Google, Inc. |
| 30 | + */ |
| 31 | +@SuppressWarnings("javadoc") |
| 32 | +public final class InterceptDeployment extends com.google.api.client.json.GenericJson { |
| 33 | + |
| 34 | + /** |
| 35 | + * Output only. The timestamp when the resource was created. See |
| 36 | + * https://google.aip.dev/148#timestamps. |
| 37 | + * The value may be {@code null}. |
| 38 | + */ |
| 39 | + @com.google.api.client.util.Key |
| 40 | + private String createTime; |
| 41 | + |
| 42 | + /** |
| 43 | + * Optional. User-provided description of the deployment. Used as additional context for the |
| 44 | + * deployment. |
| 45 | + * The value may be {@code null}. |
| 46 | + */ |
| 47 | + @com.google.api.client.util.Key |
| 48 | + private java.lang.String description; |
| 49 | + |
| 50 | + /** |
| 51 | + * Required. Immutable. The regional forwarding rule that fronts the interceptors, for example: |
| 52 | + * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See |
| 53 | + * https://google.aip.dev/124. |
| 54 | + * The value may be {@code null}. |
| 55 | + */ |
| 56 | + @com.google.api.client.util.Key |
| 57 | + private java.lang.String forwardingRule; |
| 58 | + |
| 59 | + /** |
| 60 | + * Required. Immutable. The deployment group that this deployment is a part of, for example: |
| 61 | + * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See |
| 62 | + * https://google.aip.dev/124. |
| 63 | + * The value may be {@code null}. |
| 64 | + */ |
| 65 | + @com.google.api.client.util.Key |
| 66 | + private java.lang.String interceptDeploymentGroup; |
| 67 | + |
| 68 | + /** |
| 69 | + * Optional. Labels are key/value pairs that help to organize and filter resources. |
| 70 | + * The value may be {@code null}. |
| 71 | + */ |
| 72 | + @com.google.api.client.util.Key |
| 73 | + private java.util.Map<String, java.lang.String> labels; |
| 74 | + |
| 75 | + /** |
| 76 | + * Immutable. Identifier. The resource name of this deployment, for example: |
| 77 | + * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`. See |
| 78 | + * https://google.aip.dev/122 for more details. |
| 79 | + * The value may be {@code null}. |
| 80 | + */ |
| 81 | + @com.google.api.client.util.Key |
| 82 | + private java.lang.String name; |
| 83 | + |
| 84 | + /** |
| 85 | + * Output only. The current state of the resource does not match the user's intended state, and |
| 86 | + * the system is working to reconcile them. This part of the normal operation (e.g. linking a new |
| 87 | + * association to the parent group). See https://google.aip.dev/128. |
| 88 | + * The value may be {@code null}. |
| 89 | + */ |
| 90 | + @com.google.api.client.util.Key |
| 91 | + private java.lang.Boolean reconciling; |
| 92 | + |
| 93 | + /** |
| 94 | + * Output only. The current state of the deployment. See https://google.aip.dev/216. |
| 95 | + * The value may be {@code null}. |
| 96 | + */ |
| 97 | + @com.google.api.client.util.Key |
| 98 | + private java.lang.String state; |
| 99 | + |
| 100 | + /** |
| 101 | + * Output only. The timestamp when the resource was most recently updated. See |
| 102 | + * https://google.aip.dev/148#timestamps. |
| 103 | + * The value may be {@code null}. |
| 104 | + */ |
| 105 | + @com.google.api.client.util.Key |
| 106 | + private String updateTime; |
| 107 | + |
| 108 | + /** |
| 109 | + * Output only. The timestamp when the resource was created. See |
| 110 | + * https://google.aip.dev/148#timestamps. |
| 111 | + * @return value or {@code null} for none |
| 112 | + */ |
| 113 | + public String getCreateTime() { |
| 114 | + return createTime; |
| 115 | + } |
| 116 | + |
| 117 | + /** |
| 118 | + * Output only. The timestamp when the resource was created. See |
| 119 | + * https://google.aip.dev/148#timestamps. |
| 120 | + * @param createTime createTime or {@code null} for none |
| 121 | + */ |
| 122 | + public InterceptDeployment setCreateTime(String createTime) { |
| 123 | + this.createTime = createTime; |
| 124 | + return this; |
| 125 | + } |
| 126 | + |
| 127 | + /** |
| 128 | + * Optional. User-provided description of the deployment. Used as additional context for the |
| 129 | + * deployment. |
| 130 | + * @return value or {@code null} for none |
| 131 | + */ |
| 132 | + public java.lang.String getDescription() { |
| 133 | + return description; |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * Optional. User-provided description of the deployment. Used as additional context for the |
| 138 | + * deployment. |
| 139 | + * @param description description or {@code null} for none |
| 140 | + */ |
| 141 | + public InterceptDeployment setDescription(java.lang.String description) { |
| 142 | + this.description = description; |
| 143 | + return this; |
| 144 | + } |
| 145 | + |
| 146 | + /** |
| 147 | + * Required. Immutable. The regional forwarding rule that fronts the interceptors, for example: |
| 148 | + * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See |
| 149 | + * https://google.aip.dev/124. |
| 150 | + * @return value or {@code null} for none |
| 151 | + */ |
| 152 | + public java.lang.String getForwardingRule() { |
| 153 | + return forwardingRule; |
| 154 | + } |
| 155 | + |
| 156 | + /** |
| 157 | + * Required. Immutable. The regional forwarding rule that fronts the interceptors, for example: |
| 158 | + * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See |
| 159 | + * https://google.aip.dev/124. |
| 160 | + * @param forwardingRule forwardingRule or {@code null} for none |
| 161 | + */ |
| 162 | + public InterceptDeployment setForwardingRule(java.lang.String forwardingRule) { |
| 163 | + this.forwardingRule = forwardingRule; |
| 164 | + return this; |
| 165 | + } |
| 166 | + |
| 167 | + /** |
| 168 | + * Required. Immutable. The deployment group that this deployment is a part of, for example: |
| 169 | + * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See |
| 170 | + * https://google.aip.dev/124. |
| 171 | + * @return value or {@code null} for none |
| 172 | + */ |
| 173 | + public java.lang.String getInterceptDeploymentGroup() { |
| 174 | + return interceptDeploymentGroup; |
| 175 | + } |
| 176 | + |
| 177 | + /** |
| 178 | + * Required. Immutable. The deployment group that this deployment is a part of, for example: |
| 179 | + * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See |
| 180 | + * https://google.aip.dev/124. |
| 181 | + * @param interceptDeploymentGroup interceptDeploymentGroup or {@code null} for none |
| 182 | + */ |
| 183 | + public InterceptDeployment setInterceptDeploymentGroup(java.lang.String interceptDeploymentGroup) { |
| 184 | + this.interceptDeploymentGroup = interceptDeploymentGroup; |
| 185 | + return this; |
| 186 | + } |
| 187 | + |
| 188 | + /** |
| 189 | + * Optional. Labels are key/value pairs that help to organize and filter resources. |
| 190 | + * @return value or {@code null} for none |
| 191 | + */ |
| 192 | + public java.util.Map<String, java.lang.String> getLabels() { |
| 193 | + return labels; |
| 194 | + } |
| 195 | + |
| 196 | + /** |
| 197 | + * Optional. Labels are key/value pairs that help to organize and filter resources. |
| 198 | + * @param labels labels or {@code null} for none |
| 199 | + */ |
| 200 | + public InterceptDeployment setLabels(java.util.Map<String, java.lang.String> labels) { |
| 201 | + this.labels = labels; |
| 202 | + return this; |
| 203 | + } |
| 204 | + |
| 205 | + /** |
| 206 | + * Immutable. Identifier. The resource name of this deployment, for example: |
| 207 | + * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`. See |
| 208 | + * https://google.aip.dev/122 for more details. |
| 209 | + * @return value or {@code null} for none |
| 210 | + */ |
| 211 | + public java.lang.String getName() { |
| 212 | + return name; |
| 213 | + } |
| 214 | + |
| 215 | + /** |
| 216 | + * Immutable. Identifier. The resource name of this deployment, for example: |
| 217 | + * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`. See |
| 218 | + * https://google.aip.dev/122 for more details. |
| 219 | + * @param name name or {@code null} for none |
| 220 | + */ |
| 221 | + public InterceptDeployment setName(java.lang.String name) { |
| 222 | + this.name = name; |
| 223 | + return this; |
| 224 | + } |
| 225 | + |
| 226 | + /** |
| 227 | + * Output only. The current state of the resource does not match the user's intended state, and |
| 228 | + * the system is working to reconcile them. This part of the normal operation (e.g. linking a new |
| 229 | + * association to the parent group). See https://google.aip.dev/128. |
| 230 | + * @return value or {@code null} for none |
| 231 | + */ |
| 232 | + public java.lang.Boolean getReconciling() { |
| 233 | + return reconciling; |
| 234 | + } |
| 235 | + |
| 236 | + /** |
| 237 | + * Output only. The current state of the resource does not match the user's intended state, and |
| 238 | + * the system is working to reconcile them. This part of the normal operation (e.g. linking a new |
| 239 | + * association to the parent group). See https://google.aip.dev/128. |
| 240 | + * @param reconciling reconciling or {@code null} for none |
| 241 | + */ |
| 242 | + public InterceptDeployment setReconciling(java.lang.Boolean reconciling) { |
| 243 | + this.reconciling = reconciling; |
| 244 | + return this; |
| 245 | + } |
| 246 | + |
| 247 | + /** |
| 248 | + * Output only. The current state of the deployment. See https://google.aip.dev/216. |
| 249 | + * @return value or {@code null} for none |
| 250 | + */ |
| 251 | + public java.lang.String getState() { |
| 252 | + return state; |
| 253 | + } |
| 254 | + |
| 255 | + /** |
| 256 | + * Output only. The current state of the deployment. See https://google.aip.dev/216. |
| 257 | + * @param state state or {@code null} for none |
| 258 | + */ |
| 259 | + public InterceptDeployment setState(java.lang.String state) { |
| 260 | + this.state = state; |
| 261 | + return this; |
| 262 | + } |
| 263 | + |
| 264 | + /** |
| 265 | + * Output only. The timestamp when the resource was most recently updated. See |
| 266 | + * https://google.aip.dev/148#timestamps. |
| 267 | + * @return value or {@code null} for none |
| 268 | + */ |
| 269 | + public String getUpdateTime() { |
| 270 | + return updateTime; |
| 271 | + } |
| 272 | + |
| 273 | + /** |
| 274 | + * Output only. The timestamp when the resource was most recently updated. See |
| 275 | + * https://google.aip.dev/148#timestamps. |
| 276 | + * @param updateTime updateTime or {@code null} for none |
| 277 | + */ |
| 278 | + public InterceptDeployment setUpdateTime(String updateTime) { |
| 279 | + this.updateTime = updateTime; |
| 280 | + return this; |
| 281 | + } |
| 282 | + |
| 283 | + @Override |
| 284 | + public InterceptDeployment set(String fieldName, Object value) { |
| 285 | + return (InterceptDeployment) super.set(fieldName, value); |
| 286 | + } |
| 287 | + |
| 288 | + @Override |
| 289 | + public InterceptDeployment clone() { |
| 290 | + return (InterceptDeployment) super.clone(); |
| 291 | + } |
| 292 | + |
| 293 | +} |
0 commit comments