PageRenderTime 48ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzurePostgreSqlLinkedService.java

http://github.com/WindowsAzure/azure-sdk-for-java
Java | 133 lines | 61 code | 15 blank | 57 comment | 0 complexity | 5c41ee55e819648ff4fb40ad28e296bd MD5 | raw file
Possible License(s): MIT
  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. // Code generated by Microsoft (R) AutoRest Code Generator.
  4. package com.azure.analytics.synapse.artifacts.models;
  5. import com.azure.core.annotation.Fluent;
  6. import com.azure.core.annotation.JsonFlatten;
  7. import com.fasterxml.jackson.annotation.JsonProperty;
  8. import com.fasterxml.jackson.annotation.JsonTypeInfo;
  9. import com.fasterxml.jackson.annotation.JsonTypeName;
  10. import java.util.List;
  11. import java.util.Map;
  12. /** Azure PostgreSQL linked service. */
  13. @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
  14. @JsonTypeName("AzurePostgreSql")
  15. @JsonFlatten
  16. @Fluent
  17. public class AzurePostgreSqlLinkedService extends LinkedService {
  18. /*
  19. * An ODBC connection string. Type: string, SecureString or
  20. * AzureKeyVaultSecretReference.
  21. */
  22. @JsonProperty(value = "typeProperties.connectionString")
  23. private Object connectionString;
  24. /*
  25. * The Azure key vault secret reference of password in connection string.
  26. */
  27. @JsonProperty(value = "typeProperties.password")
  28. private AzureKeyVaultSecretReference password;
  29. /*
  30. * The encrypted credential used for authentication. Credentials are
  31. * encrypted using the integration runtime credential manager. Type: string
  32. * (or Expression with resultType string).
  33. */
  34. @JsonProperty(value = "typeProperties.encryptedCredential")
  35. private Object encryptedCredential;
  36. /**
  37. * Get the connectionString property: An ODBC connection string. Type: string, SecureString or
  38. * AzureKeyVaultSecretReference.
  39. *
  40. * @return the connectionString value.
  41. */
  42. public Object getConnectionString() {
  43. return this.connectionString;
  44. }
  45. /**
  46. * Set the connectionString property: An ODBC connection string. Type: string, SecureString or
  47. * AzureKeyVaultSecretReference.
  48. *
  49. * @param connectionString the connectionString value to set.
  50. * @return the AzurePostgreSqlLinkedService object itself.
  51. */
  52. public AzurePostgreSqlLinkedService setConnectionString(Object connectionString) {
  53. this.connectionString = connectionString;
  54. return this;
  55. }
  56. /**
  57. * Get the password property: The Azure key vault secret reference of password in connection string.
  58. *
  59. * @return the password value.
  60. */
  61. public AzureKeyVaultSecretReference getPassword() {
  62. return this.password;
  63. }
  64. /**
  65. * Set the password property: The Azure key vault secret reference of password in connection string.
  66. *
  67. * @param password the password value to set.
  68. * @return the AzurePostgreSqlLinkedService object itself.
  69. */
  70. public AzurePostgreSqlLinkedService setPassword(AzureKeyVaultSecretReference password) {
  71. this.password = password;
  72. return this;
  73. }
  74. /**
  75. * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
  76. * using the integration runtime credential manager. Type: string (or Expression with resultType string).
  77. *
  78. * @return the encryptedCredential value.
  79. */
  80. public Object getEncryptedCredential() {
  81. return this.encryptedCredential;
  82. }
  83. /**
  84. * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
  85. * using the integration runtime credential manager. Type: string (or Expression with resultType string).
  86. *
  87. * @param encryptedCredential the encryptedCredential value to set.
  88. * @return the AzurePostgreSqlLinkedService object itself.
  89. */
  90. public AzurePostgreSqlLinkedService setEncryptedCredential(Object encryptedCredential) {
  91. this.encryptedCredential = encryptedCredential;
  92. return this;
  93. }
  94. /** {@inheritDoc} */
  95. @Override
  96. public AzurePostgreSqlLinkedService setConnectVia(IntegrationRuntimeReference connectVia) {
  97. super.setConnectVia(connectVia);
  98. return this;
  99. }
  100. /** {@inheritDoc} */
  101. @Override
  102. public AzurePostgreSqlLinkedService setDescription(String description) {
  103. super.setDescription(description);
  104. return this;
  105. }
  106. /** {@inheritDoc} */
  107. @Override
  108. public AzurePostgreSqlLinkedService setParameters(Map<String, ParameterSpecification> parameters) {
  109. super.setParameters(parameters);
  110. return this;
  111. }
  112. /** {@inheritDoc} */
  113. @Override
  114. public AzurePostgreSqlLinkedService setAnnotations(List<Object> annotations) {
  115. super.setAnnotations(annotations);
  116. return this;
  117. }
  118. }