|
| 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 | + * Message represents the option where Datastream will enforce the encryption and authenticate the |
| 21 | + * server identity as well as the client identity. ca_certificate, client_certificate and client_key |
| 22 | + * must be set if user selects this option. |
| 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 Datastream 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 ServerAndClientVerification extends com.google.api.client.json.GenericJson { |
| 33 | + |
| 34 | + /** |
| 35 | + * Required. Input only. PEM-encoded server root CA certificate. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private java.lang.String caCertificate; |
| 40 | + |
| 41 | + /** |
| 42 | + * Required. Input only. PEM-encoded certificate used by the source database to authenticate the |
| 43 | + * client identity (i.e., the Datastream's identity). This certificate is signed by either a root |
| 44 | + * certificate trusted by the server or one or more intermediate certificates (which is stored |
| 45 | + * with the leaf certificate) to link the this certificate to the trusted root certificate. |
| 46 | + * The value may be {@code null}. |
| 47 | + */ |
| 48 | + @com.google.api.client.util.Key |
| 49 | + private java.lang.String clientCertificate; |
| 50 | + |
| 51 | + /** |
| 52 | + * Required. Input only. PEM-encoded private key associated with the client certificate. This |
| 53 | + * value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate |
| 54 | + * the client's identity, i.e. identity of the Datastream. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private java.lang.String clientKey; |
| 59 | + |
| 60 | + /** |
| 61 | + * Required. Input only. PEM-encoded server root CA certificate. |
| 62 | + * @return value or {@code null} for none |
| 63 | + */ |
| 64 | + public java.lang.String getCaCertificate() { |
| 65 | + return caCertificate; |
| 66 | + } |
| 67 | + |
| 68 | + /** |
| 69 | + * Required. Input only. PEM-encoded server root CA certificate. |
| 70 | + * @param caCertificate caCertificate or {@code null} for none |
| 71 | + */ |
| 72 | + public ServerAndClientVerification setCaCertificate(java.lang.String caCertificate) { |
| 73 | + this.caCertificate = caCertificate; |
| 74 | + return this; |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * Required. Input only. PEM-encoded certificate used by the source database to authenticate the |
| 79 | + * client identity (i.e., the Datastream's identity). This certificate is signed by either a root |
| 80 | + * certificate trusted by the server or one or more intermediate certificates (which is stored |
| 81 | + * with the leaf certificate) to link the this certificate to the trusted root certificate. |
| 82 | + * @return value or {@code null} for none |
| 83 | + */ |
| 84 | + public java.lang.String getClientCertificate() { |
| 85 | + return clientCertificate; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * Required. Input only. PEM-encoded certificate used by the source database to authenticate the |
| 90 | + * client identity (i.e., the Datastream's identity). This certificate is signed by either a root |
| 91 | + * certificate trusted by the server or one or more intermediate certificates (which is stored |
| 92 | + * with the leaf certificate) to link the this certificate to the trusted root certificate. |
| 93 | + * @param clientCertificate clientCertificate or {@code null} for none |
| 94 | + */ |
| 95 | + public ServerAndClientVerification setClientCertificate(java.lang.String clientCertificate) { |
| 96 | + this.clientCertificate = clientCertificate; |
| 97 | + return this; |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * Required. Input only. PEM-encoded private key associated with the client certificate. This |
| 102 | + * value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate |
| 103 | + * the client's identity, i.e. identity of the Datastream. |
| 104 | + * @return value or {@code null} for none |
| 105 | + */ |
| 106 | + public java.lang.String getClientKey() { |
| 107 | + return clientKey; |
| 108 | + } |
| 109 | + |
| 110 | + /** |
| 111 | + * Required. Input only. PEM-encoded private key associated with the client certificate. This |
| 112 | + * value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate |
| 113 | + * the client's identity, i.e. identity of the Datastream. |
| 114 | + * @param clientKey clientKey or {@code null} for none |
| 115 | + */ |
| 116 | + public ServerAndClientVerification setClientKey(java.lang.String clientKey) { |
| 117 | + this.clientKey = clientKey; |
| 118 | + return this; |
| 119 | + } |
| 120 | + |
| 121 | + @Override |
| 122 | + public ServerAndClientVerification set(String fieldName, Object value) { |
| 123 | + return (ServerAndClientVerification) super.set(fieldName, value); |
| 124 | + } |
| 125 | + |
| 126 | + @Override |
| 127 | + public ServerAndClientVerification clone() { |
| 128 | + return (ServerAndClientVerification) super.clone(); |
| 129 | + } |
| 130 | + |
| 131 | +} |
0 commit comments