|
| 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.networkservices.v1beta1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * `CdnEdgeExtension` is a resource that lets the extension service modify the headers of both |
| 21 | + * requests to the cache and responses from the cache served by an |
| 22 | + * [`EdgeCacheService`](https://cloud.google.com/media- |
| 23 | + * cdn/docs/reference/rest/v1/projects.locations.edgeCacheServices). |
| 24 | + * |
| 25 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 26 | + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: |
| 27 | + * <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> |
| 28 | + * </p> |
| 29 | + * |
| 30 | + * @author Google, Inc. |
| 31 | + */ |
| 32 | +@SuppressWarnings("javadoc") |
| 33 | +public final class CdnEdgeExtension extends com.google.api.client.json.GenericJson { |
| 34 | + |
| 35 | + /** |
| 36 | + * Output only. The timestamp when the resource was created. |
| 37 | + * The value may be {@code null}. |
| 38 | + */ |
| 39 | + @com.google.api.client.util.Key |
| 40 | + private String createTime; |
| 41 | + |
| 42 | + /** |
| 43 | + * Optional. A human-readable description of the resource. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.String description; |
| 48 | + |
| 49 | + /** |
| 50 | + * Required. A set of ordered extension chains that contain the match conditions and extensions to |
| 51 | + * execute. Match conditions for each extension chain are evaluated in sequence for a given |
| 52 | + * request. The first extension chain that has a condition that matches the request is executed. |
| 53 | + * Any subsequent extension chains do not execute. Limited to 5 extension chains per resource. |
| 54 | + * The value may be {@code null}. |
| 55 | + */ |
| 56 | + @com.google.api.client.util.Key |
| 57 | + private java.util.List<ExtensionChain> extensionChains; |
| 58 | + |
| 59 | + /** |
| 60 | + * Optional. Set of labels associated with the `CdnEdgeExtension` resource. The format must comply |
| 61 | + * with [the requirements for labels](https://cloud.google.com/compute/docs/labeling- |
| 62 | + * resources#requirements) for Google Cloud resources. |
| 63 | + * The value may be {@code null}. |
| 64 | + */ |
| 65 | + @com.google.api.client.util.Key |
| 66 | + private java.util.Map<String, java.lang.String> labels; |
| 67 | + |
| 68 | + /** |
| 69 | + * Required. Identifier. Name of the `CdnEdgeExtension` resource in the following format: |
| 70 | + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. |
| 71 | + * The value may be {@code null}. |
| 72 | + */ |
| 73 | + @com.google.api.client.util.Key |
| 74 | + private java.lang.String name; |
| 75 | + |
| 76 | + /** |
| 77 | + * Required. Specifies the set of resources to which this extension should be applied to. |
| 78 | + * The value may be {@code null}. |
| 79 | + */ |
| 80 | + @com.google.api.client.util.Key |
| 81 | + private CdnEdgeExtensionTarget target; |
| 82 | + |
| 83 | + /** |
| 84 | + * Output only. The timestamp when the resource was updated. |
| 85 | + * The value may be {@code null}. |
| 86 | + */ |
| 87 | + @com.google.api.client.util.Key |
| 88 | + private String updateTime; |
| 89 | + |
| 90 | + /** |
| 91 | + * Output only. The timestamp when the resource was created. |
| 92 | + * @return value or {@code null} for none |
| 93 | + */ |
| 94 | + public String getCreateTime() { |
| 95 | + return createTime; |
| 96 | + } |
| 97 | + |
| 98 | + /** |
| 99 | + * Output only. The timestamp when the resource was created. |
| 100 | + * @param createTime createTime or {@code null} for none |
| 101 | + */ |
| 102 | + public CdnEdgeExtension setCreateTime(String createTime) { |
| 103 | + this.createTime = createTime; |
| 104 | + return this; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * Optional. A human-readable description of the resource. |
| 109 | + * @return value or {@code null} for none |
| 110 | + */ |
| 111 | + public java.lang.String getDescription() { |
| 112 | + return description; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * Optional. A human-readable description of the resource. |
| 117 | + * @param description description or {@code null} for none |
| 118 | + */ |
| 119 | + public CdnEdgeExtension setDescription(java.lang.String description) { |
| 120 | + this.description = description; |
| 121 | + return this; |
| 122 | + } |
| 123 | + |
| 124 | + /** |
| 125 | + * Required. A set of ordered extension chains that contain the match conditions and extensions to |
| 126 | + * execute. Match conditions for each extension chain are evaluated in sequence for a given |
| 127 | + * request. The first extension chain that has a condition that matches the request is executed. |
| 128 | + * Any subsequent extension chains do not execute. Limited to 5 extension chains per resource. |
| 129 | + * @return value or {@code null} for none |
| 130 | + */ |
| 131 | + public java.util.List<ExtensionChain> getExtensionChains() { |
| 132 | + return extensionChains; |
| 133 | + } |
| 134 | + |
| 135 | + /** |
| 136 | + * Required. A set of ordered extension chains that contain the match conditions and extensions to |
| 137 | + * execute. Match conditions for each extension chain are evaluated in sequence for a given |
| 138 | + * request. The first extension chain that has a condition that matches the request is executed. |
| 139 | + * Any subsequent extension chains do not execute. Limited to 5 extension chains per resource. |
| 140 | + * @param extensionChains extensionChains or {@code null} for none |
| 141 | + */ |
| 142 | + public CdnEdgeExtension setExtensionChains(java.util.List<ExtensionChain> extensionChains) { |
| 143 | + this.extensionChains = extensionChains; |
| 144 | + return this; |
| 145 | + } |
| 146 | + |
| 147 | + /** |
| 148 | + * Optional. Set of labels associated with the `CdnEdgeExtension` resource. The format must comply |
| 149 | + * with [the requirements for labels](https://cloud.google.com/compute/docs/labeling- |
| 150 | + * resources#requirements) for Google Cloud resources. |
| 151 | + * @return value or {@code null} for none |
| 152 | + */ |
| 153 | + public java.util.Map<String, java.lang.String> getLabels() { |
| 154 | + return labels; |
| 155 | + } |
| 156 | + |
| 157 | + /** |
| 158 | + * Optional. Set of labels associated with the `CdnEdgeExtension` resource. The format must comply |
| 159 | + * with [the requirements for labels](https://cloud.google.com/compute/docs/labeling- |
| 160 | + * resources#requirements) for Google Cloud resources. |
| 161 | + * @param labels labels or {@code null} for none |
| 162 | + */ |
| 163 | + public CdnEdgeExtension setLabels(java.util.Map<String, java.lang.String> labels) { |
| 164 | + this.labels = labels; |
| 165 | + return this; |
| 166 | + } |
| 167 | + |
| 168 | + /** |
| 169 | + * Required. Identifier. Name of the `CdnEdgeExtension` resource in the following format: |
| 170 | + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. |
| 171 | + * @return value or {@code null} for none |
| 172 | + */ |
| 173 | + public java.lang.String getName() { |
| 174 | + return name; |
| 175 | + } |
| 176 | + |
| 177 | + /** |
| 178 | + * Required. Identifier. Name of the `CdnEdgeExtension` resource in the following format: |
| 179 | + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. |
| 180 | + * @param name name or {@code null} for none |
| 181 | + */ |
| 182 | + public CdnEdgeExtension setName(java.lang.String name) { |
| 183 | + this.name = name; |
| 184 | + return this; |
| 185 | + } |
| 186 | + |
| 187 | + /** |
| 188 | + * Required. Specifies the set of resources to which this extension should be applied to. |
| 189 | + * @return value or {@code null} for none |
| 190 | + */ |
| 191 | + public CdnEdgeExtensionTarget getTarget() { |
| 192 | + return target; |
| 193 | + } |
| 194 | + |
| 195 | + /** |
| 196 | + * Required. Specifies the set of resources to which this extension should be applied to. |
| 197 | + * @param target target or {@code null} for none |
| 198 | + */ |
| 199 | + public CdnEdgeExtension setTarget(CdnEdgeExtensionTarget target) { |
| 200 | + this.target = target; |
| 201 | + return this; |
| 202 | + } |
| 203 | + |
| 204 | + /** |
| 205 | + * Output only. The timestamp when the resource was updated. |
| 206 | + * @return value or {@code null} for none |
| 207 | + */ |
| 208 | + public String getUpdateTime() { |
| 209 | + return updateTime; |
| 210 | + } |
| 211 | + |
| 212 | + /** |
| 213 | + * Output only. The timestamp when the resource was updated. |
| 214 | + * @param updateTime updateTime or {@code null} for none |
| 215 | + */ |
| 216 | + public CdnEdgeExtension setUpdateTime(String updateTime) { |
| 217 | + this.updateTime = updateTime; |
| 218 | + return this; |
| 219 | + } |
| 220 | + |
| 221 | + @Override |
| 222 | + public CdnEdgeExtension set(String fieldName, Object value) { |
| 223 | + return (CdnEdgeExtension) super.set(fieldName, value); |
| 224 | + } |
| 225 | + |
| 226 | + @Override |
| 227 | + public CdnEdgeExtension clone() { |
| 228 | + return (CdnEdgeExtension) super.clone(); |
| 229 | + } |
| 230 | + |
| 231 | +} |
0 commit comments