aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/instance/K8sConfigValueResponse.kt
blob: 0106b81a420b0233a385a2788f672505ad189da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.instance

import com.fasterxml.jackson.annotation.JsonAlias
import com.fasterxml.jackson.annotation.JsonProperty

class K8sConfigValueResponse {
    @get:JsonProperty("rb-name")
    var rbName: String? = null

    @get:JsonProperty("rb-version")
    var rbVersion: String? = null

    @get:JsonProperty("instance-id")
    var instanceId: String? = null

    @get:JsonProperty("profile-name")
    var profileName: String? = null

    @get:JsonProperty("description")
    var description: String? = null

    @get:JsonProperty("template-name")
    var templateName: String? = null

    @get:JsonProperty("config-name")
    var configName: String? = null

    @get:JsonProperty("config-version")
    @get:JsonAlias("config-verion")
    var configVersion: Integer? = null

    @get:JsonProperty("values")
    var values: Map<String, Object>? = null

    override fun toString(): String {
        return "$templateName:$configName"
    }

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false
        return true
    }

    override fun hashCode(): Int {
        return javaClass.hashCode()
    }
}