Fix for Penetration test _ Session and cookie management
[vid.git] / vid-app-common / src / main / java / org / onap / vid / model / PortMirroringConfig.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 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.vid.model;
22
23 import com.fasterxml.jackson.annotation.JsonIgnore;
24 import org.onap.sdc.toscaparser.api.RequirementAssignments;
25
26 import java.util.List;
27
28 public class PortMirroringConfig extends Node {
29
30     /** The model customization name. */
31     private String modelCustomizationName;
32
33     /** The port miroring requirements for source/collector */
34     @JsonIgnore
35     private RequirementAssignments requirementAssignments;
36
37     private List<String> sourceNodes;
38
39     private List<String> collectorNodes;
40
41     private boolean configurationByPolicy;
42
43     public PortMirroringConfig() {
44         super();
45         this.configurationByPolicy = false;
46     }
47
48     public String getModelCustomizationName() {
49         return modelCustomizationName;
50     }
51
52     public void setModelCustomizationName(String modelCustomizationName) {
53         this.modelCustomizationName = modelCustomizationName;
54     }
55
56     public RequirementAssignments getRequirementAssignments() {
57         return requirementAssignments;
58     }
59
60     public void setRequirementAssignments(RequirementAssignments requirementAssignments) {
61         this.requirementAssignments = requirementAssignments;
62     }
63
64     public List<String> getSourceNodes() {
65         return sourceNodes;
66     }
67
68     public void setSourceNodes(List<String> sourceNodes) {
69         this.sourceNodes = sourceNodes;
70     }
71
72     public List<String> getCollectorNodes() {
73         return collectorNodes;
74     }
75
76     public void setCollectorNodes(List<String> collectorNodes) {
77         this.collectorNodes = collectorNodes;
78     }
79
80     public void setConfigurationByPolicy(boolean configurationByPolicy) {
81         this.configurationByPolicy = configurationByPolicy;
82     }
83
84     public boolean isConfigurationByPolicy() {
85         return configurationByPolicy;
86     }
87 }