|
| 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.datastream.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * MongoDB SSL configuration information. |
| 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 Datastream 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 MongodbSslConfig extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Optional. Input only. PEM-encoded certificate of the CA that signed the source database |
| 34 | + * server's certificate. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.String caCertificate; |
| 39 | + |
| 40 | + /** |
| 41 | + * Output only. Indicates whether the ca_certificate field is set. |
| 42 | + * The value may be {@code null}. |
| 43 | + */ |
| 44 | + @com.google.api.client.util.Key |
| 45 | + private java.lang.Boolean caCertificateSet; |
| 46 | + |
| 47 | + /** |
| 48 | + * Optional. Input only. PEM-encoded certificate that will be used by the replica to authenticate |
| 49 | + * against the source database server. If this field is used then the 'client_key' and the |
| 50 | + * 'ca_certificate' fields are mandatory. |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private java.lang.String clientCertificate; |
| 55 | + |
| 56 | + /** |
| 57 | + * Output only. Indicates whether the client_certificate field is set. |
| 58 | + * The value may be {@code null}. |
| 59 | + */ |
| 60 | + @com.google.api.client.util.Key |
| 61 | + private java.lang.Boolean clientCertificateSet; |
| 62 | + |
| 63 | + /** |
| 64 | + * Optional. Input only. PEM-encoded private key associated with the Client Certificate. If this |
| 65 | + * field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory. |
| 66 | + * The value may be {@code null}. |
| 67 | + */ |
| 68 | + @com.google.api.client.util.Key |
| 69 | + private java.lang.String clientKey; |
| 70 | + |
| 71 | + /** |
| 72 | + * Output only. Indicates whether the client_key field is set. |
| 73 | + * The value may be {@code null}. |
| 74 | + */ |
| 75 | + @com.google.api.client.util.Key |
| 76 | + private java.lang.Boolean clientKeySet; |
| 77 | + |
| 78 | + /** |
| 79 | + * Optional. Input only. A reference to a Secret Manager resource name storing the PEM-encoded |
| 80 | + * private key associated with the Client Certificate. If this field is used then the |
| 81 | + * 'client_certificate' and the 'ca_certificate' fields are mandatory. Mutually exclusive with the |
| 82 | + * `client_key` field. |
| 83 | + * The value may be {@code null}. |
| 84 | + */ |
| 85 | + @com.google.api.client.util.Key |
| 86 | + private java.lang.String secretManagerStoredClientKey; |
| 87 | + |
| 88 | + /** |
| 89 | + * Optional. Input only. PEM-encoded certificate of the CA that signed the source database |
| 90 | + * server's certificate. |
| 91 | + * @return value or {@code null} for none |
| 92 | + */ |
| 93 | + public java.lang.String getCaCertificate() { |
| 94 | + return caCertificate; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * Optional. Input only. PEM-encoded certificate of the CA that signed the source database |
| 99 | + * server's certificate. |
| 100 | + * @param caCertificate caCertificate or {@code null} for none |
| 101 | + */ |
| 102 | + public MongodbSslConfig setCaCertificate(java.lang.String caCertificate) { |
| 103 | + this.caCertificate = caCertificate; |
| 104 | + return this; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * Output only. Indicates whether the ca_certificate field is set. |
| 109 | + * @return value or {@code null} for none |
| 110 | + */ |
| 111 | + public java.lang.Boolean getCaCertificateSet() { |
| 112 | + return caCertificateSet; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * Output only. Indicates whether the ca_certificate field is set. |
| 117 | + * @param caCertificateSet caCertificateSet or {@code null} for none |
| 118 | + */ |
| 119 | + public MongodbSslConfig setCaCertificateSet(java.lang.Boolean caCertificateSet) { |
| 120 | + this.caCertificateSet = caCertificateSet; |
| 121 | + return this; |
| 122 | + } |
| 123 | + |
| 124 | + /** |
| 125 | + * Optional. Input only. PEM-encoded certificate that will be used by the replica to authenticate |
| 126 | + * against the source database server. If this field is used then the 'client_key' and the |
| 127 | + * 'ca_certificate' fields are mandatory. |
| 128 | + * @return value or {@code null} for none |
| 129 | + */ |
| 130 | + public java.lang.String getClientCertificate() { |
| 131 | + return clientCertificate; |
| 132 | + } |
| 133 | + |
| 134 | + /** |
| 135 | + * Optional. Input only. PEM-encoded certificate that will be used by the replica to authenticate |
| 136 | + * against the source database server. If this field is used then the 'client_key' and the |
| 137 | + * 'ca_certificate' fields are mandatory. |
| 138 | + * @param clientCertificate clientCertificate or {@code null} for none |
| 139 | + */ |
| 140 | + public MongodbSslConfig setClientCertificate(java.lang.String clientCertificate) { |
| 141 | + this.clientCertificate = clientCertificate; |
| 142 | + return this; |
| 143 | + } |
| 144 | + |
| 145 | + /** |
| 146 | + * Output only. Indicates whether the client_certificate field is set. |
| 147 | + * @return value or {@code null} for none |
| 148 | + */ |
| 149 | + public java.lang.Boolean getClientCertificateSet() { |
| 150 | + return clientCertificateSet; |
| 151 | + } |
| 152 | + |
| 153 | + /** |
| 154 | + * Output only. Indicates whether the client_certificate field is set. |
| 155 | + * @param clientCertificateSet clientCertificateSet or {@code null} for none |
| 156 | + */ |
| 157 | + public MongodbSslConfig setClientCertificateSet(java.lang.Boolean clientCertificateSet) { |
| 158 | + this.clientCertificateSet = clientCertificateSet; |
| 159 | + return this; |
| 160 | + } |
| 161 | + |
| 162 | + /** |
| 163 | + * Optional. Input only. PEM-encoded private key associated with the Client Certificate. If this |
| 164 | + * field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory. |
| 165 | + * @return value or {@code null} for none |
| 166 | + */ |
| 167 | + public java.lang.String getClientKey() { |
| 168 | + return clientKey; |
| 169 | + } |
| 170 | + |
| 171 | + /** |
| 172 | + * Optional. Input only. PEM-encoded private key associated with the Client Certificate. If this |
| 173 | + * field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory. |
| 174 | + * @param clientKey clientKey or {@code null} for none |
| 175 | + */ |
| 176 | + public MongodbSslConfig setClientKey(java.lang.String clientKey) { |
| 177 | + this.clientKey = clientKey; |
| 178 | + return this; |
| 179 | + } |
| 180 | + |
| 181 | + /** |
| 182 | + * Output only. Indicates whether the client_key field is set. |
| 183 | + * @return value or {@code null} for none |
| 184 | + */ |
| 185 | + public java.lang.Boolean getClientKeySet() { |
| 186 | + return clientKeySet; |
| 187 | + } |
| 188 | + |
| 189 | + /** |
| 190 | + * Output only. Indicates whether the client_key field is set. |
| 191 | + * @param clientKeySet clientKeySet or {@code null} for none |
| 192 | + */ |
| 193 | + public MongodbSslConfig setClientKeySet(java.lang.Boolean clientKeySet) { |
| 194 | + this.clientKeySet = clientKeySet; |
| 195 | + return this; |
| 196 | + } |
| 197 | + |
| 198 | + /** |
| 199 | + * Optional. Input only. A reference to a Secret Manager resource name storing the PEM-encoded |
| 200 | + * private key associated with the Client Certificate. If this field is used then the |
| 201 | + * 'client_certificate' and the 'ca_certificate' fields are mandatory. Mutually exclusive with the |
| 202 | + * `client_key` field. |
| 203 | + * @return value or {@code null} for none |
| 204 | + */ |
| 205 | + public java.lang.String getSecretManagerStoredClientKey() { |
| 206 | + return secretManagerStoredClientKey; |
| 207 | + } |
| 208 | + |
| 209 | + /** |
| 210 | + * Optional. Input only. A reference to a Secret Manager resource name storing the PEM-encoded |
| 211 | + * private key associated with the Client Certificate. If this field is used then the |
| 212 | + * 'client_certificate' and the 'ca_certificate' fields are mandatory. Mutually exclusive with the |
| 213 | + * `client_key` field. |
| 214 | + * @param secretManagerStoredClientKey secretManagerStoredClientKey or {@code null} for none |
| 215 | + */ |
| 216 | + public MongodbSslConfig setSecretManagerStoredClientKey(java.lang.String secretManagerStoredClientKey) { |
| 217 | + this.secretManagerStoredClientKey = secretManagerStoredClientKey; |
| 218 | + return this; |
| 219 | + } |
| 220 | + |
| 221 | + @Override |
| 222 | + public MongodbSslConfig set(String fieldName, Object value) { |
| 223 | + return (MongodbSslConfig) super.set(fieldName, value); |
| 224 | + } |
| 225 | + |
| 226 | + @Override |
| 227 | + public MongodbSslConfig clone() { |
| 228 | + return (MongodbSslConfig) super.clone(); |
| 229 | + } |
| 230 | + |
| 231 | +} |
0 commit comments