/clients/google-api-services-deploymentmanager/v2beta/1.26.0/com/google/api/services/deploymentmanager/model/TypeProvider.java

https://github.com/googleapis/google-api-java-client-services · Java · 340 lines · 114 code · 39 blank · 187 comment · 0 complexity · 0387da16a21448d8bb50951eba784a1e MD5 · raw file

  1. /*
  2. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  3. * in compliance with the License. You may obtain a copy of the License at
  4. *
  5. * http://www.apache.org/licenses/LICENSE-2.0
  6. *
  7. * Unless required by applicable law or agreed to in writing, software distributed under the License
  8. * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  9. * or implied. See the License for the specific language governing permissions and limitations under
  10. * the License.
  11. */
  12. /*
  13. * This code was generated by https://github.com/googleapis/google-api-java-client-services/
  14. * Modify at your own risk.
  15. */
  16. package com.google.api.services.deploymentmanager.model;
  17. /**
  18. * A type provider that describes a service-backed Type.
  19. *
  20. * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
  21. * transmitted over HTTP when working with the Google Cloud Deployment Manager API V2Beta Methods.
  22. * For a detailed explanation see:
  23. * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
  24. * </p>
  25. *
  26. * @author Google, Inc.
  27. */
  28. @SuppressWarnings("javadoc")
  29. public final class TypeProvider extends com.google.api.client.json.GenericJson {
  30. /**
  31. * Allows resource handling overrides for specific collections
  32. * The value may be {@code null}.
  33. */
  34. @com.google.api.client.util.Key
  35. private java.util.List<CollectionOverride> collectionOverrides;
  36. static {
  37. // hack to force ProGuard to consider CollectionOverride used, since otherwise it would be stripped out
  38. // see https://github.com/google/google-api-java-client/issues/543
  39. com.google.api.client.util.Data.nullOf(CollectionOverride.class);
  40. }
  41. /**
  42. * Credential used when interacting with this type.
  43. * The value may be {@code null}.
  44. */
  45. @com.google.api.client.util.Key
  46. private Credential credential;
  47. /**
  48. * An optional textual description of the resource; provided by the client when the resource is
  49. * created.
  50. * The value may be {@code null}.
  51. */
  52. @com.google.api.client.util.Key
  53. private java.lang.String description;
  54. /**
  55. * Descriptor Url for the this type provider.
  56. * The value may be {@code null}.
  57. */
  58. @com.google.api.client.util.Key
  59. private java.lang.String descriptorUrl;
  60. /**
  61. * Output only. Unique identifier for the resource defined by the server.
  62. * The value may be {@code null}.
  63. */
  64. @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  65. private java.math.BigInteger id;
  66. /**
  67. * Output only. Creation timestamp in RFC3339 text format.
  68. * The value may be {@code null}.
  69. */
  70. @com.google.api.client.util.Key
  71. private java.lang.String insertTime;
  72. /**
  73. * Map of labels; provided by the client when the resource is created or updated. Specifically:
  74. * Label keys must be between 1 and 63 characters long and must conform to the following regular
  75. * expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long
  76. * and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
  77. * The value may be {@code null}.
  78. */
  79. @com.google.api.client.util.Key
  80. private java.util.List<TypeProviderLabelEntry> labels;
  81. /**
  82. * Name of the resource; provided by the client when the resource is created. The name must be
  83. * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters
  84. * long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
  85. * character must be a lowercase letter, and all following characters must be a dash, lowercase
  86. * letter, or digit, except the last character, which cannot be a dash.
  87. * The value may be {@code null}.
  88. */
  89. @com.google.api.client.util.Key
  90. private java.lang.String name;
  91. /**
  92. * Output only. The Operation that most recently ran, or is currently running, on this type
  93. * provider.
  94. * The value may be {@code null}.
  95. */
  96. @com.google.api.client.util.Key
  97. private Operation operation;
  98. /**
  99. * Options to apply when handling any resources in this service.
  100. * The value may be {@code null}.
  101. */
  102. @com.google.api.client.util.Key
  103. private Options options;
  104. /**
  105. * Output only. Self link for the type provider.
  106. * The value may be {@code null}.
  107. */
  108. @com.google.api.client.util.Key
  109. private java.lang.String selfLink;
  110. /**
  111. * Allows resource handling overrides for specific collections
  112. * @return value or {@code null} for none
  113. */
  114. public java.util.List<CollectionOverride> getCollectionOverrides() {
  115. return collectionOverrides;
  116. }
  117. /**
  118. * Allows resource handling overrides for specific collections
  119. * @param collectionOverrides collectionOverrides or {@code null} for none
  120. */
  121. public TypeProvider setCollectionOverrides(java.util.List<CollectionOverride> collectionOverrides) {
  122. this.collectionOverrides = collectionOverrides;
  123. return this;
  124. }
  125. /**
  126. * Credential used when interacting with this type.
  127. * @return value or {@code null} for none
  128. */
  129. public Credential getCredential() {
  130. return credential;
  131. }
  132. /**
  133. * Credential used when interacting with this type.
  134. * @param credential credential or {@code null} for none
  135. */
  136. public TypeProvider setCredential(Credential credential) {
  137. this.credential = credential;
  138. return this;
  139. }
  140. /**
  141. * An optional textual description of the resource; provided by the client when the resource is
  142. * created.
  143. * @return value or {@code null} for none
  144. */
  145. public java.lang.String getDescription() {
  146. return description;
  147. }
  148. /**
  149. * An optional textual description of the resource; provided by the client when the resource is
  150. * created.
  151. * @param description description or {@code null} for none
  152. */
  153. public TypeProvider setDescription(java.lang.String description) {
  154. this.description = description;
  155. return this;
  156. }
  157. /**
  158. * Descriptor Url for the this type provider.
  159. * @return value or {@code null} for none
  160. */
  161. public java.lang.String getDescriptorUrl() {
  162. return descriptorUrl;
  163. }
  164. /**
  165. * Descriptor Url for the this type provider.
  166. * @param descriptorUrl descriptorUrl or {@code null} for none
  167. */
  168. public TypeProvider setDescriptorUrl(java.lang.String descriptorUrl) {
  169. this.descriptorUrl = descriptorUrl;
  170. return this;
  171. }
  172. /**
  173. * Output only. Unique identifier for the resource defined by the server.
  174. * @return value or {@code null} for none
  175. */
  176. public java.math.BigInteger getId() {
  177. return id;
  178. }
  179. /**
  180. * Output only. Unique identifier for the resource defined by the server.
  181. * @param id id or {@code null} for none
  182. */
  183. public TypeProvider setId(java.math.BigInteger id) {
  184. this.id = id;
  185. return this;
  186. }
  187. /**
  188. * Output only. Creation timestamp in RFC3339 text format.
  189. * @return value or {@code null} for none
  190. */
  191. public java.lang.String getInsertTime() {
  192. return insertTime;
  193. }
  194. /**
  195. * Output only. Creation timestamp in RFC3339 text format.
  196. * @param insertTime insertTime or {@code null} for none
  197. */
  198. public TypeProvider setInsertTime(java.lang.String insertTime) {
  199. this.insertTime = insertTime;
  200. return this;
  201. }
  202. /**
  203. * Map of labels; provided by the client when the resource is created or updated. Specifically:
  204. * Label keys must be between 1 and 63 characters long and must conform to the following regular
  205. * expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long
  206. * and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
  207. * @return value or {@code null} for none
  208. */
  209. public java.util.List<TypeProviderLabelEntry> getLabels() {
  210. return labels;
  211. }
  212. /**
  213. * Map of labels; provided by the client when the resource is created or updated. Specifically:
  214. * Label keys must be between 1 and 63 characters long and must conform to the following regular
  215. * expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long
  216. * and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
  217. * @param labels labels or {@code null} for none
  218. */
  219. public TypeProvider setLabels(java.util.List<TypeProviderLabelEntry> labels) {
  220. this.labels = labels;
  221. return this;
  222. }
  223. /**
  224. * Name of the resource; provided by the client when the resource is created. The name must be
  225. * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters
  226. * long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
  227. * character must be a lowercase letter, and all following characters must be a dash, lowercase
  228. * letter, or digit, except the last character, which cannot be a dash.
  229. * @return value or {@code null} for none
  230. */
  231. public java.lang.String getName() {
  232. return name;
  233. }
  234. /**
  235. * Name of the resource; provided by the client when the resource is created. The name must be
  236. * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters
  237. * long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
  238. * character must be a lowercase letter, and all following characters must be a dash, lowercase
  239. * letter, or digit, except the last character, which cannot be a dash.
  240. * @param name name or {@code null} for none
  241. */
  242. public TypeProvider setName(java.lang.String name) {
  243. this.name = name;
  244. return this;
  245. }
  246. /**
  247. * Output only. The Operation that most recently ran, or is currently running, on this type
  248. * provider.
  249. * @return value or {@code null} for none
  250. */
  251. public Operation getOperation() {
  252. return operation;
  253. }
  254. /**
  255. * Output only. The Operation that most recently ran, or is currently running, on this type
  256. * provider.
  257. * @param operation operation or {@code null} for none
  258. */
  259. public TypeProvider setOperation(Operation operation) {
  260. this.operation = operation;
  261. return this;
  262. }
  263. /**
  264. * Options to apply when handling any resources in this service.
  265. * @return value or {@code null} for none
  266. */
  267. public Options getOptions() {
  268. return options;
  269. }
  270. /**
  271. * Options to apply when handling any resources in this service.
  272. * @param options options or {@code null} for none
  273. */
  274. public TypeProvider setOptions(Options options) {
  275. this.options = options;
  276. return this;
  277. }
  278. /**
  279. * Output only. Self link for the type provider.
  280. * @return value or {@code null} for none
  281. */
  282. public java.lang.String getSelfLink() {
  283. return selfLink;
  284. }
  285. /**
  286. * Output only. Self link for the type provider.
  287. * @param selfLink selfLink or {@code null} for none
  288. */
  289. public TypeProvider setSelfLink(java.lang.String selfLink) {
  290. this.selfLink = selfLink;
  291. return this;
  292. }
  293. @Override
  294. public TypeProvider set(String fieldName, Object value) {
  295. return (TypeProvider) super.set(fieldName, value);
  296. }
  297. @Override
  298. public TypeProvider clone() {
  299. return (TypeProvider) super.clone();
  300. }
  301. }