30
30
public final class MongodbProfile extends com .google .api .client .json .GenericJson {
31
31
32
32
/**
33
- * Required. List of host addresses for a MongoDB cluster.
33
+ * Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list
34
+ * must contain exactly one DNS host without a port. For Standard connection format, this list
35
+ * must contain all the required hosts in the cluster with their respective ports.
34
36
* The value may be {@code null}.
35
37
*/
36
38
@ com .google .api .client .util .Key
@@ -52,7 +54,8 @@ public final class MongodbProfile extends com.google.api.client.json.GenericJson
52
54
53
55
/**
54
56
* Optional. Name of the replica set. Only needed for self hosted replica set type MongoDB
55
- * cluster.
57
+ * cluster. For SRV connection format, this field must be empty. For Standard connection format,
58
+ * this field must be specified.
56
59
* The value may be {@code null}.
57
60
*/
58
61
@ com .google .api .client .util .Key
@@ -88,15 +91,19 @@ public final class MongodbProfile extends com.google.api.client.json.GenericJson
88
91
private java .lang .String username ;
89
92
90
93
/**
91
- * Required. List of host addresses for a MongoDB cluster.
94
+ * Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list
95
+ * must contain exactly one DNS host without a port. For Standard connection format, this list
96
+ * must contain all the required hosts in the cluster with their respective ports.
92
97
* @return value or {@code null} for none
93
98
*/
94
99
public java .util .List <HostAddress > getHostAddresses () {
95
100
return hostAddresses ;
96
101
}
97
102
98
103
/**
99
- * Required. List of host addresses for a MongoDB cluster.
104
+ * Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list
105
+ * must contain exactly one DNS host without a port. For Standard connection format, this list
106
+ * must contain all the required hosts in the cluster with their respective ports.
100
107
* @param hostAddresses hostAddresses or {@code null} for none
101
108
*/
102
109
public MongodbProfile setHostAddresses (java .util .List <HostAddress > hostAddresses ) {
@@ -125,7 +132,8 @@ public MongodbProfile setPassword(java.lang.String password) {
125
132
126
133
/**
127
134
* Optional. Name of the replica set. Only needed for self hosted replica set type MongoDB
128
- * cluster.
135
+ * cluster. For SRV connection format, this field must be empty. For Standard connection format,
136
+ * this field must be specified.
129
137
* @return value or {@code null} for none
130
138
*/
131
139
public java .lang .String getReplicaSet () {
@@ -134,7 +142,8 @@ public java.lang.String getReplicaSet() {
134
142
135
143
/**
136
144
* Optional. Name of the replica set. Only needed for self hosted replica set type MongoDB
137
- * cluster.
145
+ * cluster. For SRV connection format, this field must be empty. For Standard connection format,
146
+ * this field must be specified.
138
147
* @param replicaSet replicaSet or {@code null} for none
139
148
*/
140
149
public MongodbProfile setReplicaSet (java .lang .String replicaSet ) {
0 commit comments