|
| 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.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Upgrade details of a cluster. This cluster can be primary or secondary. |
| 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 AlloyDB 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 ClusterUpgradeDetails extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Cluster type which can either be primary or secondary. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private java.lang.String clusterType; |
| 38 | + |
| 39 | + /** |
| 40 | + * Database version of the cluster after the upgrade operation. This will be the target version if |
| 41 | + * the upgrade was successful otherwise it remains the same as that before the upgrade operation. |
| 42 | + * The value may be {@code null}. |
| 43 | + */ |
| 44 | + @com.google.api.client.util.Key |
| 45 | + private java.lang.String databaseVersion; |
| 46 | + |
| 47 | + /** |
| 48 | + * Upgrade details of the instances directly associated with this cluster. |
| 49 | + * The value may be {@code null}. |
| 50 | + */ |
| 51 | + @com.google.api.client.util.Key |
| 52 | + private java.util.List<InstanceUpgradeDetails> instanceUpgradeDetails; |
| 53 | + |
| 54 | + /** |
| 55 | + * Normalized name of the cluster |
| 56 | + * The value may be {@code null}. |
| 57 | + */ |
| 58 | + @com.google.api.client.util.Key |
| 59 | + private java.lang.String name; |
| 60 | + |
| 61 | + /** |
| 62 | + * Array containing stage info associated with this cluster. |
| 63 | + * The value may be {@code null}. |
| 64 | + */ |
| 65 | + @com.google.api.client.util.Key |
| 66 | + private java.util.List<StageInfo> stageInfo; |
| 67 | + |
| 68 | + /** |
| 69 | + * Upgrade status of the cluster. |
| 70 | + * The value may be {@code null}. |
| 71 | + */ |
| 72 | + @com.google.api.client.util.Key |
| 73 | + private java.lang.String upgradeStatus; |
| 74 | + |
| 75 | + /** |
| 76 | + * Cluster type which can either be primary or secondary. |
| 77 | + * @return value or {@code null} for none |
| 78 | + */ |
| 79 | + public java.lang.String getClusterType() { |
| 80 | + return clusterType; |
| 81 | + } |
| 82 | + |
| 83 | + /** |
| 84 | + * Cluster type which can either be primary or secondary. |
| 85 | + * @param clusterType clusterType or {@code null} for none |
| 86 | + */ |
| 87 | + public ClusterUpgradeDetails setClusterType(java.lang.String clusterType) { |
| 88 | + this.clusterType = clusterType; |
| 89 | + return this; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * Database version of the cluster after the upgrade operation. This will be the target version if |
| 94 | + * the upgrade was successful otherwise it remains the same as that before the upgrade operation. |
| 95 | + * @return value or {@code null} for none |
| 96 | + */ |
| 97 | + public java.lang.String getDatabaseVersion() { |
| 98 | + return databaseVersion; |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * Database version of the cluster after the upgrade operation. This will be the target version if |
| 103 | + * the upgrade was successful otherwise it remains the same as that before the upgrade operation. |
| 104 | + * @param databaseVersion databaseVersion or {@code null} for none |
| 105 | + */ |
| 106 | + public ClusterUpgradeDetails setDatabaseVersion(java.lang.String databaseVersion) { |
| 107 | + this.databaseVersion = databaseVersion; |
| 108 | + return this; |
| 109 | + } |
| 110 | + |
| 111 | + /** |
| 112 | + * Upgrade details of the instances directly associated with this cluster. |
| 113 | + * @return value or {@code null} for none |
| 114 | + */ |
| 115 | + public java.util.List<InstanceUpgradeDetails> getInstanceUpgradeDetails() { |
| 116 | + return instanceUpgradeDetails; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Upgrade details of the instances directly associated with this cluster. |
| 121 | + * @param instanceUpgradeDetails instanceUpgradeDetails or {@code null} for none |
| 122 | + */ |
| 123 | + public ClusterUpgradeDetails setInstanceUpgradeDetails(java.util.List<InstanceUpgradeDetails> instanceUpgradeDetails) { |
| 124 | + this.instanceUpgradeDetails = instanceUpgradeDetails; |
| 125 | + return this; |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * Normalized name of the cluster |
| 130 | + * @return value or {@code null} for none |
| 131 | + */ |
| 132 | + public java.lang.String getName() { |
| 133 | + return name; |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * Normalized name of the cluster |
| 138 | + * @param name name or {@code null} for none |
| 139 | + */ |
| 140 | + public ClusterUpgradeDetails setName(java.lang.String name) { |
| 141 | + this.name = name; |
| 142 | + return this; |
| 143 | + } |
| 144 | + |
| 145 | + /** |
| 146 | + * Array containing stage info associated with this cluster. |
| 147 | + * @return value or {@code null} for none |
| 148 | + */ |
| 149 | + public java.util.List<StageInfo> getStageInfo() { |
| 150 | + return stageInfo; |
| 151 | + } |
| 152 | + |
| 153 | + /** |
| 154 | + * Array containing stage info associated with this cluster. |
| 155 | + * @param stageInfo stageInfo or {@code null} for none |
| 156 | + */ |
| 157 | + public ClusterUpgradeDetails setStageInfo(java.util.List<StageInfo> stageInfo) { |
| 158 | + this.stageInfo = stageInfo; |
| 159 | + return this; |
| 160 | + } |
| 161 | + |
| 162 | + /** |
| 163 | + * Upgrade status of the cluster. |
| 164 | + * @return value or {@code null} for none |
| 165 | + */ |
| 166 | + public java.lang.String getUpgradeStatus() { |
| 167 | + return upgradeStatus; |
| 168 | + } |
| 169 | + |
| 170 | + /** |
| 171 | + * Upgrade status of the cluster. |
| 172 | + * @param upgradeStatus upgradeStatus or {@code null} for none |
| 173 | + */ |
| 174 | + public ClusterUpgradeDetails setUpgradeStatus(java.lang.String upgradeStatus) { |
| 175 | + this.upgradeStatus = upgradeStatus; |
| 176 | + return this; |
| 177 | + } |
| 178 | + |
| 179 | + @Override |
| 180 | + public ClusterUpgradeDetails set(String fieldName, Object value) { |
| 181 | + return (ClusterUpgradeDetails) super.set(fieldName, value); |
| 182 | + } |
| 183 | + |
| 184 | + @Override |
| 185 | + public ClusterUpgradeDetails clone() { |
| 186 | + return (ClusterUpgradeDetails) super.clone(); |
| 187 | + } |
| 188 | + |
| 189 | +} |
0 commit comments