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

http://github.com/WindowsAzure/azure-sdk-for-java · Java · 280 lines · 133 code · 25 blank · 122 comment · 2 complexity · 38072b286939ef3aedd19a972dad8941 MD5 · raw file

  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.fasterxml.jackson.annotation.JsonAnyGetter;
  7. import com.fasterxml.jackson.annotation.JsonAnySetter;
  8. import com.fasterxml.jackson.annotation.JsonIgnore;
  9. import com.fasterxml.jackson.annotation.JsonProperty;
  10. import com.fasterxml.jackson.annotation.JsonSubTypes;
  11. import com.fasterxml.jackson.annotation.JsonTypeInfo;
  12. import com.fasterxml.jackson.annotation.JsonTypeName;
  13. import java.util.HashMap;
  14. import java.util.Map;
  15. /** A copy activity sink. */
  16. @JsonTypeInfo(
  17. use = JsonTypeInfo.Id.NAME,
  18. include = JsonTypeInfo.As.PROPERTY,
  19. property = "type",
  20. defaultImpl = CopySink.class)
  21. @JsonTypeName("CopySink")
  22. @JsonSubTypes({
  23. @JsonSubTypes.Type(name = "DelimitedTextSink", value = DelimitedTextSink.class),
  24. @JsonSubTypes.Type(name = "JsonSink", value = JsonSink.class),
  25. @JsonSubTypes.Type(name = "OrcSink", value = OrcSink.class),
  26. @JsonSubTypes.Type(name = "RestSink", value = RestSink.class),
  27. @JsonSubTypes.Type(name = "AzurePostgreSqlSink", value = AzurePostgreSqlSink.class),
  28. @JsonSubTypes.Type(name = "AzureMySqlSink", value = AzureMySqlSink.class),
  29. @JsonSubTypes.Type(name = "AzureDatabricksDeltaLakeSink", value = AzureDatabricksDeltaLakeSink.class),
  30. @JsonSubTypes.Type(name = "SapCloudForCustomerSink", value = SapCloudForCustomerSink.class),
  31. @JsonSubTypes.Type(name = "AzureQueueSink", value = AzureQueueSink.class),
  32. @JsonSubTypes.Type(name = "AzureTableSink", value = AzureTableSink.class),
  33. @JsonSubTypes.Type(name = "AvroSink", value = AvroSink.class),
  34. @JsonSubTypes.Type(name = "ParquetSink", value = ParquetSink.class),
  35. @JsonSubTypes.Type(name = "BinarySink", value = BinarySink.class),
  36. @JsonSubTypes.Type(name = "BlobSink", value = BlobSink.class),
  37. @JsonSubTypes.Type(name = "FileSystemSink", value = FileSystemSink.class),
  38. @JsonSubTypes.Type(name = "DocumentDbCollectionSink", value = DocumentDbCollectionSink.class),
  39. @JsonSubTypes.Type(name = "CosmosDbSqlApiSink", value = CosmosDbSqlApiSink.class),
  40. @JsonSubTypes.Type(name = "SqlSink", value = SqlSink.class),
  41. @JsonSubTypes.Type(name = "SqlServerSink", value = SqlServerSink.class),
  42. @JsonSubTypes.Type(name = "AzureSqlSink", value = AzureSqlSink.class),
  43. @JsonSubTypes.Type(name = "SqlMISink", value = SqlMISink.class),
  44. @JsonSubTypes.Type(name = "SqlDWSink", value = SqlDWSink.class),
  45. @JsonSubTypes.Type(name = "SnowflakeSink", value = SnowflakeSink.class),
  46. @JsonSubTypes.Type(name = "OracleSink", value = OracleSink.class),
  47. @JsonSubTypes.Type(name = "AzureDataLakeStoreSink", value = AzureDataLakeStoreSink.class),
  48. @JsonSubTypes.Type(name = "AzureBlobFSSink", value = AzureBlobFSSink.class),
  49. @JsonSubTypes.Type(name = "AzureSearchIndexSink", value = AzureSearchIndexSink.class),
  50. @JsonSubTypes.Type(name = "OdbcSink", value = OdbcSink.class),
  51. @JsonSubTypes.Type(name = "InformixSink", value = InformixSink.class),
  52. @JsonSubTypes.Type(name = "MicrosoftAccessSink", value = MicrosoftAccessSink.class),
  53. @JsonSubTypes.Type(name = "DynamicsSink", value = DynamicsSink.class),
  54. @JsonSubTypes.Type(name = "DynamicsCrmSink", value = DynamicsCrmSink.class),
  55. @JsonSubTypes.Type(name = "CommonDataServiceForAppsSink", value = CommonDataServiceForAppsSink.class),
  56. @JsonSubTypes.Type(name = "AzureDataExplorerSink", value = AzureDataExplorerSink.class),
  57. @JsonSubTypes.Type(name = "SalesforceSink", value = SalesforceSink.class),
  58. @JsonSubTypes.Type(name = "SalesforceServiceCloudSink", value = SalesforceServiceCloudSink.class),
  59. @JsonSubTypes.Type(name = "MongoDbAtlasSink", value = MongoDbAtlasSink.class),
  60. @JsonSubTypes.Type(name = "MongoDbV2Sink", value = MongoDbV2Sink.class),
  61. @JsonSubTypes.Type(name = "CosmosDbMongoDbApiSink", value = CosmosDbMongoDbApiSink.class)
  62. })
  63. @Fluent
  64. public class CopySink {
  65. /*
  66. * Write batch size. Type: integer (or Expression with resultType integer),
  67. * minimum: 0.
  68. */
  69. @JsonProperty(value = "writeBatchSize")
  70. private Object writeBatchSize;
  71. /*
  72. * Write batch timeout. Type: string (or Expression with resultType
  73. * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
  74. */
  75. @JsonProperty(value = "writeBatchTimeout")
  76. private Object writeBatchTimeout;
  77. /*
  78. * Sink retry count. Type: integer (or Expression with resultType integer).
  79. */
  80. @JsonProperty(value = "sinkRetryCount")
  81. private Object sinkRetryCount;
  82. /*
  83. * Sink retry wait. Type: string (or Expression with resultType string),
  84. * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
  85. */
  86. @JsonProperty(value = "sinkRetryWait")
  87. private Object sinkRetryWait;
  88. /*
  89. * The maximum concurrent connection count for the sink data store. Type:
  90. * integer (or Expression with resultType integer).
  91. */
  92. @JsonProperty(value = "maxConcurrentConnections")
  93. private Object maxConcurrentConnections;
  94. /*
  95. * If true, disable data store metrics collection. Default is false. Type:
  96. * boolean (or Expression with resultType boolean).
  97. */
  98. @JsonProperty(value = "disableMetricsCollection")
  99. private Object disableMetricsCollection;
  100. /*
  101. * A copy activity sink.
  102. */
  103. @JsonIgnore private Map<String, Object> additionalProperties;
  104. /**
  105. * Get the writeBatchSize property: Write batch size. Type: integer (or Expression with resultType integer),
  106. * minimum: 0.
  107. *
  108. * @return the writeBatchSize value.
  109. */
  110. public Object writeBatchSize() {
  111. return this.writeBatchSize;
  112. }
  113. /**
  114. * Set the writeBatchSize property: Write batch size. Type: integer (or Expression with resultType integer),
  115. * minimum: 0.
  116. *
  117. * @param writeBatchSize the writeBatchSize value to set.
  118. * @return the CopySink object itself.
  119. */
  120. public CopySink withWriteBatchSize(Object writeBatchSize) {
  121. this.writeBatchSize = writeBatchSize;
  122. return this;
  123. }
  124. /**
  125. * Get the writeBatchTimeout property: Write batch timeout. Type: string (or Expression with resultType string),
  126. * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
  127. *
  128. * @return the writeBatchTimeout value.
  129. */
  130. public Object writeBatchTimeout() {
  131. return this.writeBatchTimeout;
  132. }
  133. /**
  134. * Set the writeBatchTimeout property: Write batch timeout. Type: string (or Expression with resultType string),
  135. * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
  136. *
  137. * @param writeBatchTimeout the writeBatchTimeout value to set.
  138. * @return the CopySink object itself.
  139. */
  140. public CopySink withWriteBatchTimeout(Object writeBatchTimeout) {
  141. this.writeBatchTimeout = writeBatchTimeout;
  142. return this;
  143. }
  144. /**
  145. * Get the sinkRetryCount property: Sink retry count. Type: integer (or Expression with resultType integer).
  146. *
  147. * @return the sinkRetryCount value.
  148. */
  149. public Object sinkRetryCount() {
  150. return this.sinkRetryCount;
  151. }
  152. /**
  153. * Set the sinkRetryCount property: Sink retry count. Type: integer (or Expression with resultType integer).
  154. *
  155. * @param sinkRetryCount the sinkRetryCount value to set.
  156. * @return the CopySink object itself.
  157. */
  158. public CopySink withSinkRetryCount(Object sinkRetryCount) {
  159. this.sinkRetryCount = sinkRetryCount;
  160. return this;
  161. }
  162. /**
  163. * Get the sinkRetryWait property: Sink retry wait. Type: string (or Expression with resultType string), pattern:
  164. * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
  165. *
  166. * @return the sinkRetryWait value.
  167. */
  168. public Object sinkRetryWait() {
  169. return this.sinkRetryWait;
  170. }
  171. /**
  172. * Set the sinkRetryWait property: Sink retry wait. Type: string (or Expression with resultType string), pattern:
  173. * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
  174. *
  175. * @param sinkRetryWait the sinkRetryWait value to set.
  176. * @return the CopySink object itself.
  177. */
  178. public CopySink withSinkRetryWait(Object sinkRetryWait) {
  179. this.sinkRetryWait = sinkRetryWait;
  180. return this;
  181. }
  182. /**
  183. * Get the maxConcurrentConnections property: The maximum concurrent connection count for the sink data store. Type:
  184. * integer (or Expression with resultType integer).
  185. *
  186. * @return the maxConcurrentConnections value.
  187. */
  188. public Object maxConcurrentConnections() {
  189. return this.maxConcurrentConnections;
  190. }
  191. /**
  192. * Set the maxConcurrentConnections property: The maximum concurrent connection count for the sink data store. Type:
  193. * integer (or Expression with resultType integer).
  194. *
  195. * @param maxConcurrentConnections the maxConcurrentConnections value to set.
  196. * @return the CopySink object itself.
  197. */
  198. public CopySink withMaxConcurrentConnections(Object maxConcurrentConnections) {
  199. this.maxConcurrentConnections = maxConcurrentConnections;
  200. return this;
  201. }
  202. /**
  203. * Get the disableMetricsCollection property: If true, disable data store metrics collection. Default is false.
  204. * Type: boolean (or Expression with resultType boolean).
  205. *
  206. * @return the disableMetricsCollection value.
  207. */
  208. public Object disableMetricsCollection() {
  209. return this.disableMetricsCollection;
  210. }
  211. /**
  212. * Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false.
  213. * Type: boolean (or Expression with resultType boolean).
  214. *
  215. * @param disableMetricsCollection the disableMetricsCollection value to set.
  216. * @return the CopySink object itself.
  217. */
  218. public CopySink withDisableMetricsCollection(Object disableMetricsCollection) {
  219. this.disableMetricsCollection = disableMetricsCollection;
  220. return this;
  221. }
  222. /**
  223. * Get the additionalProperties property: A copy activity sink.
  224. *
  225. * @return the additionalProperties value.
  226. */
  227. @JsonAnyGetter
  228. public Map<String, Object> additionalProperties() {
  229. return this.additionalProperties;
  230. }
  231. /**
  232. * Set the additionalProperties property: A copy activity sink.
  233. *
  234. * @param additionalProperties the additionalProperties value to set.
  235. * @return the CopySink object itself.
  236. */
  237. public CopySink withAdditionalProperties(Map<String, Object> additionalProperties) {
  238. this.additionalProperties = additionalProperties;
  239. return this;
  240. }
  241. @JsonAnySetter
  242. void withAdditionalProperties(String key, Object value) {
  243. if (additionalProperties == null) {
  244. additionalProperties = new HashMap<>();
  245. }
  246. additionalProperties.put(key, value);
  247. }
  248. /**
  249. * Validates the instance.
  250. *
  251. * @throws IllegalArgumentException thrown if the instance is not valid.
  252. */
  253. public void validate() {
  254. }
  255. }