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