aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/instance/K8sConfigValueResponse.kt
blob: 823009fbb0f1b92faa5af08a907bfe75d80455c8 (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
package org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.instance

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("profile-name")
    var profileName: String? = null

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

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

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

    override fun toString(): String {
        return "$rbName:$rbVersion:$profileName:$templateName:$configName:$configVersion"
    }

    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()
    }
}