Merge from ECOMP's repository
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / model / AaiGetTenatns / GetTenantsResponse.java
1 package org.onap.vid.aai.model.AaiGetTenatns;
2
3 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4 import com.fasterxml.jackson.annotation.JsonProperty;
5
6 /**
7  * Created by Oren on 7/18/17.
8  */
9 @JsonIgnoreProperties(ignoreUnknown = true)
10 public class GetTenantsResponse {
11
12     public String cloudRegionID;
13
14     public String cloudOwner;
15
16     public String tenantName;
17
18     public String tenantID;
19
20     public boolean isPermitted;
21
22     @JsonProperty("is-permitted")
23     public boolean getJsonIsPermitted() {
24         // this is a special case to *duplicate* the permission field
25         // as it might be that both -- camelCase and hyphen faces --
26         // are in use
27         return isPermitted;
28     }
29
30     public GetTenantsResponse() {
31     }
32
33     public GetTenantsResponse(String cloudRegionId, String cloudOwner, String tenantName, String tenantID, boolean isPermitted) {
34         this.cloudRegionID = cloudRegionId;
35         this.cloudOwner = cloudOwner;
36         this.tenantName = tenantName;
37         this.tenantID = tenantID;
38         this.isPermitted = isPermitted;
39     }
40 }