PageRenderTime 26ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://github.com/WindowsAzure/azure-sdk-for-java
Java | 374 lines | 183 code | 36 blank | 155 comment | 39 complexity | 50671a3af894d73ec613c8a7188f4d98 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.HDInsightStreamingActivityTypeProperties;
  8. import com.fasterxml.jackson.annotation.JsonProperty;
  9. import com.fasterxml.jackson.annotation.JsonTypeInfo;
  10. import com.fasterxml.jackson.annotation.JsonTypeName;
  11. import java.util.List;
  12. import java.util.Map;
  13. /** HDInsight streaming activity type. */
  14. @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
  15. @JsonTypeName("HDInsightStreaming")
  16. @Fluent
  17. public final class HDInsightStreamingActivity extends ExecutionActivity {
  18. /*
  19. * HDInsight streaming activity properties.
  20. */
  21. @JsonProperty(value = "typeProperties", required = true)
  22. private HDInsightStreamingActivityTypeProperties innerTypeProperties =
  23. new HDInsightStreamingActivityTypeProperties();
  24. /**
  25. * Get the innerTypeProperties property: HDInsight streaming activity properties.
  26. *
  27. * @return the innerTypeProperties value.
  28. */
  29. private HDInsightStreamingActivityTypeProperties innerTypeProperties() {
  30. return this.innerTypeProperties;
  31. }
  32. /** {@inheritDoc} */
  33. @Override
  34. public HDInsightStreamingActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) {
  35. super.withLinkedServiceName(linkedServiceName);
  36. return this;
  37. }
  38. /** {@inheritDoc} */
  39. @Override
  40. public HDInsightStreamingActivity withPolicy(ActivityPolicy policy) {
  41. super.withPolicy(policy);
  42. return this;
  43. }
  44. /** {@inheritDoc} */
  45. @Override
  46. public HDInsightStreamingActivity withName(String name) {
  47. super.withName(name);
  48. return this;
  49. }
  50. /** {@inheritDoc} */
  51. @Override
  52. public HDInsightStreamingActivity withDescription(String description) {
  53. super.withDescription(description);
  54. return this;
  55. }
  56. /** {@inheritDoc} */
  57. @Override
  58. public HDInsightStreamingActivity withDependsOn(List<ActivityDependency> dependsOn) {
  59. super.withDependsOn(dependsOn);
  60. return this;
  61. }
  62. /** {@inheritDoc} */
  63. @Override
  64. public HDInsightStreamingActivity withUserProperties(List<UserProperty> userProperties) {
  65. super.withUserProperties(userProperties);
  66. return this;
  67. }
  68. /**
  69. * Get the storageLinkedServices property: Storage linked service references.
  70. *
  71. * @return the storageLinkedServices value.
  72. */
  73. public List<LinkedServiceReference> storageLinkedServices() {
  74. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storageLinkedServices();
  75. }
  76. /**
  77. * Set the storageLinkedServices property: Storage linked service references.
  78. *
  79. * @param storageLinkedServices the storageLinkedServices value to set.
  80. * @return the HDInsightStreamingActivity object itself.
  81. */
  82. public HDInsightStreamingActivity withStorageLinkedServices(List<LinkedServiceReference> storageLinkedServices) {
  83. if (this.innerTypeProperties() == null) {
  84. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  85. }
  86. this.innerTypeProperties().withStorageLinkedServices(storageLinkedServices);
  87. return this;
  88. }
  89. /**
  90. * Get the arguments property: User specified arguments to HDInsightActivity.
  91. *
  92. * @return the arguments value.
  93. */
  94. public List<Object> arguments() {
  95. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().arguments();
  96. }
  97. /**
  98. * Set the arguments property: User specified arguments to HDInsightActivity.
  99. *
  100. * @param arguments the arguments value to set.
  101. * @return the HDInsightStreamingActivity object itself.
  102. */
  103. public HDInsightStreamingActivity withArguments(List<Object> arguments) {
  104. if (this.innerTypeProperties() == null) {
  105. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  106. }
  107. this.innerTypeProperties().withArguments(arguments);
  108. return this;
  109. }
  110. /**
  111. * Get the getDebugInfo property: Debug info option.
  112. *
  113. * @return the getDebugInfo value.
  114. */
  115. public HDInsightActivityDebugInfoOption getDebugInfo() {
  116. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().getDebugInfo();
  117. }
  118. /**
  119. * Set the getDebugInfo property: Debug info option.
  120. *
  121. * @param getDebugInfo the getDebugInfo value to set.
  122. * @return the HDInsightStreamingActivity object itself.
  123. */
  124. public HDInsightStreamingActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) {
  125. if (this.innerTypeProperties() == null) {
  126. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  127. }
  128. this.innerTypeProperties().withGetDebugInfo(getDebugInfo);
  129. return this;
  130. }
  131. /**
  132. * Get the mapper property: Mapper executable name. Type: string (or Expression with resultType string).
  133. *
  134. * @return the mapper value.
  135. */
  136. public Object mapper() {
  137. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mapper();
  138. }
  139. /**
  140. * Set the mapper property: Mapper executable name. Type: string (or Expression with resultType string).
  141. *
  142. * @param mapper the mapper value to set.
  143. * @return the HDInsightStreamingActivity object itself.
  144. */
  145. public HDInsightStreamingActivity withMapper(Object mapper) {
  146. if (this.innerTypeProperties() == null) {
  147. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  148. }
  149. this.innerTypeProperties().withMapper(mapper);
  150. return this;
  151. }
  152. /**
  153. * Get the reducer property: Reducer executable name. Type: string (or Expression with resultType string).
  154. *
  155. * @return the reducer value.
  156. */
  157. public Object reducer() {
  158. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().reducer();
  159. }
  160. /**
  161. * Set the reducer property: Reducer executable name. Type: string (or Expression with resultType string).
  162. *
  163. * @param reducer the reducer value to set.
  164. * @return the HDInsightStreamingActivity object itself.
  165. */
  166. public HDInsightStreamingActivity withReducer(Object reducer) {
  167. if (this.innerTypeProperties() == null) {
  168. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  169. }
  170. this.innerTypeProperties().withReducer(reducer);
  171. return this;
  172. }
  173. /**
  174. * Get the input property: Input blob path. Type: string (or Expression with resultType string).
  175. *
  176. * @return the input value.
  177. */
  178. public Object input() {
  179. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().input();
  180. }
  181. /**
  182. * Set the input property: Input blob path. Type: string (or Expression with resultType string).
  183. *
  184. * @param input the input value to set.
  185. * @return the HDInsightStreamingActivity object itself.
  186. */
  187. public HDInsightStreamingActivity withInput(Object input) {
  188. if (this.innerTypeProperties() == null) {
  189. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  190. }
  191. this.innerTypeProperties().withInput(input);
  192. return this;
  193. }
  194. /**
  195. * Get the output property: Output blob path. Type: string (or Expression with resultType string).
  196. *
  197. * @return the output value.
  198. */
  199. public Object output() {
  200. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().output();
  201. }
  202. /**
  203. * Set the output property: Output blob path. Type: string (or Expression with resultType string).
  204. *
  205. * @param output the output value to set.
  206. * @return the HDInsightStreamingActivity object itself.
  207. */
  208. public HDInsightStreamingActivity withOutput(Object output) {
  209. if (this.innerTypeProperties() == null) {
  210. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  211. }
  212. this.innerTypeProperties().withOutput(output);
  213. return this;
  214. }
  215. /**
  216. * Get the filePaths property: Paths to streaming job files. Can be directories.
  217. *
  218. * @return the filePaths value.
  219. */
  220. public List<Object> filePaths() {
  221. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().filePaths();
  222. }
  223. /**
  224. * Set the filePaths property: Paths to streaming job files. Can be directories.
  225. *
  226. * @param filePaths the filePaths value to set.
  227. * @return the HDInsightStreamingActivity object itself.
  228. */
  229. public HDInsightStreamingActivity withFilePaths(List<Object> filePaths) {
  230. if (this.innerTypeProperties() == null) {
  231. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  232. }
  233. this.innerTypeProperties().withFilePaths(filePaths);
  234. return this;
  235. }
  236. /**
  237. * Get the fileLinkedService property: Linked service reference where the files are located.
  238. *
  239. * @return the fileLinkedService value.
  240. */
  241. public LinkedServiceReference fileLinkedService() {
  242. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileLinkedService();
  243. }
  244. /**
  245. * Set the fileLinkedService property: Linked service reference where the files are located.
  246. *
  247. * @param fileLinkedService the fileLinkedService value to set.
  248. * @return the HDInsightStreamingActivity object itself.
  249. */
  250. public HDInsightStreamingActivity withFileLinkedService(LinkedServiceReference fileLinkedService) {
  251. if (this.innerTypeProperties() == null) {
  252. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  253. }
  254. this.innerTypeProperties().withFileLinkedService(fileLinkedService);
  255. return this;
  256. }
  257. /**
  258. * Get the combiner property: Combiner executable name. Type: string (or Expression with resultType string).
  259. *
  260. * @return the combiner value.
  261. */
  262. public Object combiner() {
  263. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().combiner();
  264. }
  265. /**
  266. * Set the combiner property: Combiner executable name. Type: string (or Expression with resultType string).
  267. *
  268. * @param combiner the combiner value to set.
  269. * @return the HDInsightStreamingActivity object itself.
  270. */
  271. public HDInsightStreamingActivity withCombiner(Object combiner) {
  272. if (this.innerTypeProperties() == null) {
  273. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  274. }
  275. this.innerTypeProperties().withCombiner(combiner);
  276. return this;
  277. }
  278. /**
  279. * Get the commandEnvironment property: Command line environment values.
  280. *
  281. * @return the commandEnvironment value.
  282. */
  283. public List<Object> commandEnvironment() {
  284. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().commandEnvironment();
  285. }
  286. /**
  287. * Set the commandEnvironment property: Command line environment values.
  288. *
  289. * @param commandEnvironment the commandEnvironment value to set.
  290. * @return the HDInsightStreamingActivity object itself.
  291. */
  292. public HDInsightStreamingActivity withCommandEnvironment(List<Object> commandEnvironment) {
  293. if (this.innerTypeProperties() == null) {
  294. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  295. }
  296. this.innerTypeProperties().withCommandEnvironment(commandEnvironment);
  297. return this;
  298. }
  299. /**
  300. * Get the defines property: Allows user to specify defines for streaming job request.
  301. *
  302. * @return the defines value.
  303. */
  304. public Map<String, Object> defines() {
  305. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defines();
  306. }
  307. /**
  308. * Set the defines property: Allows user to specify defines for streaming job request.
  309. *
  310. * @param defines the defines value to set.
  311. * @return the HDInsightStreamingActivity object itself.
  312. */
  313. public HDInsightStreamingActivity withDefines(Map<String, Object> defines) {
  314. if (this.innerTypeProperties() == null) {
  315. this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties();
  316. }
  317. this.innerTypeProperties().withDefines(defines);
  318. return this;
  319. }
  320. /**
  321. * Validates the instance.
  322. *
  323. * @throws IllegalArgumentException thrown if the instance is not valid.
  324. */
  325. @Override
  326. public void validate() {
  327. super.validate();
  328. if (innerTypeProperties() == null) {
  329. throw LOGGER
  330. .logExceptionAsError(
  331. new IllegalArgumentException(
  332. "Missing required property innerTypeProperties in model HDInsightStreamingActivity"));
  333. } else {
  334. innerTypeProperties().validate();
  335. }
  336. }
  337. private static final ClientLogger LOGGER = new ClientLogger(HDInsightStreamingActivity.class);
  338. }