1
2 package org.miloss.fgsms.services.interfaces.policyconfiguration;
3
4 import java.io.Serializable;
5 import java.util.ArrayList;
6 import java.util.List;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlType;
11 import org.miloss.fgsms.services.interfaces.common.SecurityWrapper;
12
13
14 /**
15 *
16 * sets the list of SLA alerts that the current user is registered to be alerted of
17 *
18 *
19 * <p>Java class for SetAlertRegistrationsRequestMsg complex type.
20 *
21 * <p>The following schema fragment specifies the expected content contained within this class.
22 *
23 * <pre>
24 * <complexType name="SetAlertRegistrationsRequestMsg">
25 * <complexContent>
26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27 * <sequence>
28 * <element name="classification" type="{urn:org:miloss:fgsms:services:interfaces:common}SecurityWrapper"/>
29 * <element name="items" type="{urn:org:miloss:fgsms:services:interfaces:policyConfiguration}SLAregistration" maxOccurs="unbounded" minOccurs="0"/>
30 * </sequence>
31 * </restriction>
32 * </complexContent>
33 * </complexType>
34 * </pre>
35 *
36 *
37 */
38 @XmlAccessorType(XmlAccessType.FIELD)
39 @XmlType(name = "SetAlertRegistrationsRequestMsg", propOrder = {
40 "classification",
41 "items"
42 })
43 public class SetAlertRegistrationsRequestMsg
44 implements Serializable
45 {
46
47 private final static long serialVersionUID = 1L;
48 @XmlElement(required = true)
49 protected SecurityWrapper classification;
50 protected List<SLAregistration> items;
51
52 /**
53 * Gets the value of the classification property.
54 *
55 * @return
56 * possible object is
57 * {@link SecurityWrapper }
58 *
59 */
60 public SecurityWrapper getClassification() {
61 return classification;
62 }
63
64 /**
65 * Sets the value of the classification property.
66 *
67 * @param value
68 * allowed object is
69 * {@link SecurityWrapper }
70 *
71 */
72 public void setClassification(SecurityWrapper value) {
73 this.classification = value;
74 }
75
76 public boolean isSetClassification() {
77 return (this.classification!= null);
78 }
79
80 /**
81 * Gets the value of the items property.
82 *
83 * <p>
84 * This accessor method returns a reference to the live list,
85 * not a snapshot. Therefore any modification you make to the
86 * returned list will be present inside the JAXB object.
87 * This is why there is not a <CODE>set</CODE> method for the items property.
88 *
89 * <p>
90 * For example, to add a new item, do as follows:
91 * <pre>
92 * getItems().add(newItem);
93 * </pre>
94 *
95 *
96 * <p>
97 * Objects of the following type(s) are allowed in the list
98 * {@link SLAregistration }
99 *
100 *
101 */
102 public List<SLAregistration> getItems() {
103 if (items == null) {
104 items = new ArrayList<SLAregistration>();
105 }
106 return this.items;
107 }
108
109 public boolean isSetItems() {
110 return ((this.items!= null)&&(!this.items.isEmpty()));
111 }
112
113 public void unsetItems() {
114 this.items = null;
115 }
116
117 }