|
5 | 5 | package com.azure.resourcemanager.datafactory.fluent.models;
|
6 | 6 |
|
7 | 7 | import com.azure.core.annotation.Fluent;
|
8 |
| -import com.azure.core.util.logging.ClientLogger; |
| 8 | +import com.azure.resourcemanager.datafactory.models.AmazonRdsForSqlAuthenticationType; |
9 | 9 | import com.azure.resourcemanager.datafactory.models.SecretBase;
|
10 | 10 | import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties;
|
| 11 | +import com.azure.resourcemanager.datafactory.models.SqlServerBaseLinkedServiceTypeProperties; |
11 | 12 | import com.fasterxml.jackson.annotation.JsonProperty;
|
12 | 13 |
|
13 | 14 | /**
|
14 | 15 | * Amazon Rds for SQL Server linked service properties.
|
15 | 16 | */
|
16 | 17 | @Fluent
|
17 |
| -public final class AmazonRdsForSqlServerLinkedServiceTypeProperties { |
| 18 | +public final class AmazonRdsForSqlServerLinkedServiceTypeProperties extends SqlServerBaseLinkedServiceTypeProperties { |
18 | 19 | /*
|
19 | 20 | * The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
|
20 | 21 | */
|
21 |
| - @JsonProperty(value = "connectionString", required = true) |
| 22 | + @JsonProperty(value = "connectionString") |
22 | 23 | private Object connectionString;
|
23 | 24 |
|
| 25 | + /* |
| 26 | + * The type used for authentication. Type: string. |
| 27 | + */ |
| 28 | + @JsonProperty(value = "authenticationType") |
| 29 | + private AmazonRdsForSqlAuthenticationType authenticationType; |
| 30 | + |
24 | 31 | /*
|
25 | 32 | * The on-premises Windows authentication user name. Type: string (or Expression with resultType string).
|
26 | 33 | */
|
@@ -73,6 +80,27 @@ public AmazonRdsForSqlServerLinkedServiceTypeProperties withConnectionString(Obj
|
73 | 80 | return this;
|
74 | 81 | }
|
75 | 82 |
|
| 83 | + /** |
| 84 | + * Get the authenticationType property: The type used for authentication. Type: string. |
| 85 | + * |
| 86 | + * @return the authenticationType value. |
| 87 | + */ |
| 88 | + public AmazonRdsForSqlAuthenticationType authenticationType() { |
| 89 | + return this.authenticationType; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * Set the authenticationType property: The type used for authentication. Type: string. |
| 94 | + * |
| 95 | + * @param authenticationType the authenticationType value to set. |
| 96 | + * @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself. |
| 97 | + */ |
| 98 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties |
| 99 | + withAuthenticationType(AmazonRdsForSqlAuthenticationType authenticationType) { |
| 100 | + this.authenticationType = authenticationType; |
| 101 | + return this; |
| 102 | + } |
| 103 | + |
76 | 104 | /**
|
77 | 105 | * Get the username property: The on-premises Windows authentication user name. Type: string (or Expression with
|
78 | 106 | * resultType string).
|
@@ -158,24 +186,191 @@ public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() {
|
158 | 186 | return this;
|
159 | 187 | }
|
160 | 188 |
|
| 189 | + /** |
| 190 | + * {@inheritDoc} |
| 191 | + */ |
| 192 | + @Override |
| 193 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withServer(Object server) { |
| 194 | + super.withServer(server); |
| 195 | + return this; |
| 196 | + } |
| 197 | + |
| 198 | + /** |
| 199 | + * {@inheritDoc} |
| 200 | + */ |
| 201 | + @Override |
| 202 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withDatabase(Object database) { |
| 203 | + super.withDatabase(database); |
| 204 | + return this; |
| 205 | + } |
| 206 | + |
| 207 | + /** |
| 208 | + * {@inheritDoc} |
| 209 | + */ |
| 210 | + @Override |
| 211 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withEncrypt(Object encrypt) { |
| 212 | + super.withEncrypt(encrypt); |
| 213 | + return this; |
| 214 | + } |
| 215 | + |
| 216 | + /** |
| 217 | + * {@inheritDoc} |
| 218 | + */ |
| 219 | + @Override |
| 220 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withTrustServerCertificate(Object trustServerCertificate) { |
| 221 | + super.withTrustServerCertificate(trustServerCertificate); |
| 222 | + return this; |
| 223 | + } |
| 224 | + |
| 225 | + /** |
| 226 | + * {@inheritDoc} |
| 227 | + */ |
| 228 | + @Override |
| 229 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withHostnameInCertificate(Object hostnameInCertificate) { |
| 230 | + super.withHostnameInCertificate(hostnameInCertificate); |
| 231 | + return this; |
| 232 | + } |
| 233 | + |
| 234 | + /** |
| 235 | + * {@inheritDoc} |
| 236 | + */ |
| 237 | + @Override |
| 238 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withApplicationIntent(Object applicationIntent) { |
| 239 | + super.withApplicationIntent(applicationIntent); |
| 240 | + return this; |
| 241 | + } |
| 242 | + |
| 243 | + /** |
| 244 | + * {@inheritDoc} |
| 245 | + */ |
| 246 | + @Override |
| 247 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withConnectTimeout(Object connectTimeout) { |
| 248 | + super.withConnectTimeout(connectTimeout); |
| 249 | + return this; |
| 250 | + } |
| 251 | + |
| 252 | + /** |
| 253 | + * {@inheritDoc} |
| 254 | + */ |
| 255 | + @Override |
| 256 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withConnectRetryCount(Object connectRetryCount) { |
| 257 | + super.withConnectRetryCount(connectRetryCount); |
| 258 | + return this; |
| 259 | + } |
| 260 | + |
| 261 | + /** |
| 262 | + * {@inheritDoc} |
| 263 | + */ |
| 264 | + @Override |
| 265 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withConnectRetryInterval(Object connectRetryInterval) { |
| 266 | + super.withConnectRetryInterval(connectRetryInterval); |
| 267 | + return this; |
| 268 | + } |
| 269 | + |
| 270 | + /** |
| 271 | + * {@inheritDoc} |
| 272 | + */ |
| 273 | + @Override |
| 274 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withLoadBalanceTimeout(Object loadBalanceTimeout) { |
| 275 | + super.withLoadBalanceTimeout(loadBalanceTimeout); |
| 276 | + return this; |
| 277 | + } |
| 278 | + |
| 279 | + /** |
| 280 | + * {@inheritDoc} |
| 281 | + */ |
| 282 | + @Override |
| 283 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withCommandTimeout(Object commandTimeout) { |
| 284 | + super.withCommandTimeout(commandTimeout); |
| 285 | + return this; |
| 286 | + } |
| 287 | + |
| 288 | + /** |
| 289 | + * {@inheritDoc} |
| 290 | + */ |
| 291 | + @Override |
| 292 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withIntegratedSecurity(Object integratedSecurity) { |
| 293 | + super.withIntegratedSecurity(integratedSecurity); |
| 294 | + return this; |
| 295 | + } |
| 296 | + |
| 297 | + /** |
| 298 | + * {@inheritDoc} |
| 299 | + */ |
| 300 | + @Override |
| 301 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withFailoverPartner(Object failoverPartner) { |
| 302 | + super.withFailoverPartner(failoverPartner); |
| 303 | + return this; |
| 304 | + } |
| 305 | + |
| 306 | + /** |
| 307 | + * {@inheritDoc} |
| 308 | + */ |
| 309 | + @Override |
| 310 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withMaxPoolSize(Object maxPoolSize) { |
| 311 | + super.withMaxPoolSize(maxPoolSize); |
| 312 | + return this; |
| 313 | + } |
| 314 | + |
| 315 | + /** |
| 316 | + * {@inheritDoc} |
| 317 | + */ |
| 318 | + @Override |
| 319 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withMinPoolSize(Object minPoolSize) { |
| 320 | + super.withMinPoolSize(minPoolSize); |
| 321 | + return this; |
| 322 | + } |
| 323 | + |
| 324 | + /** |
| 325 | + * {@inheritDoc} |
| 326 | + */ |
| 327 | + @Override |
| 328 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties |
| 329 | + withMultipleActiveResultSets(Object multipleActiveResultSets) { |
| 330 | + super.withMultipleActiveResultSets(multipleActiveResultSets); |
| 331 | + return this; |
| 332 | + } |
| 333 | + |
| 334 | + /** |
| 335 | + * {@inheritDoc} |
| 336 | + */ |
| 337 | + @Override |
| 338 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withMultiSubnetFailover(Object multiSubnetFailover) { |
| 339 | + super.withMultiSubnetFailover(multiSubnetFailover); |
| 340 | + return this; |
| 341 | + } |
| 342 | + |
| 343 | + /** |
| 344 | + * {@inheritDoc} |
| 345 | + */ |
| 346 | + @Override |
| 347 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withPacketSize(Object packetSize) { |
| 348 | + super.withPacketSize(packetSize); |
| 349 | + return this; |
| 350 | + } |
| 351 | + |
| 352 | + /** |
| 353 | + * {@inheritDoc} |
| 354 | + */ |
| 355 | + @Override |
| 356 | + public AmazonRdsForSqlServerLinkedServiceTypeProperties withPooling(Object pooling) { |
| 357 | + super.withPooling(pooling); |
| 358 | + return this; |
| 359 | + } |
| 360 | + |
161 | 361 | /**
|
162 | 362 | * Validates the instance.
|
163 | 363 | *
|
164 | 364 | * @throws IllegalArgumentException thrown if the instance is not valid.
|
165 | 365 | */
|
| 366 | + @Override |
166 | 367 | public void validate() {
|
167 |
| - if (connectionString() == null) { |
168 |
| - throw LOGGER.atError() |
169 |
| - .log(new IllegalArgumentException( |
170 |
| - "Missing required property connectionString in model AmazonRdsForSqlServerLinkedServiceTypeProperties")); |
171 |
| - } |
| 368 | + super.validate(); |
172 | 369 | if (password() != null) {
|
173 | 370 | password().validate();
|
174 | 371 | }
|
175 | 372 | if (alwaysEncryptedSettings() != null) {
|
176 | 373 | alwaysEncryptedSettings().validate();
|
177 | 374 | }
|
178 | 375 | }
|
179 |
| - |
180 |
| - private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForSqlServerLinkedServiceTypeProperties.class); |
181 | 376 | }
|
0 commit comments