|
| 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.observability.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Bucket configuration for storing observability data. |
| 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 Observability 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 Bucket extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Optional. Settings for configuring CMEK on a bucket. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private CmekSettings cmekSettings; |
| 38 | + |
| 39 | + /** |
| 40 | + * Output only. Create timestamp. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private String createTime; |
| 45 | + |
| 46 | + /** |
| 47 | + * Output only. Delete timestamp. |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private String deleteTime; |
| 52 | + |
| 53 | + /** |
| 54 | + * Optional. Description of the bucket. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private java.lang.String description; |
| 59 | + |
| 60 | + /** |
| 61 | + * Optional. User friendly display name. |
| 62 | + * The value may be {@code null}. |
| 63 | + */ |
| 64 | + @com.google.api.client.util.Key |
| 65 | + private java.lang.String displayName; |
| 66 | + |
| 67 | + /** |
| 68 | + * Identifier. Name of the bucket. The format is: |
| 69 | + * projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
| 70 | + * The value may be {@code null}. |
| 71 | + */ |
| 72 | + @com.google.api.client.util.Key |
| 73 | + private java.lang.String name; |
| 74 | + |
| 75 | + /** |
| 76 | + * Output only. Timestamp when the bucket in soft-deleted state is purged. |
| 77 | + * The value may be {@code null}. |
| 78 | + */ |
| 79 | + @com.google.api.client.util.Key |
| 80 | + private String purgeTime; |
| 81 | + |
| 82 | + /** |
| 83 | + * Output only. Update timestamp. |
| 84 | + * The value may be {@code null}. |
| 85 | + */ |
| 86 | + @com.google.api.client.util.Key |
| 87 | + private String updateTime; |
| 88 | + |
| 89 | + /** |
| 90 | + * Optional. Settings for configuring CMEK on a bucket. |
| 91 | + * @return value or {@code null} for none |
| 92 | + */ |
| 93 | + public CmekSettings getCmekSettings() { |
| 94 | + return cmekSettings; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * Optional. Settings for configuring CMEK on a bucket. |
| 99 | + * @param cmekSettings cmekSettings or {@code null} for none |
| 100 | + */ |
| 101 | + public Bucket setCmekSettings(CmekSettings cmekSettings) { |
| 102 | + this.cmekSettings = cmekSettings; |
| 103 | + return this; |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * Output only. Create timestamp. |
| 108 | + * @return value or {@code null} for none |
| 109 | + */ |
| 110 | + public String getCreateTime() { |
| 111 | + return createTime; |
| 112 | + } |
| 113 | + |
| 114 | + /** |
| 115 | + * Output only. Create timestamp. |
| 116 | + * @param createTime createTime or {@code null} for none |
| 117 | + */ |
| 118 | + public Bucket setCreateTime(String createTime) { |
| 119 | + this.createTime = createTime; |
| 120 | + return this; |
| 121 | + } |
| 122 | + |
| 123 | + /** |
| 124 | + * Output only. Delete timestamp. |
| 125 | + * @return value or {@code null} for none |
| 126 | + */ |
| 127 | + public String getDeleteTime() { |
| 128 | + return deleteTime; |
| 129 | + } |
| 130 | + |
| 131 | + /** |
| 132 | + * Output only. Delete timestamp. |
| 133 | + * @param deleteTime deleteTime or {@code null} for none |
| 134 | + */ |
| 135 | + public Bucket setDeleteTime(String deleteTime) { |
| 136 | + this.deleteTime = deleteTime; |
| 137 | + return this; |
| 138 | + } |
| 139 | + |
| 140 | + /** |
| 141 | + * Optional. Description of the bucket. |
| 142 | + * @return value or {@code null} for none |
| 143 | + */ |
| 144 | + public java.lang.String getDescription() { |
| 145 | + return description; |
| 146 | + } |
| 147 | + |
| 148 | + /** |
| 149 | + * Optional. Description of the bucket. |
| 150 | + * @param description description or {@code null} for none |
| 151 | + */ |
| 152 | + public Bucket setDescription(java.lang.String description) { |
| 153 | + this.description = description; |
| 154 | + return this; |
| 155 | + } |
| 156 | + |
| 157 | + /** |
| 158 | + * Optional. User friendly display name. |
| 159 | + * @return value or {@code null} for none |
| 160 | + */ |
| 161 | + public java.lang.String getDisplayName() { |
| 162 | + return displayName; |
| 163 | + } |
| 164 | + |
| 165 | + /** |
| 166 | + * Optional. User friendly display name. |
| 167 | + * @param displayName displayName or {@code null} for none |
| 168 | + */ |
| 169 | + public Bucket setDisplayName(java.lang.String displayName) { |
| 170 | + this.displayName = displayName; |
| 171 | + return this; |
| 172 | + } |
| 173 | + |
| 174 | + /** |
| 175 | + * Identifier. Name of the bucket. The format is: |
| 176 | + * projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
| 177 | + * @return value or {@code null} for none |
| 178 | + */ |
| 179 | + public java.lang.String getName() { |
| 180 | + return name; |
| 181 | + } |
| 182 | + |
| 183 | + /** |
| 184 | + * Identifier. Name of the bucket. The format is: |
| 185 | + * projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
| 186 | + * @param name name or {@code null} for none |
| 187 | + */ |
| 188 | + public Bucket setName(java.lang.String name) { |
| 189 | + this.name = name; |
| 190 | + return this; |
| 191 | + } |
| 192 | + |
| 193 | + /** |
| 194 | + * Output only. Timestamp when the bucket in soft-deleted state is purged. |
| 195 | + * @return value or {@code null} for none |
| 196 | + */ |
| 197 | + public String getPurgeTime() { |
| 198 | + return purgeTime; |
| 199 | + } |
| 200 | + |
| 201 | + /** |
| 202 | + * Output only. Timestamp when the bucket in soft-deleted state is purged. |
| 203 | + * @param purgeTime purgeTime or {@code null} for none |
| 204 | + */ |
| 205 | + public Bucket setPurgeTime(String purgeTime) { |
| 206 | + this.purgeTime = purgeTime; |
| 207 | + return this; |
| 208 | + } |
| 209 | + |
| 210 | + /** |
| 211 | + * Output only. Update timestamp. |
| 212 | + * @return value or {@code null} for none |
| 213 | + */ |
| 214 | + public String getUpdateTime() { |
| 215 | + return updateTime; |
| 216 | + } |
| 217 | + |
| 218 | + /** |
| 219 | + * Output only. Update timestamp. |
| 220 | + * @param updateTime updateTime or {@code null} for none |
| 221 | + */ |
| 222 | + public Bucket setUpdateTime(String updateTime) { |
| 223 | + this.updateTime = updateTime; |
| 224 | + return this; |
| 225 | + } |
| 226 | + |
| 227 | + @Override |
| 228 | + public Bucket set(String fieldName, Object value) { |
| 229 | + return (Bucket) super.set(fieldName, value); |
| 230 | + } |
| 231 | + |
| 232 | + @Override |
| 233 | + public Bucket clone() { |
| 234 | + return (Bucket) super.clone(); |
| 235 | + } |
| 236 | + |
| 237 | +} |
0 commit comments