Update gvnfm-driver .gitreview file
[vfc/nfvo/driver/vnfm/gvnfm.git] / juju / juju-vnfmadapter / Juju-vnfmadapterService / service / src / main / java / org / onap / vfc / nfvo / vnfm / gvnfm / jujuvnfmadapter / service / entity / JujuVnfd.java
1 /*
2  * Copyright 2016 Huawei Technologies Co., Ltd.
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 org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.service.entity;
18
19
20 import org.apache.commons.lang3.builder.ToStringBuilder;
21 import org.apache.commons.lang3.builder.ToStringStyle;
22
23 /**
24  * 
25  * Juju vnfd class.<br>
26  * <p>
27  * </p>
28  * 
29  * @author
30  * @version     NFVO 0.5  Sep 12, 2016
31  */
32 public class JujuVnfd {
33
34     private String downloadUri;
35
36     private String localPath;
37
38     public String getDownloadUri() {
39         return downloadUri;
40     }
41
42     public void setDownloadUri(String downloadUri) {
43         this.downloadUri = downloadUri;
44     }
45
46     public String getLocalPath() {
47         return localPath;
48     }
49
50     public void setLocalPath(String localPath) {
51         this.localPath = localPath;
52     }
53
54
55     @Override
56     public String toString() {
57         return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
58     }
59
60     @Override
61     public int hashCode() {
62         final int prime = 31;
63         int result = 1;
64         result = prime * result + ((downloadUri == null) ? 0 : downloadUri.hashCode());
65         return result;
66     }
67
68     @Override
69     public boolean equals(Object obj) {
70         if(this == obj) {
71             return true;
72         }
73         if(obj == null) {
74             return false;
75         }
76         if(!(obj instanceof JujuVnfd)) {
77             return false;
78         }
79         if(getClass() != obj.getClass()) {
80             return false;
81         }
82         JujuVnfd other = (JujuVnfd)obj;
83         if(downloadUri == null) {
84             if(other.downloadUri != null) {
85                 return false;
86             }
87         } else if(!downloadUri.equals(other.downloadUri)) {
88             return false;
89         }
90         return true;
91     }
92
93 }