|
| 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.apigee.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * A DNS zone is a resource under an Apigee organization that is used to create a DNS peering with |
| 21 | + * Apigee's network. DNS peering will let Apigee instances resolve the hostnames created in a peered |
| 22 | + * network. |
| 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 Apigee 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 GoogleCloudApigeeV1DnsZone extends com.google.api.client.json.GenericJson { |
| 33 | + |
| 34 | + /** |
| 35 | + * Output only. The time that this resource was created on the server. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private String createTime; |
| 40 | + |
| 41 | + /** |
| 42 | + * Required. Description of the resource. String of at most 1024 characters associated with this |
| 43 | + * resource for the user's convenience. |
| 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. The domain name for hosts in this private zone, for instance "example.com.". |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private java.lang.String domain; |
| 55 | + |
| 56 | + /** |
| 57 | + * Identifier. Unique name for the resource. Defined by the server Format: |
| 58 | + * "organizations/{organization}/dnsZones/{dns_zone}". |
| 59 | + * The value may be {@code null}. |
| 60 | + */ |
| 61 | + @com.google.api.client.util.Key |
| 62 | + private java.lang.String name; |
| 63 | + |
| 64 | + /** |
| 65 | + * DNS PEERING zone configuration. |
| 66 | + * The value may be {@code null}. |
| 67 | + */ |
| 68 | + @com.google.api.client.util.Key |
| 69 | + private GoogleCloudApigeeV1DnsZonePeeringConfig peeringConfig; |
| 70 | + |
| 71 | + /** |
| 72 | + * Output only. State of the DNS Peering. Values other than `ACTIVE` mean the resource is not |
| 73 | + * ready to use. |
| 74 | + * The value may be {@code null}. |
| 75 | + */ |
| 76 | + @com.google.api.client.util.Key |
| 77 | + private java.lang.String state; |
| 78 | + |
| 79 | + /** |
| 80 | + * Output only. The time that this resource was updated on the server. |
| 81 | + * The value may be {@code null}. |
| 82 | + */ |
| 83 | + @com.google.api.client.util.Key |
| 84 | + private String updateTime; |
| 85 | + |
| 86 | + /** |
| 87 | + * Output only. The time that this resource was created on the server. |
| 88 | + * @return value or {@code null} for none |
| 89 | + */ |
| 90 | + public String getCreateTime() { |
| 91 | + return createTime; |
| 92 | + } |
| 93 | + |
| 94 | + /** |
| 95 | + * Output only. The time that this resource was created on the server. |
| 96 | + * @param createTime createTime or {@code null} for none |
| 97 | + */ |
| 98 | + public GoogleCloudApigeeV1DnsZone setCreateTime(String createTime) { |
| 99 | + this.createTime = createTime; |
| 100 | + return this; |
| 101 | + } |
| 102 | + |
| 103 | + /** |
| 104 | + * Required. Description of the resource. String of at most 1024 characters associated with this |
| 105 | + * resource for the user's convenience. |
| 106 | + * @return value or {@code null} for none |
| 107 | + */ |
| 108 | + public java.lang.String getDescription() { |
| 109 | + return description; |
| 110 | + } |
| 111 | + |
| 112 | + /** |
| 113 | + * Required. Description of the resource. String of at most 1024 characters associated with this |
| 114 | + * resource for the user's convenience. |
| 115 | + * @param description description or {@code null} for none |
| 116 | + */ |
| 117 | + public GoogleCloudApigeeV1DnsZone setDescription(java.lang.String description) { |
| 118 | + this.description = description; |
| 119 | + return this; |
| 120 | + } |
| 121 | + |
| 122 | + /** |
| 123 | + * Required. The domain name for hosts in this private zone, for instance "example.com.". |
| 124 | + * @return value or {@code null} for none |
| 125 | + */ |
| 126 | + public java.lang.String getDomain() { |
| 127 | + return domain; |
| 128 | + } |
| 129 | + |
| 130 | + /** |
| 131 | + * Required. The domain name for hosts in this private zone, for instance "example.com.". |
| 132 | + * @param domain domain or {@code null} for none |
| 133 | + */ |
| 134 | + public GoogleCloudApigeeV1DnsZone setDomain(java.lang.String domain) { |
| 135 | + this.domain = domain; |
| 136 | + return this; |
| 137 | + } |
| 138 | + |
| 139 | + /** |
| 140 | + * Identifier. Unique name for the resource. Defined by the server Format: |
| 141 | + * "organizations/{organization}/dnsZones/{dns_zone}". |
| 142 | + * @return value or {@code null} for none |
| 143 | + */ |
| 144 | + public java.lang.String getName() { |
| 145 | + return name; |
| 146 | + } |
| 147 | + |
| 148 | + /** |
| 149 | + * Identifier. Unique name for the resource. Defined by the server Format: |
| 150 | + * "organizations/{organization}/dnsZones/{dns_zone}". |
| 151 | + * @param name name or {@code null} for none |
| 152 | + */ |
| 153 | + public GoogleCloudApigeeV1DnsZone setName(java.lang.String name) { |
| 154 | + this.name = name; |
| 155 | + return this; |
| 156 | + } |
| 157 | + |
| 158 | + /** |
| 159 | + * DNS PEERING zone configuration. |
| 160 | + * @return value or {@code null} for none |
| 161 | + */ |
| 162 | + public GoogleCloudApigeeV1DnsZonePeeringConfig getPeeringConfig() { |
| 163 | + return peeringConfig; |
| 164 | + } |
| 165 | + |
| 166 | + /** |
| 167 | + * DNS PEERING zone configuration. |
| 168 | + * @param peeringConfig peeringConfig or {@code null} for none |
| 169 | + */ |
| 170 | + public GoogleCloudApigeeV1DnsZone setPeeringConfig(GoogleCloudApigeeV1DnsZonePeeringConfig peeringConfig) { |
| 171 | + this.peeringConfig = peeringConfig; |
| 172 | + return this; |
| 173 | + } |
| 174 | + |
| 175 | + /** |
| 176 | + * Output only. State of the DNS Peering. Values other than `ACTIVE` mean the resource is not |
| 177 | + * ready to use. |
| 178 | + * @return value or {@code null} for none |
| 179 | + */ |
| 180 | + public java.lang.String getState() { |
| 181 | + return state; |
| 182 | + } |
| 183 | + |
| 184 | + /** |
| 185 | + * Output only. State of the DNS Peering. Values other than `ACTIVE` mean the resource is not |
| 186 | + * ready to use. |
| 187 | + * @param state state or {@code null} for none |
| 188 | + */ |
| 189 | + public GoogleCloudApigeeV1DnsZone setState(java.lang.String state) { |
| 190 | + this.state = state; |
| 191 | + return this; |
| 192 | + } |
| 193 | + |
| 194 | + /** |
| 195 | + * Output only. The time that this resource was updated on the server. |
| 196 | + * @return value or {@code null} for none |
| 197 | + */ |
| 198 | + public String getUpdateTime() { |
| 199 | + return updateTime; |
| 200 | + } |
| 201 | + |
| 202 | + /** |
| 203 | + * Output only. The time that this resource was updated on the server. |
| 204 | + * @param updateTime updateTime or {@code null} for none |
| 205 | + */ |
| 206 | + public GoogleCloudApigeeV1DnsZone setUpdateTime(String updateTime) { |
| 207 | + this.updateTime = updateTime; |
| 208 | + return this; |
| 209 | + } |
| 210 | + |
| 211 | + @Override |
| 212 | + public GoogleCloudApigeeV1DnsZone set(String fieldName, Object value) { |
| 213 | + return (GoogleCloudApigeeV1DnsZone) super.set(fieldName, value); |
| 214 | + } |
| 215 | + |
| 216 | + @Override |
| 217 | + public GoogleCloudApigeeV1DnsZone clone() { |
| 218 | + return (GoogleCloudApigeeV1DnsZone) super.clone(); |
| 219 | + } |
| 220 | + |
| 221 | +} |
0 commit comments