|
1 | 1 | /* |
2 | | - * #%L |
3 | | - * artifact-manager |
4 | | - * %% |
5 | | - * Copyright (C) 2023 VMware |
6 | | - * %% |
7 | | - * Build Tools for VMware Aria |
8 | | - * Copyright 2023 VMware, Inc. |
| 2 | + * #%L artifact-manager %% Copyright (C) 2023 VMware %% Build Tools for VMware Aria Copyright 2023 |
| 3 | + * VMware, Inc. |
9 | 4 | * |
10 | | - * This product is licensed to you under the BSD-2 license (the "License"). You may not use this product except in compliance with the BSD-2 License. |
| 5 | + * This product is licensed to you under the BSD-2 license (the "License"). You may not use this |
| 6 | + * product except in compliance with the BSD-2 License. |
11 | 7 | * |
12 | | - * This product may include a number of subcomponents with separate copyright notices and license terms. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license, as noted in the LICENSE file. |
13 | | - * #L% |
| 8 | + * This product may include a number of subcomponents with separate copyright notices and license |
| 9 | + * terms. Your use of these subcomponents is subject to the terms and conditions of the |
| 10 | + * subcomponent's license, as noted in the LICENSE file. #L% |
14 | 11 | */ |
15 | 12 | package com.vmware.pscoe.iac.artifact.aria.operations.models; |
16 | 13 |
|
| 14 | +import java.util.LinkedHashMap; |
| 15 | +import java.util.Map; |
| 16 | +import com.fasterxml.jackson.annotation.JsonAnyGetter; |
| 17 | +import com.fasterxml.jackson.annotation.JsonAnySetter; |
| 18 | +import com.fasterxml.jackson.annotation.JsonIgnore; |
| 19 | +import com.fasterxml.jackson.annotation.JsonInclude; |
17 | 20 | import com.fasterxml.jackson.annotation.JsonProperty; |
18 | 21 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
19 | 22 |
|
20 | | -@JsonPropertyOrder({ "name" }) |
21 | | -public class CustomGroupTypeDTO { |
| 23 | +/** |
| 24 | + * Represents a Data Transfer Object (DTO) for a custom group type in VMware Aria Operations. This |
| 25 | + * class is used for serializing and de-serializing JSON data related to custom group types. |
| 26 | + */ |
| 27 | +@JsonPropertyOrder({"name", "key"}) |
| 28 | +@JsonInclude(JsonInclude.Include.NON_NULL) |
| 29 | +public final class CustomGroupTypeDTO { |
| 30 | + |
| 31 | + /** |
| 32 | + * The name of the custom group type. |
| 33 | + */ |
| 34 | + @JsonProperty("name") |
| 35 | + private String name; |
| 36 | + |
| 37 | + /** |
| 38 | + * The unique key of the custom group type. |
| 39 | + */ |
| 40 | + @JsonProperty("key") |
| 41 | + private String key; |
| 42 | + |
| 43 | + /** |
| 44 | + * A map to hold additional properties that are not explicitly defined in this class. |
| 45 | + */ |
| 46 | + @JsonIgnore |
| 47 | + private Map<String, Object> additionalProperties = new LinkedHashMap<>(); |
| 48 | + |
| 49 | + /** |
| 50 | + * Gets the name of the custom group type. |
| 51 | + * |
| 52 | + * @return the name of the custom group type. |
| 53 | + */ |
| 54 | + @JsonProperty("name") |
| 55 | + public String getName() { |
| 56 | + return name; |
| 57 | + } |
| 58 | + |
| 59 | + /** |
| 60 | + * Sets the name of the custom group type. |
| 61 | + * |
| 62 | + * @param name the name to set. |
| 63 | + */ |
| 64 | + @JsonProperty("name") |
| 65 | + public void setName(String name) { |
| 66 | + this.name = name; |
| 67 | + } |
| 68 | + |
| 69 | + /** |
| 70 | + * Gets the unique key of the custom group type. |
| 71 | + * |
| 72 | + * @return the key of the custom group type. |
| 73 | + */ |
| 74 | + @JsonProperty("key") |
| 75 | + public String getKey() { |
| 76 | + return key; |
| 77 | + } |
22 | 78 |
|
23 | | - @JsonProperty("name") |
24 | | - private String name; |
| 79 | + /** |
| 80 | + * Sets the unique key of the custom group type. |
| 81 | + * |
| 82 | + * @param key the key to set. |
| 83 | + */ |
| 84 | + @JsonProperty("key") |
| 85 | + public void setKey(String key) { |
| 86 | + this.key = key; |
| 87 | + } |
25 | 88 |
|
26 | | - @JsonProperty("name") |
27 | | - public String getName() { |
28 | | - return name; |
29 | | - } |
| 89 | + /** |
| 90 | + * Gets the additional properties that are not explicitly defined in this class. |
| 91 | + * |
| 92 | + * @return a map of additional properties. |
| 93 | + */ |
| 94 | + @JsonAnyGetter |
| 95 | + public Map<String, Object> getAdditionalProperties() { |
| 96 | + return this.additionalProperties; |
| 97 | + } |
30 | 98 |
|
31 | | - @JsonProperty("name") |
32 | | - public void setName(String name) { |
33 | | - this.name = name; |
34 | | - } |
| 99 | + /** |
| 100 | + * Sets an additional property that is not explicitly defined in this class. |
| 101 | + * |
| 102 | + * @param name the name of the additional property. |
| 103 | + * @param value the value of the additional property. |
| 104 | + */ |
| 105 | + @JsonAnySetter |
| 106 | + public void setAdditionalProperty(String name, Object value) { |
| 107 | + this.additionalProperties.put(name, value); |
| 108 | + } |
35 | 109 | } |
0 commit comments