cefe3e605d41ce9a9285fa2227096ac2f73b5a94
[ccsdk/cds.git] /
1 package org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.instance
2
3 import com.fasterxml.jackson.annotation.JsonAlias
4 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
5 import com.fasterxml.jackson.annotation.JsonProperty
6
7 @JsonIgnoreProperties(ignoreUnknown = true)
8 class K8sConfigValueResponse {
9     @get:JsonProperty("rb-name")
10     var rbName: String? = null
11
12     @get:JsonProperty("rb-version")
13     var rbVersion: String? = null
14
15     @get:JsonProperty("instance-id")
16     var instanceId: String? = null
17
18     @get:JsonProperty("profile-name")
19     var profileName: String? = null
20
21     @get:JsonProperty("description")
22     var description: String? = null
23
24     @get:JsonProperty("template-name")
25     var templateName: String? = null
26
27     @get:JsonProperty("config-name")
28     var configName: String? = null
29
30     @get:JsonProperty("config-version")
31     @get:JsonAlias("config-verion")
32     var configVersion: Integer? = null
33
34     @get:JsonProperty("values")
35     var values: Map<String, Object>? = null
36
37     override fun toString(): String {
38         return "$templateName:$configName"
39     }
40
41     override fun equals(other: Any?): Boolean {
42         if (this === other) return true
43         if (javaClass != other?.javaClass) return false
44         return true
45     }
46
47     override fun hashCode(): Int {
48         return javaClass.hashCode()
49     }
50 }