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

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

http://github.com/WindowsAzure/azure-sdk-for-java
Java | 282 lines | 143 code | 28 blank | 111 comment | 27 complexity | 8e882373e85dd0c97bbe55c02b1f809c 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.HDInsightMapReduceActivityTypeProperties;
  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 MapReduce activity type. */
  14. @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
  15. @JsonTypeName("HDInsightMapReduce")
  16. @Fluent
  17. public final class HDInsightMapReduceActivity extends ExecutionActivity {
  18. /*
  19. * HDInsight MapReduce activity properties.
  20. */
  21. @JsonProperty(value = "typeProperties", required = true)
  22. private HDInsightMapReduceActivityTypeProperties innerTypeProperties =
  23. new HDInsightMapReduceActivityTypeProperties();
  24. /**
  25. * Get the innerTypeProperties property: HDInsight MapReduce activity properties.
  26. *
  27. * @return the innerTypeProperties value.
  28. */
  29. private HDInsightMapReduceActivityTypeProperties innerTypeProperties() {
  30. return this.innerTypeProperties;
  31. }
  32. /** {@inheritDoc} */
  33. @Override
  34. public HDInsightMapReduceActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) {
  35. super.withLinkedServiceName(linkedServiceName);
  36. return this;
  37. }
  38. /** {@inheritDoc} */
  39. @Override
  40. public HDInsightMapReduceActivity withPolicy(ActivityPolicy policy) {
  41. super.withPolicy(policy);
  42. return this;
  43. }
  44. /** {@inheritDoc} */
  45. @Override
  46. public HDInsightMapReduceActivity withName(String name) {
  47. super.withName(name);
  48. return this;
  49. }
  50. /** {@inheritDoc} */
  51. @Override
  52. public HDInsightMapReduceActivity withDescription(String description) {
  53. super.withDescription(description);
  54. return this;
  55. }
  56. /** {@inheritDoc} */
  57. @Override
  58. public HDInsightMapReduceActivity withDependsOn(List<ActivityDependency> dependsOn) {
  59. super.withDependsOn(dependsOn);
  60. return this;
  61. }
  62. /** {@inheritDoc} */
  63. @Override
  64. public HDInsightMapReduceActivity 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 HDInsightMapReduceActivity object itself.
  81. */
  82. public HDInsightMapReduceActivity withStorageLinkedServices(List<LinkedServiceReference> storageLinkedServices) {
  83. if (this.innerTypeProperties() == null) {
  84. this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties();
  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 HDInsightMapReduceActivity object itself.
  102. */
  103. public HDInsightMapReduceActivity withArguments(List<Object> arguments) {
  104. if (this.innerTypeProperties() == null) {
  105. this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties();
  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 HDInsightMapReduceActivity object itself.
  123. */
  124. public HDInsightMapReduceActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) {
  125. if (this.innerTypeProperties() == null) {
  126. this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties();
  127. }
  128. this.innerTypeProperties().withGetDebugInfo(getDebugInfo);
  129. return this;
  130. }
  131. /**
  132. * Get the className property: Class name. Type: string (or Expression with resultType string).
  133. *
  134. * @return the className value.
  135. */
  136. public Object className() {
  137. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().className();
  138. }
  139. /**
  140. * Set the className property: Class name. Type: string (or Expression with resultType string).
  141. *
  142. * @param className the className value to set.
  143. * @return the HDInsightMapReduceActivity object itself.
  144. */
  145. public HDInsightMapReduceActivity withClassName(Object className) {
  146. if (this.innerTypeProperties() == null) {
  147. this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties();
  148. }
  149. this.innerTypeProperties().withClassName(className);
  150. return this;
  151. }
  152. /**
  153. * Get the jarFilePath property: Jar path. Type: string (or Expression with resultType string).
  154. *
  155. * @return the jarFilePath value.
  156. */
  157. public Object jarFilePath() {
  158. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().jarFilePath();
  159. }
  160. /**
  161. * Set the jarFilePath property: Jar path. Type: string (or Expression with resultType string).
  162. *
  163. * @param jarFilePath the jarFilePath value to set.
  164. * @return the HDInsightMapReduceActivity object itself.
  165. */
  166. public HDInsightMapReduceActivity withJarFilePath(Object jarFilePath) {
  167. if (this.innerTypeProperties() == null) {
  168. this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties();
  169. }
  170. this.innerTypeProperties().withJarFilePath(jarFilePath);
  171. return this;
  172. }
  173. /**
  174. * Get the jarLinkedService property: Jar linked service reference.
  175. *
  176. * @return the jarLinkedService value.
  177. */
  178. public LinkedServiceReference jarLinkedService() {
  179. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().jarLinkedService();
  180. }
  181. /**
  182. * Set the jarLinkedService property: Jar linked service reference.
  183. *
  184. * @param jarLinkedService the jarLinkedService value to set.
  185. * @return the HDInsightMapReduceActivity object itself.
  186. */
  187. public HDInsightMapReduceActivity withJarLinkedService(LinkedServiceReference jarLinkedService) {
  188. if (this.innerTypeProperties() == null) {
  189. this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties();
  190. }
  191. this.innerTypeProperties().withJarLinkedService(jarLinkedService);
  192. return this;
  193. }
  194. /**
  195. * Get the jarLibs property: Jar libs.
  196. *
  197. * @return the jarLibs value.
  198. */
  199. public List<Object> jarLibs() {
  200. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().jarLibs();
  201. }
  202. /**
  203. * Set the jarLibs property: Jar libs.
  204. *
  205. * @param jarLibs the jarLibs value to set.
  206. * @return the HDInsightMapReduceActivity object itself.
  207. */
  208. public HDInsightMapReduceActivity withJarLibs(List<Object> jarLibs) {
  209. if (this.innerTypeProperties() == null) {
  210. this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties();
  211. }
  212. this.innerTypeProperties().withJarLibs(jarLibs);
  213. return this;
  214. }
  215. /**
  216. * Get the defines property: Allows user to specify defines for the MapReduce job request.
  217. *
  218. * @return the defines value.
  219. */
  220. public Map<String, Object> defines() {
  221. return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defines();
  222. }
  223. /**
  224. * Set the defines property: Allows user to specify defines for the MapReduce job request.
  225. *
  226. * @param defines the defines value to set.
  227. * @return the HDInsightMapReduceActivity object itself.
  228. */
  229. public HDInsightMapReduceActivity withDefines(Map<String, Object> defines) {
  230. if (this.innerTypeProperties() == null) {
  231. this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties();
  232. }
  233. this.innerTypeProperties().withDefines(defines);
  234. return this;
  235. }
  236. /**
  237. * Validates the instance.
  238. *
  239. * @throws IllegalArgumentException thrown if the instance is not valid.
  240. */
  241. @Override
  242. public void validate() {
  243. super.validate();
  244. if (innerTypeProperties() == null) {
  245. throw LOGGER
  246. .logExceptionAsError(
  247. new IllegalArgumentException(
  248. "Missing required property innerTypeProperties in model HDInsightMapReduceActivity"));
  249. } else {
  250. innerTypeProperties().validate();
  251. }
  252. }
  253. private static final ClientLogger LOGGER = new ClientLogger(HDInsightMapReduceActivity.class);
  254. }