1
1
package com .openshift .cloud .v1alpha .models ;
2
2
3
3
import io .sundr .builder .annotations .Buildable ;
4
+ import java .util .HashMap ;
4
5
import java .util .List ;
6
+ import java .util .Map ;
5
7
6
8
@ Buildable
7
9
public class KafkaConnectionStatus {
8
-
9
- private static final String UI_REF_TEMPLATE =
10
- "https://cloud.redhat.com/beta/application-services/openshift-streams/kafkas/%s" ;
11
-
12
10
private String message ;
13
11
private String updated ;
14
12
private String bootstrapServerHost ;
15
13
private String serviceAccountSecretName ;
16
- private String saslMechanism ;
17
- private String securityProtocol ;
18
- private String uiRef ;
19
14
private List <KafkaCondition > conditions ;
15
+ private Map <String , String > metadata ;
20
16
21
17
/** No args constructor for use in serialization */
22
18
public KafkaConnectionStatus () {}
23
19
24
20
/**
25
21
* @param serviceAccountSecretName
26
22
* @param message
27
- * @param boostrapServer
23
+ * @param bootstrapServerHost
28
24
* @param updated
29
25
*/
30
26
public KafkaConnectionStatus (
@@ -34,8 +30,7 @@ public KafkaConnectionStatus(
34
30
this .updated = updated ;
35
31
this .bootstrapServerHost = bootstrapServerHost ;
36
32
this .serviceAccountSecretName = serviceAccountSecretName ;
37
- this .saslMechanism = "PLAINTEXT" ;
38
- this .securityProtocol = "SASL_SSL" ;
33
+ this .metadata = new HashMap <String , String >();
39
34
}
40
35
41
36
public String getMessage () {
@@ -62,22 +57,6 @@ public void setServiceAccountSecretName(String serviceAccountSecretName) {
62
57
this .serviceAccountSecretName = serviceAccountSecretName ;
63
58
}
64
59
65
- public String getSecurityProtocol () {
66
- return securityProtocol ;
67
- }
68
-
69
- public void setSecurityProtocol (String securityProtocol ) {
70
- this .securityProtocol = securityProtocol ;
71
- }
72
-
73
- public String getSaslMechanism () {
74
- return saslMechanism ;
75
- }
76
-
77
- public void setSaslMechanism (String saslMechanism ) {
78
- this .saslMechanism = saslMechanism ;
79
- }
80
-
81
60
public List <KafkaCondition > getConditions () {
82
61
return conditions ;
83
62
}
@@ -94,23 +73,11 @@ public void setBootstrapServerHost(String bootstrapServerHost) {
94
73
this .bootstrapServerHost = bootstrapServerHost ;
95
74
}
96
75
97
- public String getUiRef () {
98
- return uiRef ;
76
+ public Map < String , String > getMetadata () {
77
+ return metadata ;
99
78
}
100
79
101
- public void setUiRef (String uiRef ) {
102
- this .uiRef = uiRef ;
103
- }
104
-
105
- /**
106
- * Set the UI ref with a templated using a kafka ID
107
- *
108
- * <p>The template is
109
- * "https://cloud.redhat.com/beta/application-services/openshift-streams/kafkas/%s"
110
- *
111
- * @param kafkaId the value to replace
112
- */
113
- public void setUiRefForKafkaId (String kafkaId ) {
114
- this .uiRef = String .format (UI_REF_TEMPLATE , kafkaId );
80
+ public void setMetadata (Map <String , String > metadata ) {
81
+ this .metadata = metadata ;
115
82
}
116
83
}
0 commit comments