Fixed the Sonar technical debt.
[policy/engine.git] / ONAP-REST / src / main / java / org / onap / policy / rest / adapter / PrefixIPList.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP Policy Engine
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.rest.adapter;
22
23
24
25 import java.util.ArrayList;
26 import java.util.List;
27
28
29 public class PrefixIPList {
30     protected String name;
31     protected String description;
32     protected List<AddressMembers> members;
33     
34     public String getName() {
35         return name;
36     }
37     
38     public void setName(String name) {
39         this.name = name;
40     }
41     
42     public String getDescription() {
43         return description;
44     }
45     
46     public void setDescription(String description) {
47         this.description = description;
48     }
49
50     public List<AddressMembers> getMembers() 
51     {
52         if(members==null)
53         {
54                 members= new ArrayList<>();
55         }
56         return this.members;
57     }
58
59         public void setMembers(List<AddressMembers> members) 
60         {
61                 this.members = members;
62         }
63
64 }