2 * Copyright 2016-2017, Nokia Corporation
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.vnfm.notification;
18 import com.google.gson.annotations.SerializedName;
20 import java.util.HashSet;
21 import java.util.Objects;
25 * The connection points reported by each operation
27 public class ReportedAffectedConnectionPoints {
28 @SerializedName("cbam_pre")
29 private Set<ReportedAffectedCp> pre = new HashSet<>();
30 @SerializedName("cbam_post")
31 private Set<ReportedAffectedCp> post = new HashSet<>();
34 * @return the connection points that were present after the operation has finished
36 public Set<ReportedAffectedCp> getPost() {
41 * @param post the connection points that were present after the operation has finished
43 public void setPost(Set<ReportedAffectedCp> post) {
48 * @return the connection points that were present before the operation was started
50 public Set<ReportedAffectedCp> getPre() {
55 * @param pre the connection points that were present before the operation was started
57 public void setPre(Set<ReportedAffectedCp> pre) {
62 //generated code. This is the recommended way to formulate equals
63 @SuppressWarnings({"squid:S00122", "squid:S1067"})
64 public boolean equals(Object o) {
65 if (this == o) return true;
66 if (o == null || getClass() != o.getClass()) return false;
67 ReportedAffectedConnectionPoints that = (ReportedAffectedConnectionPoints) o;
68 return Objects.equals(pre, that.pre) &&
69 Objects.equals(post, that.post);
73 public int hashCode() {
75 return Objects.hash(pre, post);
79 public String toString() {
80 return "ReportedAffectedConnectionPoints{" +