|
| 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.alloydb.v1alpha.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Configuration for setting up PSC service automation. Consumer projects in the configs will be |
| 21 | + * allowlisted automatically for the instance. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see: |
| 25 | + * <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> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class PscAutoConnectionConfig extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * The consumer network for the PSC service automation, example: "projects/vpc-host- |
| 35 | + * project/global/networks/default". The consumer network might be hosted a different project than |
| 36 | + * the consumer project. |
| 37 | + * The value may be {@code null}. |
| 38 | + */ |
| 39 | + @com.google.api.client.util.Key |
| 40 | + private java.lang.String consumerNetwork; |
| 41 | + |
| 42 | + /** |
| 43 | + * Output only. The status of the service connection policy. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.String consumerNetworkStatus; |
| 48 | + |
| 49 | + /** |
| 50 | + * The consumer project to which the PSC service automation endpoint will be created. |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private java.lang.String consumerProject; |
| 55 | + |
| 56 | + /** |
| 57 | + * Output only. The IP address of the PSC service automation endpoint. |
| 58 | + * The value may be {@code null}. |
| 59 | + */ |
| 60 | + @com.google.api.client.util.Key |
| 61 | + private java.lang.String ipAddress; |
| 62 | + |
| 63 | + /** |
| 64 | + * Output only. The status of the PSC service automation connection. |
| 65 | + * The value may be {@code null}. |
| 66 | + */ |
| 67 | + @com.google.api.client.util.Key |
| 68 | + private java.lang.String status; |
| 69 | + |
| 70 | + /** |
| 71 | + * The consumer network for the PSC service automation, example: "projects/vpc-host- |
| 72 | + * project/global/networks/default". The consumer network might be hosted a different project than |
| 73 | + * the consumer project. |
| 74 | + * @return value or {@code null} for none |
| 75 | + */ |
| 76 | + public java.lang.String getConsumerNetwork() { |
| 77 | + return consumerNetwork; |
| 78 | + } |
| 79 | + |
| 80 | + /** |
| 81 | + * The consumer network for the PSC service automation, example: "projects/vpc-host- |
| 82 | + * project/global/networks/default". The consumer network might be hosted a different project than |
| 83 | + * the consumer project. |
| 84 | + * @param consumerNetwork consumerNetwork or {@code null} for none |
| 85 | + */ |
| 86 | + public PscAutoConnectionConfig setConsumerNetwork(java.lang.String consumerNetwork) { |
| 87 | + this.consumerNetwork = consumerNetwork; |
| 88 | + return this; |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * Output only. The status of the service connection policy. |
| 93 | + * @return value or {@code null} for none |
| 94 | + */ |
| 95 | + public java.lang.String getConsumerNetworkStatus() { |
| 96 | + return consumerNetworkStatus; |
| 97 | + } |
| 98 | + |
| 99 | + /** |
| 100 | + * Output only. The status of the service connection policy. |
| 101 | + * @param consumerNetworkStatus consumerNetworkStatus or {@code null} for none |
| 102 | + */ |
| 103 | + public PscAutoConnectionConfig setConsumerNetworkStatus(java.lang.String consumerNetworkStatus) { |
| 104 | + this.consumerNetworkStatus = consumerNetworkStatus; |
| 105 | + return this; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * The consumer project to which the PSC service automation endpoint will be created. |
| 110 | + * @return value or {@code null} for none |
| 111 | + */ |
| 112 | + public java.lang.String getConsumerProject() { |
| 113 | + return consumerProject; |
| 114 | + } |
| 115 | + |
| 116 | + /** |
| 117 | + * The consumer project to which the PSC service automation endpoint will be created. |
| 118 | + * @param consumerProject consumerProject or {@code null} for none |
| 119 | + */ |
| 120 | + public PscAutoConnectionConfig setConsumerProject(java.lang.String consumerProject) { |
| 121 | + this.consumerProject = consumerProject; |
| 122 | + return this; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Output only. The IP address of the PSC service automation endpoint. |
| 127 | + * @return value or {@code null} for none |
| 128 | + */ |
| 129 | + public java.lang.String getIpAddress() { |
| 130 | + return ipAddress; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * Output only. The IP address of the PSC service automation endpoint. |
| 135 | + * @param ipAddress ipAddress or {@code null} for none |
| 136 | + */ |
| 137 | + public PscAutoConnectionConfig setIpAddress(java.lang.String ipAddress) { |
| 138 | + this.ipAddress = ipAddress; |
| 139 | + return this; |
| 140 | + } |
| 141 | + |
| 142 | + /** |
| 143 | + * Output only. The status of the PSC service automation connection. |
| 144 | + * @return value or {@code null} for none |
| 145 | + */ |
| 146 | + public java.lang.String getStatus() { |
| 147 | + return status; |
| 148 | + } |
| 149 | + |
| 150 | + /** |
| 151 | + * Output only. The status of the PSC service automation connection. |
| 152 | + * @param status status or {@code null} for none |
| 153 | + */ |
| 154 | + public PscAutoConnectionConfig setStatus(java.lang.String status) { |
| 155 | + this.status = status; |
| 156 | + return this; |
| 157 | + } |
| 158 | + |
| 159 | + @Override |
| 160 | + public PscAutoConnectionConfig set(String fieldName, Object value) { |
| 161 | + return (PscAutoConnectionConfig) super.set(fieldName, value); |
| 162 | + } |
| 163 | + |
| 164 | + @Override |
| 165 | + public PscAutoConnectionConfig clone() { |
| 166 | + return (PscAutoConnectionConfig) super.clone(); |
| 167 | + } |
| 168 | + |
| 169 | +} |
0 commit comments