New VID UI - distribution fix
[vid.git] / vid-automation / src / test / java / org / opencomp / vid / model / mso / SubscriberInfo.java
1
2 package org.opencomp.vid.model.mso;
3
4 import com.fasterxml.jackson.annotation.*;
5 import org.apache.commons.lang3.builder.EqualsBuilder;
6 import org.apache.commons.lang3.builder.HashCodeBuilder;
7 import org.apache.commons.lang3.builder.ToStringBuilder;
8
9 import javax.annotation.Generated;
10 import java.util.HashMap;
11 import java.util.Map;
12
13
14 /**
15  * fields providing information about the subscriber associated with the request
16  * 
17  */
18 @JsonInclude(JsonInclude.Include.NON_NULL)
19 @Generated("org.jsonschema2pojo")
20 @JsonPropertyOrder({
21     "globalSubscriberId",
22     "subscriberCommonSiteId",
23     "subscriberName"
24 })
25 public class SubscriberInfo {
26
27     /**
28      * global Customer Id understood by A&AI
29      * 
30      */
31     @JsonProperty("globalSubscriberId")
32     private String globalSubscriberId;
33     /**
34      * id representing the location of the subscriber
35      * 
36      */
37     @JsonProperty("subscriberCommonSiteId")
38     private String subscriberCommonSiteId;
39     /**
40      * name of the customer or subscriber
41      * 
42      */
43     @JsonProperty("subscriberName")
44     private String subscriberName;
45     @JsonIgnore
46     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
47
48     /**
49      * global Customer Id understood by A&AI
50      * 
51      * @return
52      *     The globalSubscriberId
53      */
54     @JsonProperty("globalSubscriberId")
55     public String getGlobalSubscriberId() {
56         return globalSubscriberId;
57     }
58
59     /**
60      * global Customer Id understood by A&AI
61      * 
62      * @param globalSubscriberId
63      *     The globalSubscriberId
64      */
65     @JsonProperty("globalSubscriberId")
66     public void setGlobalSubscriberId(String globalSubscriberId) {
67         this.globalSubscriberId = globalSubscriberId;
68     }
69
70     /**
71      * id representing the location of the subscriber
72      * 
73      * @return
74      *     The subscriberCommonSiteId
75      */
76     @JsonProperty("subscriberCommonSiteId")
77     public String getSubscriberCommonSiteId() {
78         return subscriberCommonSiteId;
79     }
80
81     /**
82      * id representing the location of the subscriber
83      * 
84      * @param subscriberCommonSiteId
85      *     The subscriberCommonSiteId
86      */
87     @JsonProperty("subscriberCommonSiteId")
88     public void setSubscriberCommonSiteId(String subscriberCommonSiteId) {
89         this.subscriberCommonSiteId = subscriberCommonSiteId;
90     }
91
92     /**
93      * name of the customer or subscriber
94      * 
95      * @return
96      *     The subscriberName
97      */
98     @JsonProperty("subscriberName")
99     public String getSubscriberName() {
100         return subscriberName;
101     }
102
103     /**
104      * name of the customer or subscriber
105      * 
106      * @param subscriberName
107      *     The subscriberName
108      */
109     @JsonProperty("subscriberName")
110     public void setSubscriberName(String subscriberName) {
111         this.subscriberName = subscriberName;
112     }
113
114     @Override
115     public String toString() {
116         return ToStringBuilder.reflectionToString(this);
117     }
118
119     @JsonAnyGetter
120     public Map<String, Object> getAdditionalProperties() {
121         return this.additionalProperties;
122     }
123
124     @JsonAnySetter
125     public void setAdditionalProperty(String name, Object value) {
126         this.additionalProperties.put(name, value);
127     }
128
129     @Override
130     public int hashCode() {
131         return new HashCodeBuilder().append(globalSubscriberId).append(subscriberCommonSiteId).append(subscriberName).append(additionalProperties).toHashCode();
132     }
133
134     @Override
135     public boolean equals(Object other) {
136         if (other == this) {
137             return true;
138         }
139         if ((other instanceof SubscriberInfo) == false) {
140             return false;
141         }
142         SubscriberInfo rhs = ((SubscriberInfo) other);
143         return new EqualsBuilder().append(globalSubscriberId, rhs.globalSubscriberId).append(subscriberCommonSiteId, rhs.subscriberCommonSiteId).append(subscriberName, rhs.subscriberName).append(additionalProperties, rhs.additionalProperties).isEquals();
144     }
145
146 }