1
2 package org.miloss.fgsms.services.interfaces.policyconfiguration;
3
4 import java.io.Serializable;
5 import javax.xml.bind.annotation.XmlAccessType;
6 import javax.xml.bind.annotation.XmlAccessorType;
7 import javax.xml.bind.annotation.XmlElement;
8 import javax.xml.bind.annotation.XmlRootElement;
9 import javax.xml.bind.annotation.XmlSeeAlso;
10 import javax.xml.bind.annotation.XmlType;
11 import javax.xml.datatype.Duration;
12 import org.miloss.fgsms.services.interfaces.common.NameValuePairSet;
13 import org.miloss.fgsms.services.interfaces.common.PolicyType;
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 @XmlAccessorType(XmlAccessType.FIELD)
56 @XmlType(name = "ServicePolicy", propOrder = {
57 "bucketCategory",
58 "description",
59 "poc",
60 "externalURL",
61 "machineName",
62 "domainName",
63 "parentObject",
64 "dataTTL",
65 "policyRefreshRate",
66 "federationPolicyCollection",
67 "policyType",
68 "agentsEnabled",
69 "location",
70 "serviceLevelAggrements",
71 "url",
72 "displayName",
73 "settings"
74 })
75 @XmlRootElement
76 @XmlSeeAlso({TransactionalWebServicePolicy.class, StatusServicePolicy.class, StatisticalServicePolicy.class,
77 ProcessPolicy.class, MachinePolicy.class
78 })
79 public class ServicePolicy
80 implements Serializable
81 {
82
83 private final static long serialVersionUID = 1L;
84 @XmlElement(name = "BucketCategory", required = false, nillable = true)
85 protected String bucketCategory;
86 @XmlElement(name = "Description", required = false, nillable = true)
87 protected String description;
88 @XmlElement(name = "POC", required = true, nillable = true)
89 protected String poc;
90 @XmlElement(name = "ExternalURL", required = false, nillable = true)
91 protected String externalURL;
92 @XmlElement(name = "MachineName", required = true, defaultValue = "UNSPECIFIED", nillable = true)
93 protected String machineName;
94 @XmlElement(name = "DomainName", required = true, defaultValue = "UNSPECIFIED", nillable = true)
95 protected String domainName;
96 @XmlElement(name = "ParentObject", required = false, nillable = true)
97 protected String parentObject;
98 @XmlElement(name = "DataTTL" , required = false,nillable = true)
99 protected Duration dataTTL;
100 @XmlElement(name = "PolicyRefreshRate", required = false,nillable = true)
101 protected Duration policyRefreshRate;
102 @XmlElement(name = "FederationPolicyCollection", required = false, nillable = true)
103 protected FederationPolicyCollection federationPolicyCollection;
104 @XmlElement(name = "PolicyType", required = true, defaultValue = "Transactional")
105 protected PolicyType policyType;
106 @XmlElement(name = "AgentsEnabled")
107 protected boolean agentsEnabled;
108 @XmlElement(name = "Location", required = false, nillable = true)
109 protected GeoTag location;
110 @XmlElement(name = "ServiceLevelAggrements", required = false, nillable = true)
111 protected ArrayOfSLA serviceLevelAggrements;
112 @XmlElement(name = "URL", required = true)
113 protected String url;
114 @XmlElement(required = true, nillable = true)
115 protected String displayName;
116 protected NameValuePairSet settings;
117
118
119
120
121
122
123
124
125
126 public String getBucketCategory() {
127 return bucketCategory;
128 }
129
130
131
132
133
134
135
136
137
138 public void setBucketCategory(String value) {
139 this.bucketCategory = value;
140 }
141
142 public boolean isSetBucketCategory() {
143 return (this.bucketCategory!= null);
144 }
145
146
147
148
149
150
151
152
153
154 public String getDescription() {
155 return description;
156 }
157
158
159
160
161
162
163
164
165
166 public void setDescription(String value) {
167 this.description = value;
168 }
169
170 public boolean isSetDescription() {
171 return (this.description!= null);
172 }
173
174
175
176
177
178
179
180
181
182 public String getPOC() {
183 return poc;
184 }
185
186
187
188
189
190
191
192
193
194 public void setPOC(String value) {
195 this.poc = value;
196 }
197
198 public boolean isSetPOC() {
199 return (this.poc!= null);
200 }
201
202
203
204
205
206
207
208
209
210 public String getExternalURL() {
211 return externalURL;
212 }
213
214
215
216
217
218
219
220
221
222 public void setExternalURL(String value) {
223 this.externalURL = value;
224 }
225
226 public boolean isSetExternalURL() {
227 return (this.externalURL!= null);
228 }
229
230
231
232
233
234
235
236
237
238 public String getMachineName() {
239 return machineName;
240 }
241
242
243
244
245
246
247
248
249
250 public void setMachineName(String value) {
251 this.machineName = value;
252 }
253
254 public boolean isSetMachineName() {
255 return (this.machineName!= null);
256 }
257
258
259
260
261
262
263
264
265
266 public String getDomainName() {
267 return domainName;
268 }
269
270
271
272
273
274
275
276
277
278 public void setDomainName(String value) {
279 this.domainName = value;
280 }
281
282 public boolean isSetDomainName() {
283 return (this.domainName!= null);
284 }
285
286
287
288
289
290
291
292
293
294 public String getParentObject() {
295 return parentObject;
296 }
297
298
299
300
301
302
303
304
305
306 public void setParentObject(String value) {
307 this.parentObject = value;
308 }
309
310 public boolean isSetParentObject() {
311 return (this.parentObject!= null);
312 }
313
314
315
316
317
318
319
320
321
322 public Duration getDataTTL() {
323 return dataTTL;
324 }
325
326
327
328
329
330
331
332
333
334 public void setDataTTL(Duration value) {
335 this.dataTTL = value;
336 }
337
338 public boolean isSetDataTTL() {
339 return (this.dataTTL!= null);
340 }
341
342
343
344
345
346
347
348
349
350 public Duration getPolicyRefreshRate() {
351 return policyRefreshRate;
352 }
353
354
355
356
357
358
359
360
361
362 public void setPolicyRefreshRate(Duration value) {
363 this.policyRefreshRate = value;
364 }
365
366 public boolean isSetPolicyRefreshRate() {
367 return (this.policyRefreshRate!= null);
368 }
369
370
371
372
373
374
375
376
377
378 public FederationPolicyCollection getFederationPolicyCollection() {
379 return federationPolicyCollection;
380 }
381
382
383
384
385
386
387
388
389
390 public void setFederationPolicyCollection(FederationPolicyCollection value) {
391 this.federationPolicyCollection = value;
392 }
393
394 public boolean isSetFederationPolicyCollection() {
395 return (this.federationPolicyCollection!= null);
396 }
397
398
399
400
401
402
403
404
405
406 public PolicyType getPolicyType() {
407 return policyType;
408 }
409
410
411
412
413
414
415
416
417
418 public void setPolicyType(PolicyType value) {
419 this.policyType = value;
420 }
421
422 public boolean isSetPolicyType() {
423 return (this.policyType!= null);
424 }
425
426
427
428
429
430 public boolean isAgentsEnabled() {
431 return agentsEnabled;
432 }
433
434
435
436
437
438 public void setAgentsEnabled(boolean value) {
439 this.agentsEnabled = value;
440 }
441
442 public boolean isSetAgentsEnabled() {
443 return true;
444 }
445
446
447
448
449
450
451
452
453
454 public GeoTag getLocation() {
455 return location;
456 }
457
458
459
460
461
462
463
464
465
466 public void setLocation(GeoTag value) {
467 this.location = value;
468 }
469
470 public boolean isSetLocation() {
471 return (this.location!= null);
472 }
473
474
475
476
477
478
479
480
481
482 public ArrayOfSLA getServiceLevelAggrements() {
483 return serviceLevelAggrements;
484 }
485
486
487
488
489
490
491
492
493
494 public void setServiceLevelAggrements(ArrayOfSLA value) {
495 this.serviceLevelAggrements = value;
496 }
497
498 public boolean isSetServiceLevelAggrements() {
499 return (this.serviceLevelAggrements!= null);
500 }
501
502
503
504
505
506
507
508
509
510 public String getURL() {
511 return url;
512 }
513
514
515
516
517
518
519
520
521
522 public void setURL(String value) {
523 this.url = value;
524 }
525
526 public boolean isSetURL() {
527 return (this.url!= null);
528 }
529
530
531
532
533
534
535
536
537
538 public String getDisplayName() {
539 return displayName;
540 }
541
542
543
544
545
546
547
548
549
550 public void setDisplayName(String value) {
551 this.displayName = value;
552 }
553
554 public boolean isSetDisplayName() {
555 return (this.displayName!= null);
556 }
557
558
559
560
561
562
563
564
565
566 public NameValuePairSet getSettings() {
567 return settings;
568 }
569
570
571
572
573
574
575
576
577
578 public void setSettings(NameValuePairSet value) {
579 this.settings = value;
580 }
581
582 public boolean isSetSettings() {
583 return (this.settings!= null);
584 }
585
586 }