|
| 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.metastore.v1alpha.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Defines the configuration required to migrate metadata from a Dataproc Metastore service to |
| 21 | + * BigLake Metastore. |
| 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 Dataproc Metastore API. For a detailed explanation |
| 25 | + * 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 BigLakeMetastoreMigrationConfig extends com.google.api.client.json.GenericJson { |
| 33 | + |
| 34 | + /** |
| 35 | + * Output only. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private BackfillStatus backfillStatus; |
| 40 | + |
| 41 | + /** |
| 42 | + * Optional. The policy to handle conflicts when migrating resources, defaults to SKIP if not |
| 43 | + * specified. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.String conflictPolicy; |
| 48 | + |
| 49 | + /** |
| 50 | + * Optional. If true, performs discovery of requested resources and analysis against the target |
| 51 | + * catalog to come up with a plan for each resource (e.g. Create, Update, Skip, etc.). No metadata |
| 52 | + * is actually migrated. |
| 53 | + * The value may be {@code null}. |
| 54 | + */ |
| 55 | + @com.google.api.client.util.Key |
| 56 | + private java.lang.Boolean dryRun; |
| 57 | + |
| 58 | + /** |
| 59 | + * Optional. At least one of hive_config or iceberg_config must be provided, otherwise, a |
| 60 | + * validation error will be thrown. If only one is provided, the service only migrates tables of |
| 61 | + * that specific type. If both are provided, both Hive and Iceberg tables will be |
| 62 | + * migrated.Configuration for migrating Hive tables to a BigLake Hive catalog. |
| 63 | + * The value may be {@code null}. |
| 64 | + */ |
| 65 | + @com.google.api.client.util.Key |
| 66 | + private HiveConfig hiveConfig; |
| 67 | + |
| 68 | + /** |
| 69 | + * Optional. Configuration for migrating Iceberg tables to a BigLake Iceberg REST catalog. |
| 70 | + * The value may be {@code null}. |
| 71 | + */ |
| 72 | + @com.google.api.client.util.Key |
| 73 | + private IcebergConfig icebergConfig; |
| 74 | + |
| 75 | + /** |
| 76 | + * Required. Defines the behavior of the migration execution. |
| 77 | + * The value may be {@code null}. |
| 78 | + */ |
| 79 | + @com.google.api.client.util.Key |
| 80 | + private java.lang.String mode; |
| 81 | + |
| 82 | + /** |
| 83 | + * Optional. The Cloud Storage path where the backfill / dry run report should be written. If not |
| 84 | + * provided, the report will be generated in the service's artifacts bucket. Format: |
| 85 | + * "gs://path/to/folder" |
| 86 | + * The value may be {@code null}. |
| 87 | + */ |
| 88 | + @com.google.api.client.util.Key |
| 89 | + private java.lang.String reportPath; |
| 90 | + |
| 91 | + /** |
| 92 | + * Output only. |
| 93 | + * @return value or {@code null} for none |
| 94 | + */ |
| 95 | + public BackfillStatus getBackfillStatus() { |
| 96 | + return backfillStatus; |
| 97 | + } |
| 98 | + |
| 99 | + /** |
| 100 | + * Output only. |
| 101 | + * @param backfillStatus backfillStatus or {@code null} for none |
| 102 | + */ |
| 103 | + public BigLakeMetastoreMigrationConfig setBackfillStatus(BackfillStatus backfillStatus) { |
| 104 | + this.backfillStatus = backfillStatus; |
| 105 | + return this; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * Optional. The policy to handle conflicts when migrating resources, defaults to SKIP if not |
| 110 | + * specified. |
| 111 | + * @return value or {@code null} for none |
| 112 | + */ |
| 113 | + public java.lang.String getConflictPolicy() { |
| 114 | + return conflictPolicy; |
| 115 | + } |
| 116 | + |
| 117 | + /** |
| 118 | + * Optional. The policy to handle conflicts when migrating resources, defaults to SKIP if not |
| 119 | + * specified. |
| 120 | + * @param conflictPolicy conflictPolicy or {@code null} for none |
| 121 | + */ |
| 122 | + public BigLakeMetastoreMigrationConfig setConflictPolicy(java.lang.String conflictPolicy) { |
| 123 | + this.conflictPolicy = conflictPolicy; |
| 124 | + return this; |
| 125 | + } |
| 126 | + |
| 127 | + /** |
| 128 | + * Optional. If true, performs discovery of requested resources and analysis against the target |
| 129 | + * catalog to come up with a plan for each resource (e.g. Create, Update, Skip, etc.). No metadata |
| 130 | + * is actually migrated. |
| 131 | + * @return value or {@code null} for none |
| 132 | + */ |
| 133 | + public java.lang.Boolean getDryRun() { |
| 134 | + return dryRun; |
| 135 | + } |
| 136 | + |
| 137 | + /** |
| 138 | + * Optional. If true, performs discovery of requested resources and analysis against the target |
| 139 | + * catalog to come up with a plan for each resource (e.g. Create, Update, Skip, etc.). No metadata |
| 140 | + * is actually migrated. |
| 141 | + * @param dryRun dryRun or {@code null} for none |
| 142 | + */ |
| 143 | + public BigLakeMetastoreMigrationConfig setDryRun(java.lang.Boolean dryRun) { |
| 144 | + this.dryRun = dryRun; |
| 145 | + return this; |
| 146 | + } |
| 147 | + |
| 148 | + /** |
| 149 | + * Optional. At least one of hive_config or iceberg_config must be provided, otherwise, a |
| 150 | + * validation error will be thrown. If only one is provided, the service only migrates tables of |
| 151 | + * that specific type. If both are provided, both Hive and Iceberg tables will be |
| 152 | + * migrated.Configuration for migrating Hive tables to a BigLake Hive catalog. |
| 153 | + * @return value or {@code null} for none |
| 154 | + */ |
| 155 | + public HiveConfig getHiveConfig() { |
| 156 | + return hiveConfig; |
| 157 | + } |
| 158 | + |
| 159 | + /** |
| 160 | + * Optional. At least one of hive_config or iceberg_config must be provided, otherwise, a |
| 161 | + * validation error will be thrown. If only one is provided, the service only migrates tables of |
| 162 | + * that specific type. If both are provided, both Hive and Iceberg tables will be |
| 163 | + * migrated.Configuration for migrating Hive tables to a BigLake Hive catalog. |
| 164 | + * @param hiveConfig hiveConfig or {@code null} for none |
| 165 | + */ |
| 166 | + public BigLakeMetastoreMigrationConfig setHiveConfig(HiveConfig hiveConfig) { |
| 167 | + this.hiveConfig = hiveConfig; |
| 168 | + return this; |
| 169 | + } |
| 170 | + |
| 171 | + /** |
| 172 | + * Optional. Configuration for migrating Iceberg tables to a BigLake Iceberg REST catalog. |
| 173 | + * @return value or {@code null} for none |
| 174 | + */ |
| 175 | + public IcebergConfig getIcebergConfig() { |
| 176 | + return icebergConfig; |
| 177 | + } |
| 178 | + |
| 179 | + /** |
| 180 | + * Optional. Configuration for migrating Iceberg tables to a BigLake Iceberg REST catalog. |
| 181 | + * @param icebergConfig icebergConfig or {@code null} for none |
| 182 | + */ |
| 183 | + public BigLakeMetastoreMigrationConfig setIcebergConfig(IcebergConfig icebergConfig) { |
| 184 | + this.icebergConfig = icebergConfig; |
| 185 | + return this; |
| 186 | + } |
| 187 | + |
| 188 | + /** |
| 189 | + * Required. Defines the behavior of the migration execution. |
| 190 | + * @return value or {@code null} for none |
| 191 | + */ |
| 192 | + public java.lang.String getMode() { |
| 193 | + return mode; |
| 194 | + } |
| 195 | + |
| 196 | + /** |
| 197 | + * Required. Defines the behavior of the migration execution. |
| 198 | + * @param mode mode or {@code null} for none |
| 199 | + */ |
| 200 | + public BigLakeMetastoreMigrationConfig setMode(java.lang.String mode) { |
| 201 | + this.mode = mode; |
| 202 | + return this; |
| 203 | + } |
| 204 | + |
| 205 | + /** |
| 206 | + * Optional. The Cloud Storage path where the backfill / dry run report should be written. If not |
| 207 | + * provided, the report will be generated in the service's artifacts bucket. Format: |
| 208 | + * "gs://path/to/folder" |
| 209 | + * @return value or {@code null} for none |
| 210 | + */ |
| 211 | + public java.lang.String getReportPath() { |
| 212 | + return reportPath; |
| 213 | + } |
| 214 | + |
| 215 | + /** |
| 216 | + * Optional. The Cloud Storage path where the backfill / dry run report should be written. If not |
| 217 | + * provided, the report will be generated in the service's artifacts bucket. Format: |
| 218 | + * "gs://path/to/folder" |
| 219 | + * @param reportPath reportPath or {@code null} for none |
| 220 | + */ |
| 221 | + public BigLakeMetastoreMigrationConfig setReportPath(java.lang.String reportPath) { |
| 222 | + this.reportPath = reportPath; |
| 223 | + return this; |
| 224 | + } |
| 225 | + |
| 226 | + @Override |
| 227 | + public BigLakeMetastoreMigrationConfig set(String fieldName, Object value) { |
| 228 | + return (BigLakeMetastoreMigrationConfig) super.set(fieldName, value); |
| 229 | + } |
| 230 | + |
| 231 | + @Override |
| 232 | + public BigLakeMetastoreMigrationConfig clone() { |
| 233 | + return (BigLakeMetastoreMigrationConfig) super.clone(); |
| 234 | + } |
| 235 | + |
| 236 | +} |
0 commit comments