6dfa4b6587d4aac408e4c081427243abe0283457
[so.git] / mso-api-handlers / mso-api-handler-infra / src / main / java / org / onap / so / apihandlerinfra / e2eserviceinstancebeans / E2EParameters.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 Huawei Technologies Co., Ltd. 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.so.apihandlerinfra.e2eserviceinstancebeans;
22
23 import com.fasterxml.jackson.annotation.JsonIgnore;
24 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25 import com.fasterxml.jackson.annotation.JsonProperty;
26
27 import java.util.HashMap;
28 import java.util.List;
29 import java.util.Map;
30
31 @JsonIgnoreProperties({ "additionalProperties" })
32 public class E2EParameters {
33
34         @JsonProperty("locationConstraints")
35         List<LocationConstraint> locationConstraints;
36
37         @JsonProperty("resources")
38         private List<ResourceRequest> resources;
39
40         @JsonProperty("requestInputs")
41         private HashMap<String, ?> requestInputs;
42
43         @JsonIgnore
44         private Map<String, Object> additionalProperties = new HashMap<>();
45
46         public Map<String, Object> getAdditionalProperties() {
47                 return additionalProperties;
48         }
49
50         public void setAdditionalProperties(Map<String, Object> additionalProperties) {
51                 this.additionalProperties = additionalProperties;
52         }
53     
54     /**
55      * @return Returns the resources.
56      */
57     public List<ResourceRequest> getResources() {
58         return resources;
59     }
60     
61     /**
62      * @param resources The resources to set.
63      */
64     public void setResources(List<ResourceRequest> resources) {
65         this.resources = resources;
66     }
67
68     public List<LocationConstraint> getLocationConstraints() {
69         return locationConstraints;
70     }
71
72     public void setLocationConstraints(List<LocationConstraint> locationConstraints) {
73         this.locationConstraints = locationConstraints;
74     }
75
76         public HashMap<String, ?> getRequestInputs() {
77                 return requestInputs;
78         }
79
80         public void setRequestInputs(HashMap<String, ?> requestInputs) {
81                 this.requestInputs = requestInputs;
82         }
83 }