7ff18ade611dc05f27a7e762ccd8d79ff22178af
[ccsdk/cds.git] /
1 package org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.instance
2
3 import com.fasterxml.jackson.annotation.JsonProperty
4
5 class K8sTopic {
6
7     @get:JsonProperty("name")
8     var name: String? = null
9
10     @get:JsonProperty("cluster")
11     var cluster: String? = null
12
13     @get:JsonProperty("partitions")
14     var partitions: Number? = null
15
16     @get:JsonProperty("replicas")
17     var replicas: Number? = null
18
19     override fun toString(): String {
20         return "$name:$cluster:$partitions:$replicas"
21     }
22
23     override fun equals(other: Any?): Boolean {
24         if (this === other) return true
25         if (javaClass != other?.javaClass) return false
26         return true
27     }
28
29     override fun hashCode(): Int {
30         return javaClass.hashCode()
31     }
32 }