Fix for Penetration test _ Session and cookie management
[vid.git] / vid-app-common / src / main / java / org / onap / vid / changeManagement / ChangeManagementRequest.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.changeManagement;
22
23 import com.fasterxml.jackson.annotation.*;
24
25 import java.util.HashMap;
26 import java.util.List;
27 import java.util.Map;
28
29 @JsonPropertyOrder({
30     "requestDetails",
31                 "requestType"
32 })
33
34 public class ChangeManagementRequest {
35
36         public static class MsoChangeManagementRequest {
37                 public static final String SOFTWARE_UPDATE = "inPlaceSoftwareUpdate";
38                 public static final String REPLACE = "replace";
39                 public static final String CONFIG_UPDATE = "applyUpdatedConfig";
40
41         }
42
43         public static final String VNF_IN_PLACE_SOFTWARE_UPDATE = "vnf in place software update";
44         public static final String UPDATE = "update";
45         public static final String REPLACE = "replace";
46         public static final String CONFIG_UPDATE = "vnf config update";
47         public static final String SCALE_OUT = "vnf scale out";
48
49         @JsonProperty("requestDetails")
50     private List<RequestDetails> requestDetails;
51
52         @JsonProperty("requestType")
53     private String requestType;
54
55         @JsonIgnore
56         private Map<String, Object> additionalProperties = new HashMap<>();
57     
58         @JsonProperty("requestDetails")
59         public List<RequestDetails> getRequestDetails() {
60                 return requestDetails;
61         }
62
63         @JsonProperty("requestDetails")
64         public void setRequestDetails(List<RequestDetails> requestDetails) {
65                 this.requestDetails = requestDetails;
66         }
67
68         @JsonProperty("requestType")
69         public String getRequestType() {
70                 return requestType;
71         }
72
73         @JsonProperty("requestType")
74         public void setRequestType(String requestType) {
75                 this.requestType = requestType;
76         }
77
78         @JsonAnyGetter
79         public Map<String, Object> getAdditionalProperties() {
80         return this.additionalProperties;
81         }
82
83
84         @JsonAnySetter
85         public void setAdditionalProperty(String name, Object value) {
86         this.additionalProperties.put(name, value);
87         }
88
89         
90         
91 }