|
| 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.vmwareengine.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Announcement for the resources of Vmware Engine. |
| 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 VMware Engine API. For a detailed explanation see: |
| 24 | + * <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> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class Announcement extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Optional. Activity type of the announcement There can be only one active announcement for a |
| 34 | + * given activity type and target resource. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.String activityType; |
| 39 | + |
| 40 | + /** |
| 41 | + * A Cluster resource name. |
| 42 | + * The value may be {@code null}. |
| 43 | + */ |
| 44 | + @com.google.api.client.util.Key |
| 45 | + private java.lang.String cluster; |
| 46 | + |
| 47 | + /** |
| 48 | + * Required. Code of the announcement. Indicates the presence of a VMware Engine related |
| 49 | + * announcement and corresponds to a related message in the `description` field. |
| 50 | + * The value may be {@code null}. |
| 51 | + */ |
| 52 | + @com.google.api.client.util.Key |
| 53 | + private java.lang.String code; |
| 54 | + |
| 55 | + /** |
| 56 | + * Output only. Creation time of this resource. It also serves as start time of notification. |
| 57 | + * The value may be {@code null}. |
| 58 | + */ |
| 59 | + @com.google.api.client.util.Key |
| 60 | + private String createTime; |
| 61 | + |
| 62 | + /** |
| 63 | + * Output only. Description of the announcement. |
| 64 | + * The value may be {@code null}. |
| 65 | + */ |
| 66 | + @com.google.api.client.util.Key |
| 67 | + private java.lang.String description; |
| 68 | + |
| 69 | + /** |
| 70 | + * Output only. Additional structured details about this announcement. |
| 71 | + * The value may be {@code null}. |
| 72 | + */ |
| 73 | + @com.google.api.client.util.Key |
| 74 | + private java.util.Map<String, java.lang.String> metadata; |
| 75 | + |
| 76 | + /** |
| 77 | + * Output only. The resource name of the announcement. Resource names are schemeless URIs that |
| 78 | + * follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: |
| 79 | + * `projects/my-project/locations/us-west1-a/announcements/my-announcement-id` |
| 80 | + * The value may be {@code null}. |
| 81 | + */ |
| 82 | + @com.google.api.client.util.Key |
| 83 | + private java.lang.String name; |
| 84 | + |
| 85 | + /** |
| 86 | + * A Private Cloud resource name. |
| 87 | + * The value may be {@code null}. |
| 88 | + */ |
| 89 | + @com.google.api.client.util.Key |
| 90 | + private java.lang.String privateCloud; |
| 91 | + |
| 92 | + /** |
| 93 | + * Output only. State of the resource. New values may be added to this enum when appropriate. |
| 94 | + * The value may be {@code null}. |
| 95 | + */ |
| 96 | + @com.google.api.client.util.Key |
| 97 | + private java.lang.String state; |
| 98 | + |
| 99 | + /** |
| 100 | + * Output only. Target Resource Type defines the type of the target for the announcement |
| 101 | + * The value may be {@code null}. |
| 102 | + */ |
| 103 | + @com.google.api.client.util.Key |
| 104 | + private java.lang.String targetResourceType; |
| 105 | + |
| 106 | + /** |
| 107 | + * Output only. Last update time of this resource. |
| 108 | + * The value may be {@code null}. |
| 109 | + */ |
| 110 | + @com.google.api.client.util.Key |
| 111 | + private String updateTime; |
| 112 | + |
| 113 | + /** |
| 114 | + * Optional. Activity type of the announcement There can be only one active announcement for a |
| 115 | + * given activity type and target resource. |
| 116 | + * @return value or {@code null} for none |
| 117 | + */ |
| 118 | + public java.lang.String getActivityType() { |
| 119 | + return activityType; |
| 120 | + } |
| 121 | + |
| 122 | + /** |
| 123 | + * Optional. Activity type of the announcement There can be only one active announcement for a |
| 124 | + * given activity type and target resource. |
| 125 | + * @param activityType activityType or {@code null} for none |
| 126 | + */ |
| 127 | + public Announcement setActivityType(java.lang.String activityType) { |
| 128 | + this.activityType = activityType; |
| 129 | + return this; |
| 130 | + } |
| 131 | + |
| 132 | + /** |
| 133 | + * A Cluster resource name. |
| 134 | + * @return value or {@code null} for none |
| 135 | + */ |
| 136 | + public java.lang.String getCluster() { |
| 137 | + return cluster; |
| 138 | + } |
| 139 | + |
| 140 | + /** |
| 141 | + * A Cluster resource name. |
| 142 | + * @param cluster cluster or {@code null} for none |
| 143 | + */ |
| 144 | + public Announcement setCluster(java.lang.String cluster) { |
| 145 | + this.cluster = cluster; |
| 146 | + return this; |
| 147 | + } |
| 148 | + |
| 149 | + /** |
| 150 | + * Required. Code of the announcement. Indicates the presence of a VMware Engine related |
| 151 | + * announcement and corresponds to a related message in the `description` field. |
| 152 | + * @return value or {@code null} for none |
| 153 | + */ |
| 154 | + public java.lang.String getCode() { |
| 155 | + return code; |
| 156 | + } |
| 157 | + |
| 158 | + /** |
| 159 | + * Required. Code of the announcement. Indicates the presence of a VMware Engine related |
| 160 | + * announcement and corresponds to a related message in the `description` field. |
| 161 | + * @param code code or {@code null} for none |
| 162 | + */ |
| 163 | + public Announcement setCode(java.lang.String code) { |
| 164 | + this.code = code; |
| 165 | + return this; |
| 166 | + } |
| 167 | + |
| 168 | + /** |
| 169 | + * Output only. Creation time of this resource. It also serves as start time of notification. |
| 170 | + * @return value or {@code null} for none |
| 171 | + */ |
| 172 | + public String getCreateTime() { |
| 173 | + return createTime; |
| 174 | + } |
| 175 | + |
| 176 | + /** |
| 177 | + * Output only. Creation time of this resource. It also serves as start time of notification. |
| 178 | + * @param createTime createTime or {@code null} for none |
| 179 | + */ |
| 180 | + public Announcement setCreateTime(String createTime) { |
| 181 | + this.createTime = createTime; |
| 182 | + return this; |
| 183 | + } |
| 184 | + |
| 185 | + /** |
| 186 | + * Output only. Description of the announcement. |
| 187 | + * @return value or {@code null} for none |
| 188 | + */ |
| 189 | + public java.lang.String getDescription() { |
| 190 | + return description; |
| 191 | + } |
| 192 | + |
| 193 | + /** |
| 194 | + * Output only. Description of the announcement. |
| 195 | + * @param description description or {@code null} for none |
| 196 | + */ |
| 197 | + public Announcement setDescription(java.lang.String description) { |
| 198 | + this.description = description; |
| 199 | + return this; |
| 200 | + } |
| 201 | + |
| 202 | + /** |
| 203 | + * Output only. Additional structured details about this announcement. |
| 204 | + * @return value or {@code null} for none |
| 205 | + */ |
| 206 | + public java.util.Map<String, java.lang.String> getMetadata() { |
| 207 | + return metadata; |
| 208 | + } |
| 209 | + |
| 210 | + /** |
| 211 | + * Output only. Additional structured details about this announcement. |
| 212 | + * @param metadata metadata or {@code null} for none |
| 213 | + */ |
| 214 | + public Announcement setMetadata(java.util.Map<String, java.lang.String> metadata) { |
| 215 | + this.metadata = metadata; |
| 216 | + return this; |
| 217 | + } |
| 218 | + |
| 219 | + /** |
| 220 | + * Output only. The resource name of the announcement. Resource names are schemeless URIs that |
| 221 | + * follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: |
| 222 | + * `projects/my-project/locations/us-west1-a/announcements/my-announcement-id` |
| 223 | + * @return value or {@code null} for none |
| 224 | + */ |
| 225 | + public java.lang.String getName() { |
| 226 | + return name; |
| 227 | + } |
| 228 | + |
| 229 | + /** |
| 230 | + * Output only. The resource name of the announcement. Resource names are schemeless URIs that |
| 231 | + * follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: |
| 232 | + * `projects/my-project/locations/us-west1-a/announcements/my-announcement-id` |
| 233 | + * @param name name or {@code null} for none |
| 234 | + */ |
| 235 | + public Announcement setName(java.lang.String name) { |
| 236 | + this.name = name; |
| 237 | + return this; |
| 238 | + } |
| 239 | + |
| 240 | + /** |
| 241 | + * A Private Cloud resource name. |
| 242 | + * @return value or {@code null} for none |
| 243 | + */ |
| 244 | + public java.lang.String getPrivateCloud() { |
| 245 | + return privateCloud; |
| 246 | + } |
| 247 | + |
| 248 | + /** |
| 249 | + * A Private Cloud resource name. |
| 250 | + * @param privateCloud privateCloud or {@code null} for none |
| 251 | + */ |
| 252 | + public Announcement setPrivateCloud(java.lang.String privateCloud) { |
| 253 | + this.privateCloud = privateCloud; |
| 254 | + return this; |
| 255 | + } |
| 256 | + |
| 257 | + /** |
| 258 | + * Output only. State of the resource. New values may be added to this enum when appropriate. |
| 259 | + * @return value or {@code null} for none |
| 260 | + */ |
| 261 | + public java.lang.String getState() { |
| 262 | + return state; |
| 263 | + } |
| 264 | + |
| 265 | + /** |
| 266 | + * Output only. State of the resource. New values may be added to this enum when appropriate. |
| 267 | + * @param state state or {@code null} for none |
| 268 | + */ |
| 269 | + public Announcement setState(java.lang.String state) { |
| 270 | + this.state = state; |
| 271 | + return this; |
| 272 | + } |
| 273 | + |
| 274 | + /** |
| 275 | + * Output only. Target Resource Type defines the type of the target for the announcement |
| 276 | + * @return value or {@code null} for none |
| 277 | + */ |
| 278 | + public java.lang.String getTargetResourceType() { |
| 279 | + return targetResourceType; |
| 280 | + } |
| 281 | + |
| 282 | + /** |
| 283 | + * Output only. Target Resource Type defines the type of the target for the announcement |
| 284 | + * @param targetResourceType targetResourceType or {@code null} for none |
| 285 | + */ |
| 286 | + public Announcement setTargetResourceType(java.lang.String targetResourceType) { |
| 287 | + this.targetResourceType = targetResourceType; |
| 288 | + return this; |
| 289 | + } |
| 290 | + |
| 291 | + /** |
| 292 | + * Output only. Last update time of this resource. |
| 293 | + * @return value or {@code null} for none |
| 294 | + */ |
| 295 | + public String getUpdateTime() { |
| 296 | + return updateTime; |
| 297 | + } |
| 298 | + |
| 299 | + /** |
| 300 | + * Output only. Last update time of this resource. |
| 301 | + * @param updateTime updateTime or {@code null} for none |
| 302 | + */ |
| 303 | + public Announcement setUpdateTime(String updateTime) { |
| 304 | + this.updateTime = updateTime; |
| 305 | + return this; |
| 306 | + } |
| 307 | + |
| 308 | + @Override |
| 309 | + public Announcement set(String fieldName, Object value) { |
| 310 | + return (Announcement) super.set(fieldName, value); |
| 311 | + } |
| 312 | + |
| 313 | + @Override |
| 314 | + public Announcement clone() { |
| 315 | + return (Announcement) super.clone(); |
| 316 | + } |
| 317 | + |
| 318 | +} |
0 commit comments