PageRenderTime 26ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/WindowsAzure/azure-sdk-for-java
Java | 212 lines | 88 code | 24 blank | 100 comment | 0 complexity | 9f811ab3727cc68b2cf3737e0817551e 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. /** Linked service for TeamDesk. */
  13. @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
  14. @JsonTypeName("TeamDesk")
  15. @JsonFlatten
  16. @Fluent
  17. public class TeamDeskLinkedService extends LinkedService {
  18. /*
  19. * The authentication type to use.
  20. */
  21. @JsonProperty(value = "typeProperties.authenticationType", required = true)
  22. private TeamDeskAuthenticationType authenticationType;
  23. /*
  24. * The url to connect TeamDesk source. Type: string (or Expression with
  25. * resultType string).
  26. */
  27. @JsonProperty(value = "typeProperties.url", required = true)
  28. private Object url;
  29. /*
  30. * The username of the TeamDesk source. Type: string (or Expression with
  31. * resultType string).
  32. */
  33. @JsonProperty(value = "typeProperties.userName")
  34. private Object userName;
  35. /*
  36. * The password of the TeamDesk source.
  37. */
  38. @JsonProperty(value = "typeProperties.password")
  39. private SecretBase password;
  40. /*
  41. * The api token for the TeamDesk source.
  42. */
  43. @JsonProperty(value = "typeProperties.apiToken")
  44. private SecretBase apiToken;
  45. /*
  46. * The encrypted credential used for authentication. Credentials are
  47. * encrypted using the integration runtime credential manager. Type: string
  48. * (or Expression with resultType string).
  49. */
  50. @JsonProperty(value = "typeProperties.encryptedCredential")
  51. private Object encryptedCredential;
  52. /**
  53. * Get the authenticationType property: The authentication type to use.
  54. *
  55. * @return the authenticationType value.
  56. */
  57. public TeamDeskAuthenticationType getAuthenticationType() {
  58. return this.authenticationType;
  59. }
  60. /**
  61. * Set the authenticationType property: The authentication type to use.
  62. *
  63. * @param authenticationType the authenticationType value to set.
  64. * @return the TeamDeskLinkedService object itself.
  65. */
  66. public TeamDeskLinkedService setAuthenticationType(TeamDeskAuthenticationType authenticationType) {
  67. this.authenticationType = authenticationType;
  68. return this;
  69. }
  70. /**
  71. * Get the url property: The url to connect TeamDesk source. Type: string (or Expression with resultType string).
  72. *
  73. * @return the url value.
  74. */
  75. public Object getUrl() {
  76. return this.url;
  77. }
  78. /**
  79. * Set the url property: The url to connect TeamDesk source. Type: string (or Expression with resultType string).
  80. *
  81. * @param url the url value to set.
  82. * @return the TeamDeskLinkedService object itself.
  83. */
  84. public TeamDeskLinkedService setUrl(Object url) {
  85. this.url = url;
  86. return this;
  87. }
  88. /**
  89. * Get the userName property: The username of the TeamDesk source. Type: string (or Expression with resultType
  90. * string).
  91. *
  92. * @return the userName value.
  93. */
  94. public Object getUserName() {
  95. return this.userName;
  96. }
  97. /**
  98. * Set the userName property: The username of the TeamDesk source. Type: string (or Expression with resultType
  99. * string).
  100. *
  101. * @param userName the userName value to set.
  102. * @return the TeamDeskLinkedService object itself.
  103. */
  104. public TeamDeskLinkedService setUserName(Object userName) {
  105. this.userName = userName;
  106. return this;
  107. }
  108. /**
  109. * Get the password property: The password of the TeamDesk source.
  110. *
  111. * @return the password value.
  112. */
  113. public SecretBase getPassword() {
  114. return this.password;
  115. }
  116. /**
  117. * Set the password property: The password of the TeamDesk source.
  118. *
  119. * @param password the password value to set.
  120. * @return the TeamDeskLinkedService object itself.
  121. */
  122. public TeamDeskLinkedService setPassword(SecretBase password) {
  123. this.password = password;
  124. return this;
  125. }
  126. /**
  127. * Get the apiToken property: The api token for the TeamDesk source.
  128. *
  129. * @return the apiToken value.
  130. */
  131. public SecretBase getApiToken() {
  132. return this.apiToken;
  133. }
  134. /**
  135. * Set the apiToken property: The api token for the TeamDesk source.
  136. *
  137. * @param apiToken the apiToken value to set.
  138. * @return the TeamDeskLinkedService object itself.
  139. */
  140. public TeamDeskLinkedService setApiToken(SecretBase apiToken) {
  141. this.apiToken = apiToken;
  142. return this;
  143. }
  144. /**
  145. * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
  146. * using the integration runtime credential manager. Type: string (or Expression with resultType string).
  147. *
  148. * @return the encryptedCredential value.
  149. */
  150. public Object getEncryptedCredential() {
  151. return this.encryptedCredential;
  152. }
  153. /**
  154. * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
  155. * using the integration runtime credential manager. Type: string (or Expression with resultType string).
  156. *
  157. * @param encryptedCredential the encryptedCredential value to set.
  158. * @return the TeamDeskLinkedService object itself.
  159. */
  160. public TeamDeskLinkedService setEncryptedCredential(Object encryptedCredential) {
  161. this.encryptedCredential = encryptedCredential;
  162. return this;
  163. }
  164. /** {@inheritDoc} */
  165. @Override
  166. public TeamDeskLinkedService setConnectVia(IntegrationRuntimeReference connectVia) {
  167. super.setConnectVia(connectVia);
  168. return this;
  169. }
  170. /** {@inheritDoc} */
  171. @Override
  172. public TeamDeskLinkedService setDescription(String description) {
  173. super.setDescription(description);
  174. return this;
  175. }
  176. /** {@inheritDoc} */
  177. @Override
  178. public TeamDeskLinkedService setParameters(Map<String, ParameterSpecification> parameters) {
  179. super.setParameters(parameters);
  180. return this;
  181. }
  182. /** {@inheritDoc} */
  183. @Override
  184. public TeamDeskLinkedService setAnnotations(List<Object> annotations) {
  185. super.setAnnotations(annotations);
  186. return this;
  187. }
  188. }