PageRenderTime 1309ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/sdk/apimanagement/mgmt-v2019_01_01/src/main/java/com/microsoft/azure/management/apimanagement/v2019_01_01/OperationUpdateContract.java

http://github.com/WindowsAzure/azure-sdk-for-java
Java | 231 lines | 79 code | 27 blank | 125 comment | 0 complexity | cb6fc6ef1230689a0e0b9ecea84f19f7 MD5 | raw file
Possible License(s): MIT
  1. /**
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for
  4. * license information.
  5. *
  6. * Code generated by Microsoft (R) AutoRest Code Generator.
  7. */
  8. package com.microsoft.azure.management.apimanagement.v2019_01_01;
  9. import java.util.List;
  10. import com.fasterxml.jackson.annotation.JsonProperty;
  11. import com.microsoft.rest.serializer.JsonFlatten;
  12. /**
  13. * Api Operation Update Contract details.
  14. */
  15. @JsonFlatten
  16. public class OperationUpdateContract {
  17. /**
  18. * Collection of URL template parameters.
  19. */
  20. @JsonProperty(value = "properties.templateParameters")
  21. private List<ParameterContract> templateParameters;
  22. /**
  23. * Description of the operation. May include HTML formatting tags.
  24. */
  25. @JsonProperty(value = "properties.description")
  26. private String description;
  27. /**
  28. * An entity containing request details.
  29. */
  30. @JsonProperty(value = "properties.request")
  31. private RequestContract request;
  32. /**
  33. * Array of Operation responses.
  34. */
  35. @JsonProperty(value = "properties.responses")
  36. private List<ResponseContract> responses;
  37. /**
  38. * Operation Policies.
  39. */
  40. @JsonProperty(value = "properties.policies")
  41. private String policies;
  42. /**
  43. * Operation Name.
  44. */
  45. @JsonProperty(value = "properties.displayName")
  46. private String displayName;
  47. /**
  48. * A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST
  49. * but not limited by only them.
  50. */
  51. @JsonProperty(value = "properties.method")
  52. private String method;
  53. /**
  54. * Relative URL template identifying the target resource for this
  55. * operation. May include parameters. Example:
  56. * /customers/{cid}/orders/{oid}/?date={date}.
  57. */
  58. @JsonProperty(value = "properties.urlTemplate")
  59. private String urlTemplate;
  60. /**
  61. * Get collection of URL template parameters.
  62. *
  63. * @return the templateParameters value
  64. */
  65. public List<ParameterContract> templateParameters() {
  66. return this.templateParameters;
  67. }
  68. /**
  69. * Set collection of URL template parameters.
  70. *
  71. * @param templateParameters the templateParameters value to set
  72. * @return the OperationUpdateContract object itself.
  73. */
  74. public OperationUpdateContract withTemplateParameters(List<ParameterContract> templateParameters) {
  75. this.templateParameters = templateParameters;
  76. return this;
  77. }
  78. /**
  79. * Get description of the operation. May include HTML formatting tags.
  80. *
  81. * @return the description value
  82. */
  83. public String description() {
  84. return this.description;
  85. }
  86. /**
  87. * Set description of the operation. May include HTML formatting tags.
  88. *
  89. * @param description the description value to set
  90. * @return the OperationUpdateContract object itself.
  91. */
  92. public OperationUpdateContract withDescription(String description) {
  93. this.description = description;
  94. return this;
  95. }
  96. /**
  97. * Get an entity containing request details.
  98. *
  99. * @return the request value
  100. */
  101. public RequestContract request() {
  102. return this.request;
  103. }
  104. /**
  105. * Set an entity containing request details.
  106. *
  107. * @param request the request value to set
  108. * @return the OperationUpdateContract object itself.
  109. */
  110. public OperationUpdateContract withRequest(RequestContract request) {
  111. this.request = request;
  112. return this;
  113. }
  114. /**
  115. * Get array of Operation responses.
  116. *
  117. * @return the responses value
  118. */
  119. public List<ResponseContract> responses() {
  120. return this.responses;
  121. }
  122. /**
  123. * Set array of Operation responses.
  124. *
  125. * @param responses the responses value to set
  126. * @return the OperationUpdateContract object itself.
  127. */
  128. public OperationUpdateContract withResponses(List<ResponseContract> responses) {
  129. this.responses = responses;
  130. return this;
  131. }
  132. /**
  133. * Get operation Policies.
  134. *
  135. * @return the policies value
  136. */
  137. public String policies() {
  138. return this.policies;
  139. }
  140. /**
  141. * Set operation Policies.
  142. *
  143. * @param policies the policies value to set
  144. * @return the OperationUpdateContract object itself.
  145. */
  146. public OperationUpdateContract withPolicies(String policies) {
  147. this.policies = policies;
  148. return this;
  149. }
  150. /**
  151. * Get operation Name.
  152. *
  153. * @return the displayName value
  154. */
  155. public String displayName() {
  156. return this.displayName;
  157. }
  158. /**
  159. * Set operation Name.
  160. *
  161. * @param displayName the displayName value to set
  162. * @return the OperationUpdateContract object itself.
  163. */
  164. public OperationUpdateContract withDisplayName(String displayName) {
  165. this.displayName = displayName;
  166. return this;
  167. }
  168. /**
  169. * Get a Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
  170. *
  171. * @return the method value
  172. */
  173. public String method() {
  174. return this.method;
  175. }
  176. /**
  177. * Set a Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
  178. *
  179. * @param method the method value to set
  180. * @return the OperationUpdateContract object itself.
  181. */
  182. public OperationUpdateContract withMethod(String method) {
  183. this.method = method;
  184. return this;
  185. }
  186. /**
  187. * Get relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}.
  188. *
  189. * @return the urlTemplate value
  190. */
  191. public String urlTemplate() {
  192. return this.urlTemplate;
  193. }
  194. /**
  195. * Set relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}.
  196. *
  197. * @param urlTemplate the urlTemplate value to set
  198. * @return the OperationUpdateContract object itself.
  199. */
  200. public OperationUpdateContract withUrlTemplate(String urlTemplate) {
  201. this.urlTemplate = urlTemplate;
  202. return this;
  203. }
  204. }