-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathNsxtConfiguration.java
377 lines (336 loc) · 15.4 KB
/
NsxtConfiguration.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
/*
* Copyright 2021 VMware, Inc.
* SPDX-License-Identifier: Apache License 2.0
*/
package com.vmware.avi.sdk.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* The NsxtConfiguration is a POJO class extends AviRestResource that used for creating
* NsxtConfiguration.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class NsxtConfiguration {
@JsonProperty("automate_dfw_objects")
private Boolean automateDfwObjects = false;
@JsonProperty("automate_dfw_rules")
private Boolean automateDfwRules = false;
@JsonProperty("data_network_config")
private DataNetworkConfig dataNetworkConfig;
@JsonProperty("domain_id")
private String domainId = "default";
@JsonProperty("enforcementpoint_id")
private String enforcementpointId = "default";
@JsonProperty("management_network_config")
private ManagementNetworkConfig managementNetworkConfig;
@JsonProperty("nsxt_credentials_ref")
private String nsxtCredentialsRef;
@JsonProperty("nsxt_url")
private String nsxtUrl;
@JsonProperty("site_id")
private String siteId = "default";
@JsonProperty("vmc_mode")
private Boolean vmcMode = false;
@JsonProperty("vpc_mode")
private Boolean vpcMode;
/**
* This is the getter method this will return the attribute value.
* Automatically create/delete dfw objects such as nsgroups and nsservices in nsx-t manager.
* Field introduced in 30.2.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @return automateDfwObjects
*/
public Boolean getAutomateDfwObjects() {
return automateDfwObjects;
}
/**
* This is the setter method to the attribute.
* Automatically create/delete dfw objects such as nsgroups and nsservices in nsx-t manager.
* Field introduced in 30.2.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @param automateDfwObjects set the automateDfwObjects.
*/
public void setAutomateDfwObjects(Boolean automateDfwObjects) {
this.automateDfwObjects = automateDfwObjects;
}
/**
* This is the getter method this will return the attribute value.
* Automatically create dfw rules for virtualservice in nsx-t manager.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, basic edition(allowed values- false), essentials, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @return automateDfwRules
*/
public Boolean getAutomateDfwRules() {
return automateDfwRules;
}
/**
* This is the setter method to the attribute.
* Automatically create dfw rules for virtualservice in nsx-t manager.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, basic edition(allowed values- false), essentials, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @param automateDfwRules set the automateDfwRules.
*/
public void setAutomateDfwRules(Boolean automateDfwRules) {
this.automateDfwRules = automateDfwRules;
}
/**
* This is the getter method this will return the attribute value.
* Data network configuration for avi service engines.
* Field introduced in 20.1.5.
* Allowed in enterprise edition with any value, basic edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return dataNetworkConfig
*/
public DataNetworkConfig getDataNetworkConfig() {
return dataNetworkConfig;
}
/**
* This is the setter method to the attribute.
* Data network configuration for avi service engines.
* Field introduced in 20.1.5.
* Allowed in enterprise edition with any value, basic edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param dataNetworkConfig set the dataNetworkConfig.
*/
public void setDataNetworkConfig(DataNetworkConfig dataNetworkConfig) {
this.dataNetworkConfig = dataNetworkConfig;
}
/**
* This is the getter method this will return the attribute value.
* Domain where nsgroup objects belongs to.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as "default".
* @return domainId
*/
public String getDomainId() {
return domainId;
}
/**
* This is the setter method to the attribute.
* Domain where nsgroup objects belongs to.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as "default".
* @param domainId set the domainId.
*/
public void setDomainId(String domainId) {
this.domainId = domainId;
}
/**
* This is the getter method this will return the attribute value.
* Enforcement point is where the rules of a policy to apply.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as "default".
* @return enforcementpointId
*/
public String getEnforcementpointId() {
return enforcementpointId;
}
/**
* This is the setter method to the attribute.
* Enforcement point is where the rules of a policy to apply.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as "default".
* @param enforcementpointId set the enforcementpointId.
*/
public void setEnforcementpointId(String enforcementpointId) {
this.enforcementpointId = enforcementpointId;
}
/**
* This is the getter method this will return the attribute value.
* Management network configuration for avi service engines.
* Field introduced in 20.1.5.
* Allowed in enterprise edition with any value, basic edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return managementNetworkConfig
*/
public ManagementNetworkConfig getManagementNetworkConfig() {
return managementNetworkConfig;
}
/**
* This is the setter method to the attribute.
* Management network configuration for avi service engines.
* Field introduced in 20.1.5.
* Allowed in enterprise edition with any value, basic edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param managementNetworkConfig set the managementNetworkConfig.
*/
public void setManagementNetworkConfig(ManagementNetworkConfig managementNetworkConfig) {
this.managementNetworkConfig = managementNetworkConfig;
}
/**
* This is the getter method this will return the attribute value.
* Credentials to access nsx-t manager.
* It is a reference to an object of type cloudconnectoruser.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return nsxtCredentialsRef
*/
public String getNsxtCredentialsRef() {
return nsxtCredentialsRef;
}
/**
* This is the setter method to the attribute.
* Credentials to access nsx-t manager.
* It is a reference to an object of type cloudconnectoruser.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param nsxtCredentialsRef set the nsxtCredentialsRef.
*/
public void setNsxtCredentialsRef(String nsxtCredentialsRef) {
this.nsxtCredentialsRef = nsxtCredentialsRef;
}
/**
* This is the getter method this will return the attribute value.
* Nsx-t manager hostname or ip address.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return nsxtUrl
*/
public String getNsxtUrl() {
return nsxtUrl;
}
/**
* This is the setter method to the attribute.
* Nsx-t manager hostname or ip address.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param nsxtUrl set the nsxtUrl.
*/
public void setNsxtUrl(String nsxtUrl) {
this.nsxtUrl = nsxtUrl;
}
/**
* This is the getter method this will return the attribute value.
* Site where transport zone belongs to.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as "default".
* @return siteId
*/
public String getSiteId() {
return siteId;
}
/**
* This is the setter method to the attribute.
* Site where transport zone belongs to.
* Field introduced in 20.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as "default".
* @param siteId set the siteId.
*/
public void setSiteId(String siteId) {
this.siteId = siteId;
}
/**
* This is the getter method this will return the attribute value.
* Vmc mode.
* Field introduced in 30.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @return vmcMode
*/
public Boolean getVmcMode() {
return vmcMode;
}
/**
* This is the setter method to the attribute.
* Vmc mode.
* Field introduced in 30.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @param vmcMode set the vmcMode.
*/
public void setVmcMode(Boolean vmcMode) {
this.vmcMode = vmcMode;
}
/**
* This is the getter method this will return the attribute value.
* Vpc mode.
* Field introduced in 30.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return vpcMode
*/
public Boolean getVpcMode() {
return vpcMode;
}
/**
* This is the setter method to the attribute.
* Vpc mode.
* Field introduced in 30.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param vpcMode set the vpcMode.
*/
public void setVpcMode(Boolean vpcMode) {
this.vpcMode = vpcMode;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NsxtConfiguration objNsxtConfiguration = (NsxtConfiguration) o;
return Objects.equals(this.nsxtUrl, objNsxtConfiguration.nsxtUrl)&&
Objects.equals(this.nsxtCredentialsRef, objNsxtConfiguration.nsxtCredentialsRef)&&
Objects.equals(this.siteId, objNsxtConfiguration.siteId)&&
Objects.equals(this.enforcementpointId, objNsxtConfiguration.enforcementpointId)&&
Objects.equals(this.domainId, objNsxtConfiguration.domainId)&&
Objects.equals(this.automateDfwRules, objNsxtConfiguration.automateDfwRules)&&
Objects.equals(this.managementNetworkConfig, objNsxtConfiguration.managementNetworkConfig)&&
Objects.equals(this.dataNetworkConfig, objNsxtConfiguration.dataNetworkConfig)&&
Objects.equals(this.vpcMode, objNsxtConfiguration.vpcMode)&&
Objects.equals(this.vmcMode, objNsxtConfiguration.vmcMode)&&
Objects.equals(this.automateDfwObjects, objNsxtConfiguration.automateDfwObjects);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NsxtConfiguration {\n");
sb.append(" automateDfwObjects: ").append(toIndentedString(automateDfwObjects)).append("\n");
sb.append(" automateDfwRules: ").append(toIndentedString(automateDfwRules)).append("\n");
sb.append(" dataNetworkConfig: ").append(toIndentedString(dataNetworkConfig)).append("\n");
sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n");
sb.append(" enforcementpointId: ").append(toIndentedString(enforcementpointId)).append("\n");
sb.append(" managementNetworkConfig: ").append(toIndentedString(managementNetworkConfig)).append("\n");
sb.append(" nsxtCredentialsRef: ").append(toIndentedString(nsxtCredentialsRef)).append("\n");
sb.append(" nsxtUrl: ").append(toIndentedString(nsxtUrl)).append("\n");
sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n");
sb.append(" vmcMode: ").append(toIndentedString(vmcMode)).append("\n");
sb.append(" vpcMode: ").append(toIndentedString(vpcMode)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}