Create seed code of svnfm vnfmdriver
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / com / nokia / vfcadaptor / 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 com.nokia.vfcadaptor.cbam.bo;
19
20 import com.fasterxml.jackson.annotation.JsonProperty;
21 import com.nokia.vfcadaptor.constant.CommonEnum;
22
23 public class CBAMTerminateVnfRequest {
24         
25         @JsonProperty("name")
26         private String name;
27         
28         @JsonProperty("description")
29         private String description;
30
31         @JsonProperty("terminationType")
32         private CommonEnum.TerminationType terminationType;
33         
34         @JsonProperty("gracefulTerminationTimeout")
35         private Integer gracefulTerminationTimeout;
36         
37         @JsonProperty("additionalParams")
38         private Object additionalParams;
39         
40         
41
42         public String getName() {
43                 return name;
44         }
45
46
47
48
49
50
51
52         public void setName(String name) {
53                 this.name = name;
54         }
55
56
57
58
59
60
61
62         public String getDescription() {
63                 return description;
64         }
65
66
67
68
69
70
71
72         public void setDescription(String description) {
73                 this.description = description;
74         }
75
76
77
78
79         public CommonEnum.TerminationType getTerminationType() {
80                 return terminationType;
81         }
82
83
84
85
86
87
88
89         public void setTerminationType(CommonEnum.TerminationType terminationType) {
90                 this.terminationType = terminationType;
91         }
92
93
94
95
96
97
98
99         public Integer getGracefulTerminationTimeout() {
100                 return gracefulTerminationTimeout;
101         }
102
103
104
105
106
107
108
109         public void setGracefulTerminationTimeout(Integer gracefulTerminationTimeout) {
110                 this.gracefulTerminationTimeout = gracefulTerminationTimeout;
111         }
112
113
114
115
116
117
118
119         public Object getAdditionalParams() {
120                 return additionalParams;
121         }
122
123
124
125
126
127
128
129         public void setAdditionalParams(Object additionalParams) {
130                 this.additionalParams = additionalParams;
131         }
132
133
134
135
136
137
138
139         public enum TerminationType{
140                 GRACEFUL, FORCEFUL
141                 
142         }
143
144 }