e2c1270e05c7aedd855a39a7ae07a3ec209a542a
[ccsdk/cds.git] /
1 package org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.definition.template
2
3 import com.fasterxml.jackson.annotation.JsonProperty
4
5 class K8sTemplate {
6
7     @get:JsonProperty("template-name")
8     var templateName: String? = null
9
10     @get:JsonProperty("description")
11     var description: String? = null
12
13     override fun toString(): String {
14         return "$templateName:$description"
15     }
16
17     override fun equals(other: Any?): Boolean {
18         if (this === other) return true
19         if (javaClass != other?.javaClass) return false
20         return true
21     }
22
23     override fun hashCode(): Int {
24         return javaClass.hashCode()
25     }
26 }