Merge of new rebased code
[appc.git] / appc-dg / appc-dg-shared / appc-dg-domain-model-lib / src / main / java / org / openecomp / appc / domainmodel / Vserver.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *                                              reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.openecomp.appc.domainmodel;
23
24
25 public class Vserver {
26
27     private String url;
28
29     private String tenantId;
30     private String id;
31     private String relatedLink;
32     private String name;
33
34     public Vserver(String url){
35         this(url,null,null,null,null);
36     }
37
38     public Vserver(String url,
39                    String tenantId,
40                    String id,
41                    String relatedLink,
42                    String name){
43         this.url = url;
44         this.tenantId =tenantId;
45         this.id = id;
46         this.relatedLink =relatedLink;
47         this.name = name;
48
49     }
50
51     public String getUrl() {
52         return url;
53     }
54
55     @Override
56     public String toString() {
57         return "Vserver : url = " +url + ", tenantId = " +tenantId +", id = " +id + " ,relatedLink = " +relatedLink +" , name = "+name;
58     }
59
60     public String getTenantId() {
61         return tenantId;
62     }
63
64     public String getId() {
65         return id;
66     }
67
68     public String getRelatedLink() {
69         return relatedLink;
70     }
71
72     public String getName() {
73         return name;
74     }
75 }