acaa16fcaae1c15a093acb45c355fd6208d20754
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / cbam / bo / CBAMTerminateVnfRequest.java
1
2 /*
3  * Copyright 2016-2017, Nokia Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 package org.onap.vfc.nfvo.driver.vnfm.svnfm.cbam.bo;
19
20 import org.onap.vfc.nfvo.driver.vnfm.svnfm.constant.CommonEnum;
21
22 import com.fasterxml.jackson.annotation.JsonProperty;
23
24 public class CBAMTerminateVnfRequest {
25         
26         @JsonProperty("name")
27         private String name;
28         
29         @JsonProperty("description")
30         private String description;
31
32         @JsonProperty("terminationType")
33         private CommonEnum.TerminationType terminationType;
34         
35         @JsonProperty("gracefulTerminationTimeout")
36         private Integer gracefulTerminationTimeout;
37         
38         @JsonProperty("additionalParams")
39         private Object additionalParams;
40
41         public String getName() {
42                 return name;
43         }
44
45         public void setName(String name) {
46                 this.name = name;
47         }
48
49         public String getDescription() {
50                 return description;
51         }
52
53         public void setDescription(String description) {
54                 this.description = description;
55         }
56
57         public CommonEnum.TerminationType getTerminationType() {
58                 return terminationType;
59         }
60
61         public void setTerminationType(CommonEnum.TerminationType terminationType) {
62                 this.terminationType = terminationType;
63         }
64
65         public Integer getGracefulTerminationTimeout() {
66                 return gracefulTerminationTimeout;
67         }
68
69         public void setGracefulTerminationTimeout(Integer gracefulTerminationTimeout) {
70                 this.gracefulTerminationTimeout = gracefulTerminationTimeout;
71         }
72
73         public Object getAdditionalParams() {
74                 return additionalParams;
75         }
76
77         public void setAdditionalParams(Object additionalParams) {
78                 this.additionalParams = additionalParams;
79         }
80
81         public enum TerminationType{
82                 GRACEFUL, FORCEFUL
83         }
84
85 }