|
| 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.config.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like structure. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Infrastructure Manager API. For a detailed |
| 24 | + * 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 DeploymentGroup extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment |
| 35 | + * group during automation. See https://google.aip.dev/148#annotations for details on format and |
| 36 | + * size limitations. |
| 37 | + * The value may be {@code null}. |
| 38 | + */ |
| 39 | + @com.google.api.client.util.Key |
| 40 | + private java.util.Map<String, java.lang.String> annotations; |
| 41 | + |
| 42 | + /** |
| 43 | + * Output only. Time when the deployment group was created. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private String createTime; |
| 48 | + |
| 49 | + /** |
| 50 | + * The deployment units of the deployment group in a DAG like structure. When a deployment group |
| 51 | + * is being provisioned, the deployment units are deployed in a DAG order. The provided units must |
| 52 | + * be in a DAG order, otherwise an error will be returned. |
| 53 | + * The value may be {@code null}. |
| 54 | + */ |
| 55 | + @com.google.api.client.util.Key |
| 56 | + private java.util.List<DeploymentUnit> deploymentUnits; |
| 57 | + |
| 58 | + /** |
| 59 | + * Optional. User-defined metadata for the deployment group. |
| 60 | + * The value may be {@code null}. |
| 61 | + */ |
| 62 | + @com.google.api.client.util.Key |
| 63 | + private java.util.Map<String, java.lang.String> labels; |
| 64 | + |
| 65 | + /** |
| 66 | + * Identifier. The name of the deployment group. Format: |
| 67 | + * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. |
| 68 | + * The value may be {@code null}. |
| 69 | + */ |
| 70 | + @com.google.api.client.util.Key |
| 71 | + private java.lang.String name; |
| 72 | + |
| 73 | + /** |
| 74 | + * Output only. The error status of the deployment group provisioning or deprovisioning. |
| 75 | + * The value may be {@code null}. |
| 76 | + */ |
| 77 | + @com.google.api.client.util.Key |
| 78 | + private Status provisioningError; |
| 79 | + |
| 80 | + /** |
| 81 | + * Output only. The provisioning state of the deployment group. |
| 82 | + * The value may be {@code null}. |
| 83 | + */ |
| 84 | + @com.google.api.client.util.Key |
| 85 | + private java.lang.String provisioningState; |
| 86 | + |
| 87 | + /** |
| 88 | + * Output only. Additional information regarding the current provisioning state. |
| 89 | + * The value may be {@code null}. |
| 90 | + */ |
| 91 | + @com.google.api.client.util.Key |
| 92 | + private java.lang.String provisioningStateDescription; |
| 93 | + |
| 94 | + /** |
| 95 | + * Output only. Current state of the deployment group. |
| 96 | + * The value may be {@code null}. |
| 97 | + */ |
| 98 | + @com.google.api.client.util.Key |
| 99 | + private java.lang.String state; |
| 100 | + |
| 101 | + /** |
| 102 | + * Output only. Additional information regarding the current state. |
| 103 | + * The value may be {@code null}. |
| 104 | + */ |
| 105 | + @com.google.api.client.util.Key |
| 106 | + private java.lang.String stateDescription; |
| 107 | + |
| 108 | + /** |
| 109 | + * Output only. Time when the deployment group was last updated. |
| 110 | + * The value may be {@code null}. |
| 111 | + */ |
| 112 | + @com.google.api.client.util.Key |
| 113 | + private String updateTime; |
| 114 | + |
| 115 | + /** |
| 116 | + * Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment |
| 117 | + * group during automation. See https://google.aip.dev/148#annotations for details on format and |
| 118 | + * size limitations. |
| 119 | + * @return value or {@code null} for none |
| 120 | + */ |
| 121 | + public java.util.Map<String, java.lang.String> getAnnotations() { |
| 122 | + return annotations; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment |
| 127 | + * group during automation. See https://google.aip.dev/148#annotations for details on format and |
| 128 | + * size limitations. |
| 129 | + * @param annotations annotations or {@code null} for none |
| 130 | + */ |
| 131 | + public DeploymentGroup setAnnotations(java.util.Map<String, java.lang.String> annotations) { |
| 132 | + this.annotations = annotations; |
| 133 | + return this; |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * Output only. Time when the deployment group was created. |
| 138 | + * @return value or {@code null} for none |
| 139 | + */ |
| 140 | + public String getCreateTime() { |
| 141 | + return createTime; |
| 142 | + } |
| 143 | + |
| 144 | + /** |
| 145 | + * Output only. Time when the deployment group was created. |
| 146 | + * @param createTime createTime or {@code null} for none |
| 147 | + */ |
| 148 | + public DeploymentGroup setCreateTime(String createTime) { |
| 149 | + this.createTime = createTime; |
| 150 | + return this; |
| 151 | + } |
| 152 | + |
| 153 | + /** |
| 154 | + * The deployment units of the deployment group in a DAG like structure. When a deployment group |
| 155 | + * is being provisioned, the deployment units are deployed in a DAG order. The provided units must |
| 156 | + * be in a DAG order, otherwise an error will be returned. |
| 157 | + * @return value or {@code null} for none |
| 158 | + */ |
| 159 | + public java.util.List<DeploymentUnit> getDeploymentUnits() { |
| 160 | + return deploymentUnits; |
| 161 | + } |
| 162 | + |
| 163 | + /** |
| 164 | + * The deployment units of the deployment group in a DAG like structure. When a deployment group |
| 165 | + * is being provisioned, the deployment units are deployed in a DAG order. The provided units must |
| 166 | + * be in a DAG order, otherwise an error will be returned. |
| 167 | + * @param deploymentUnits deploymentUnits or {@code null} for none |
| 168 | + */ |
| 169 | + public DeploymentGroup setDeploymentUnits(java.util.List<DeploymentUnit> deploymentUnits) { |
| 170 | + this.deploymentUnits = deploymentUnits; |
| 171 | + return this; |
| 172 | + } |
| 173 | + |
| 174 | + /** |
| 175 | + * Optional. User-defined metadata for the deployment group. |
| 176 | + * @return value or {@code null} for none |
| 177 | + */ |
| 178 | + public java.util.Map<String, java.lang.String> getLabels() { |
| 179 | + return labels; |
| 180 | + } |
| 181 | + |
| 182 | + /** |
| 183 | + * Optional. User-defined metadata for the deployment group. |
| 184 | + * @param labels labels or {@code null} for none |
| 185 | + */ |
| 186 | + public DeploymentGroup setLabels(java.util.Map<String, java.lang.String> labels) { |
| 187 | + this.labels = labels; |
| 188 | + return this; |
| 189 | + } |
| 190 | + |
| 191 | + /** |
| 192 | + * Identifier. The name of the deployment group. Format: |
| 193 | + * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. |
| 194 | + * @return value or {@code null} for none |
| 195 | + */ |
| 196 | + public java.lang.String getName() { |
| 197 | + return name; |
| 198 | + } |
| 199 | + |
| 200 | + /** |
| 201 | + * Identifier. The name of the deployment group. Format: |
| 202 | + * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. |
| 203 | + * @param name name or {@code null} for none |
| 204 | + */ |
| 205 | + public DeploymentGroup setName(java.lang.String name) { |
| 206 | + this.name = name; |
| 207 | + return this; |
| 208 | + } |
| 209 | + |
| 210 | + /** |
| 211 | + * Output only. The error status of the deployment group provisioning or deprovisioning. |
| 212 | + * @return value or {@code null} for none |
| 213 | + */ |
| 214 | + public Status getProvisioningError() { |
| 215 | + return provisioningError; |
| 216 | + } |
| 217 | + |
| 218 | + /** |
| 219 | + * Output only. The error status of the deployment group provisioning or deprovisioning. |
| 220 | + * @param provisioningError provisioningError or {@code null} for none |
| 221 | + */ |
| 222 | + public DeploymentGroup setProvisioningError(Status provisioningError) { |
| 223 | + this.provisioningError = provisioningError; |
| 224 | + return this; |
| 225 | + } |
| 226 | + |
| 227 | + /** |
| 228 | + * Output only. The provisioning state of the deployment group. |
| 229 | + * @return value or {@code null} for none |
| 230 | + */ |
| 231 | + public java.lang.String getProvisioningState() { |
| 232 | + return provisioningState; |
| 233 | + } |
| 234 | + |
| 235 | + /** |
| 236 | + * Output only. The provisioning state of the deployment group. |
| 237 | + * @param provisioningState provisioningState or {@code null} for none |
| 238 | + */ |
| 239 | + public DeploymentGroup setProvisioningState(java.lang.String provisioningState) { |
| 240 | + this.provisioningState = provisioningState; |
| 241 | + return this; |
| 242 | + } |
| 243 | + |
| 244 | + /** |
| 245 | + * Output only. Additional information regarding the current provisioning state. |
| 246 | + * @return value or {@code null} for none |
| 247 | + */ |
| 248 | + public java.lang.String getProvisioningStateDescription() { |
| 249 | + return provisioningStateDescription; |
| 250 | + } |
| 251 | + |
| 252 | + /** |
| 253 | + * Output only. Additional information regarding the current provisioning state. |
| 254 | + * @param provisioningStateDescription provisioningStateDescription or {@code null} for none |
| 255 | + */ |
| 256 | + public DeploymentGroup setProvisioningStateDescription(java.lang.String provisioningStateDescription) { |
| 257 | + this.provisioningStateDescription = provisioningStateDescription; |
| 258 | + return this; |
| 259 | + } |
| 260 | + |
| 261 | + /** |
| 262 | + * Output only. Current state of the deployment group. |
| 263 | + * @return value or {@code null} for none |
| 264 | + */ |
| 265 | + public java.lang.String getState() { |
| 266 | + return state; |
| 267 | + } |
| 268 | + |
| 269 | + /** |
| 270 | + * Output only. Current state of the deployment group. |
| 271 | + * @param state state or {@code null} for none |
| 272 | + */ |
| 273 | + public DeploymentGroup setState(java.lang.String state) { |
| 274 | + this.state = state; |
| 275 | + return this; |
| 276 | + } |
| 277 | + |
| 278 | + /** |
| 279 | + * Output only. Additional information regarding the current state. |
| 280 | + * @return value or {@code null} for none |
| 281 | + */ |
| 282 | + public java.lang.String getStateDescription() { |
| 283 | + return stateDescription; |
| 284 | + } |
| 285 | + |
| 286 | + /** |
| 287 | + * Output only. Additional information regarding the current state. |
| 288 | + * @param stateDescription stateDescription or {@code null} for none |
| 289 | + */ |
| 290 | + public DeploymentGroup setStateDescription(java.lang.String stateDescription) { |
| 291 | + this.stateDescription = stateDescription; |
| 292 | + return this; |
| 293 | + } |
| 294 | + |
| 295 | + /** |
| 296 | + * Output only. Time when the deployment group was last updated. |
| 297 | + * @return value or {@code null} for none |
| 298 | + */ |
| 299 | + public String getUpdateTime() { |
| 300 | + return updateTime; |
| 301 | + } |
| 302 | + |
| 303 | + /** |
| 304 | + * Output only. Time when the deployment group was last updated. |
| 305 | + * @param updateTime updateTime or {@code null} for none |
| 306 | + */ |
| 307 | + public DeploymentGroup setUpdateTime(String updateTime) { |
| 308 | + this.updateTime = updateTime; |
| 309 | + return this; |
| 310 | + } |
| 311 | + |
| 312 | + @Override |
| 313 | + public DeploymentGroup set(String fieldName, Object value) { |
| 314 | + return (DeploymentGroup) super.set(fieldName, value); |
| 315 | + } |
| 316 | + |
| 317 | + @Override |
| 318 | + public DeploymentGroup clone() { |
| 319 | + return (DeploymentGroup) super.clone(); |
| 320 | + } |
| 321 | + |
| 322 | +} |
0 commit comments