2 package org.onap.vid.mso.rest;
4 import com.fasterxml.jackson.annotation.*;
5 import org.apache.commons.lang.builder.EqualsBuilder;
6 import org.apache.commons.lang.builder.HashCodeBuilder;
7 import org.apache.commons.lang.builder.ToStringBuilder;
9 import java.util.HashMap;
14 * fields providing information about the subscriber associated with the request
17 @JsonInclude(JsonInclude.Include.NON_NULL)
20 "subscriberCommonSiteId",
23 public class SubscriberInfo {
26 * global Customer Id understood by A&AI
29 @JsonProperty("globalSubscriberId")
30 private String globalSubscriberId;
32 * id representing the location of the subscriber
35 @JsonProperty("subscriberCommonSiteId")
36 private String subscriberCommonSiteId;
38 * name of the customer or subscriber
41 @JsonProperty("subscriberName")
42 private String subscriberName;
44 private Map<String, Object> additionalProperties = new HashMap<>();
47 * global Customer Id understood by A&AI
50 * The globalSubscriberId
52 @JsonProperty("globalSubscriberId")
53 public String getGlobalSubscriberId() {
54 return globalSubscriberId;
58 * global Customer Id understood by A&AI
60 * @param globalSubscriberId
61 * The globalSubscriberId
63 @JsonProperty("globalSubscriberId")
64 public void setGlobalSubscriberId(String globalSubscriberId) {
65 this.globalSubscriberId = globalSubscriberId;
69 * id representing the location of the subscriber
72 * The subscriberCommonSiteId
74 @JsonProperty("subscriberCommonSiteId")
75 public String getSubscriberCommonSiteId() {
76 return subscriberCommonSiteId;
80 * id representing the location of the subscriber
82 * @param subscriberCommonSiteId
83 * The subscriberCommonSiteId
85 @JsonProperty("subscriberCommonSiteId")
86 public void setSubscriberCommonSiteId(String subscriberCommonSiteId) {
87 this.subscriberCommonSiteId = subscriberCommonSiteId;
91 * name of the customer or subscriber
96 @JsonProperty("subscriberName")
97 public String getSubscriberName() {
98 return subscriberName;
102 * name of the customer or subscriber
104 * @param subscriberName
107 @JsonProperty("subscriberName")
108 public void setSubscriberName(String subscriberName) {
109 this.subscriberName = subscriberName;
113 public String toString() {
114 return ToStringBuilder.reflectionToString(this);
118 public Map<String, Object> getAdditionalProperties() {
119 return this.additionalProperties;
123 public void setAdditionalProperty(String name, Object value) {
124 this.additionalProperties.put(name, value);
128 public int hashCode() {
129 return new HashCodeBuilder().append(globalSubscriberId).append(subscriberCommonSiteId).append(subscriberName).append(additionalProperties).toHashCode();
133 public boolean equals(Object other) {
137 if (!(other instanceof SubscriberInfo)) {
140 SubscriberInfo rhs = ((SubscriberInfo) other);
141 return new EqualsBuilder().append(globalSubscriberId, rhs.globalSubscriberId).append(subscriberCommonSiteId, rhs.subscriberCommonSiteId).append(subscriberName, rhs.subscriberName).append(additionalProperties, rhs.additionalProperties).isEquals();