PageRenderTime 50ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java

http://github.com/WindowsAzure/azure-sdk-for-java
Java | 355 lines | 163 code | 32 blank | 160 comment | 36 complexity | 41ced75b9724583b642dc4e795e856e1 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.resourcemanager.datafactory.models;
  5. import com.azure.core.annotation.Fluent;
  6. import com.azure.core.util.logging.ClientLogger;
  7. import com.azure.resourcemanager.datafactory.fluent.models.ImpalaLinkedServiceTypeProperties;
  8. import com.fasterxml.jackson.annotation.JsonIgnore;
  9. import com.fasterxml.jackson.annotation.JsonProperty;
  10. import com.fasterxml.jackson.annotation.JsonTypeInfo;
  11. import com.fasterxml.jackson.annotation.JsonTypeName;
  12. import java.util.List;
  13. import java.util.Map;
  14. /** Impala server linked service. */
  15. @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
  16. @JsonTypeName("Impala")
  17. @Fluent
  18. public final class ImpalaLinkedService extends LinkedService {
  19. @JsonIgnore private final ClientLogger logger = new ClientLogger(ImpalaLinkedService.class);
  20. /*
  21. * Impala server linked service properties.
  22. */
  23. @JsonProperty(value = "typeProperties", required = true)
  24. private ImpalaLinkedServiceTypeProperties innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  25. /**
  26. * Get the innerTypeProperties property: Impala server linked service properties.
  27. *
  28. * @return the innerTypeProperties value.
  29. */
  30. private ImpalaLinkedServiceTypeProperties innerTypeProperties() {
  31. return this.innerTypeProperties;
  32. }
  33. /** {@inheritDoc} */
  34. @Override
  35. public ImpalaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) {
  36. super.withConnectVia(connectVia);
  37. return this;
  38. }
  39. /** {@inheritDoc} */
  40. @Override
  41. public ImpalaLinkedService withDescription(String description) {
  42. super.withDescription(description);
  43. return this;
  44. }
  45. /** {@inheritDoc} */
  46. @Override
  47. public ImpalaLinkedService withParameters(Map<String, ParameterSpecification> parameters) {
  48. super.withParameters(parameters);
  49. return this;
  50. }
  51. /** {@inheritDoc} */
  52. @Override
  53. public ImpalaLinkedService withAnnotations(List<Object> annotations) {
  54. super.withAnnotations(annotations);
  55. return this;
  56. }
  57. /**
  58. * Get the host property: The IP address or host name of the Impala server. (i.e. 192.168.222.160).
  59. *
  60. * @return the host value.
  61. */
  62. public Object host() {
  63. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host();
  64. }
  65. /**
  66. * Set the host property: The IP address or host name of the Impala server. (i.e. 192.168.222.160).
  67. *
  68. * @param host the host value to set.
  69. * @return the ImpalaLinkedService object itself.
  70. */
  71. public ImpalaLinkedService withHost(Object host) {
  72. if (this.innerTypeProperties() == null) {
  73. this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  74. }
  75. this.innerTypeProperties().withHost(host);
  76. return this;
  77. }
  78. /**
  79. * Get the port property: The TCP port that the Impala server uses to listen for client connections. The default
  80. * value is 21050.
  81. *
  82. * @return the port value.
  83. */
  84. public Object port() {
  85. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port();
  86. }
  87. /**
  88. * Set the port property: The TCP port that the Impala server uses to listen for client connections. The default
  89. * value is 21050.
  90. *
  91. * @param port the port value to set.
  92. * @return the ImpalaLinkedService object itself.
  93. */
  94. public ImpalaLinkedService withPort(Object port) {
  95. if (this.innerTypeProperties() == null) {
  96. this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  97. }
  98. this.innerTypeProperties().withPort(port);
  99. return this;
  100. }
  101. /**
  102. * Get the authenticationType property: The authentication type to use.
  103. *
  104. * @return the authenticationType value.
  105. */
  106. public ImpalaAuthenticationType authenticationType() {
  107. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType();
  108. }
  109. /**
  110. * Set the authenticationType property: The authentication type to use.
  111. *
  112. * @param authenticationType the authenticationType value to set.
  113. * @return the ImpalaLinkedService object itself.
  114. */
  115. public ImpalaLinkedService withAuthenticationType(ImpalaAuthenticationType authenticationType) {
  116. if (this.innerTypeProperties() == null) {
  117. this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  118. }
  119. this.innerTypeProperties().withAuthenticationType(authenticationType);
  120. return this;
  121. }
  122. /**
  123. * Get the username property: The user name used to access the Impala server. The default value is anonymous when
  124. * using SASLUsername.
  125. *
  126. * @return the username value.
  127. */
  128. public Object username() {
  129. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username();
  130. }
  131. /**
  132. * Set the username property: The user name used to access the Impala server. The default value is anonymous when
  133. * using SASLUsername.
  134. *
  135. * @param username the username value to set.
  136. * @return the ImpalaLinkedService object itself.
  137. */
  138. public ImpalaLinkedService withUsername(Object username) {
  139. if (this.innerTypeProperties() == null) {
  140. this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  141. }
  142. this.innerTypeProperties().withUsername(username);
  143. return this;
  144. }
  145. /**
  146. * Get the password property: The password corresponding to the user name when using UsernameAndPassword.
  147. *
  148. * @return the password value.
  149. */
  150. public SecretBase password() {
  151. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password();
  152. }
  153. /**
  154. * Set the password property: The password corresponding to the user name when using UsernameAndPassword.
  155. *
  156. * @param password the password value to set.
  157. * @return the ImpalaLinkedService object itself.
  158. */
  159. public ImpalaLinkedService withPassword(SecretBase password) {
  160. if (this.innerTypeProperties() == null) {
  161. this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  162. }
  163. this.innerTypeProperties().withPassword(password);
  164. return this;
  165. }
  166. /**
  167. * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default
  168. * value is false.
  169. *
  170. * @return the enableSsl value.
  171. */
  172. public Object enableSsl() {
  173. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl();
  174. }
  175. /**
  176. * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default
  177. * value is false.
  178. *
  179. * @param enableSsl the enableSsl value to set.
  180. * @return the ImpalaLinkedService object itself.
  181. */
  182. public ImpalaLinkedService withEnableSsl(Object enableSsl) {
  183. if (this.innerTypeProperties() == null) {
  184. this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  185. }
  186. this.innerTypeProperties().withEnableSsl(enableSsl);
  187. return this;
  188. }
  189. /**
  190. * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying
  191. * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default
  192. * value is the cacerts.pem file installed with the IR.
  193. *
  194. * @return the trustedCertPath value.
  195. */
  196. public Object trustedCertPath() {
  197. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath();
  198. }
  199. /**
  200. * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying
  201. * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default
  202. * value is the cacerts.pem file installed with the IR.
  203. *
  204. * @param trustedCertPath the trustedCertPath value to set.
  205. * @return the ImpalaLinkedService object itself.
  206. */
  207. public ImpalaLinkedService withTrustedCertPath(Object trustedCertPath) {
  208. if (this.innerTypeProperties() == null) {
  209. this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  210. }
  211. this.innerTypeProperties().withTrustedCertPath(trustedCertPath);
  212. return this;
  213. }
  214. /**
  215. * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or
  216. * from a specified PEM file. The default value is false.
  217. *
  218. * @return the useSystemTrustStore value.
  219. */
  220. public Object useSystemTrustStore() {
  221. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore();
  222. }
  223. /**
  224. * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or
  225. * from a specified PEM file. The default value is false.
  226. *
  227. * @param useSystemTrustStore the useSystemTrustStore value to set.
  228. * @return the ImpalaLinkedService object itself.
  229. */
  230. public ImpalaLinkedService withUseSystemTrustStore(Object useSystemTrustStore) {
  231. if (this.innerTypeProperties() == null) {
  232. this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  233. }
  234. this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore);
  235. return this;
  236. }
  237. /**
  238. * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match
  239. * the host name of the server when connecting over SSL. The default value is false.
  240. *
  241. * @return the allowHostnameCNMismatch value.
  242. */
  243. public Object allowHostnameCNMismatch() {
  244. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch();
  245. }
  246. /**
  247. * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match
  248. * the host name of the server when connecting over SSL. The default value is false.
  249. *
  250. * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set.
  251. * @return the ImpalaLinkedService object itself.
  252. */
  253. public ImpalaLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) {
  254. if (this.innerTypeProperties() == null) {
  255. this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  256. }
  257. this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch);
  258. return this;
  259. }
  260. /**
  261. * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server.
  262. * The default value is false.
  263. *
  264. * @return the allowSelfSignedServerCert value.
  265. */
  266. public Object allowSelfSignedServerCert() {
  267. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert();
  268. }
  269. /**
  270. * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server.
  271. * The default value is false.
  272. *
  273. * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set.
  274. * @return the ImpalaLinkedService object itself.
  275. */
  276. public ImpalaLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) {
  277. if (this.innerTypeProperties() == null) {
  278. this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  279. }
  280. this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert);
  281. return this;
  282. }
  283. /**
  284. * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
  285. * using the integration runtime credential manager. Type: string (or Expression with resultType string).
  286. *
  287. * @return the encryptedCredential value.
  288. */
  289. public Object encryptedCredential() {
  290. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential();
  291. }
  292. /**
  293. * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
  294. * using the integration runtime credential manager. Type: string (or Expression with resultType string).
  295. *
  296. * @param encryptedCredential the encryptedCredential value to set.
  297. * @return the ImpalaLinkedService object itself.
  298. */
  299. public ImpalaLinkedService withEncryptedCredential(Object encryptedCredential) {
  300. if (this.innerTypeProperties() == null) {
  301. this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
  302. }
  303. this.innerTypeProperties().withEncryptedCredential(encryptedCredential);
  304. return this;
  305. }
  306. /**
  307. * Validates the instance.
  308. *
  309. * @throws IllegalArgumentException thrown if the instance is not valid.
  310. */
  311. @Override
  312. public void validate() {
  313. super.validate();
  314. if (innerTypeProperties() == null) {
  315. throw logger
  316. .logExceptionAsError(
  317. new IllegalArgumentException(
  318. "Missing required property innerTypeProperties in model ImpalaLinkedService"));
  319. } else {
  320. innerTypeProperties().validate();
  321. }
  322. }
  323. }