2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.vid.changeManagement;
23 import com.fasterxml.jackson.annotation.*;
25 import java.util.HashMap;
26 import java.util.List;
34 public class ChangeManagementRequest {
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";
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";
49 @JsonProperty("requestDetails")
50 private List<RequestDetails> requestDetails;
52 @JsonProperty("requestType")
53 private String requestType;
56 private Map<String, Object> additionalProperties = new HashMap<>();
58 @JsonProperty("requestDetails")
59 public List<RequestDetails> getRequestDetails() {
60 return requestDetails;
63 @JsonProperty("requestDetails")
64 public void setRequestDetails(List<RequestDetails> requestDetails) {
65 this.requestDetails = requestDetails;
68 @JsonProperty("requestType")
69 public String getRequestType() {
73 @JsonProperty("requestType")
74 public void setRequestType(String requestType) {
75 this.requestType = requestType;
79 public Map<String, Object> getAdditionalProperties() {
80 return this.additionalProperties;
85 public void setAdditionalProperty(String name, Object value) {
86 this.additionalProperties.put(name, value);