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