2  * ============LICENSE_START=======================================================
 
   4  * ================================================================================
 
   5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 
   6  * ================================================================================
 
   7  * Modifications Copyright (C) 2018 IBM.
 
   8  * ================================================================================
 
   9  * Licensed under the Apache License, Version 2.0 (the "License");
 
  10  * you may not use this file except in compliance with the License.
 
  11  * You may obtain a copy of the License at
 
  13  *      http://www.apache.org/licenses/LICENSE-2.0
 
  15  * Unless required by applicable law or agreed to in writing, software
 
  16  * distributed under the License is distributed on an "AS IS" BASIS,
 
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  18  * See the License for the specific language governing permissions and
 
  19  * limitations under the License.
 
  20  * ============LICENSE_END=========================================================
 
  23 package org.onap.so.adapters.tenantrest;
 
  27 import java.util.HashMap;
 
  30 import javax.xml.bind.annotation.XmlRootElement;
 
  32 import org.onap.so.entity.MsoRequest;
 
  34 @XmlRootElement(name = "createTenantRequest")
 
  35 public class CreateTenantRequest extends TenantRequestCommon {
 
  36         private String cloudSiteId;
 
  37         private String tenantName;
 
  38         private Boolean failIfExists;
 
  39         private Boolean backout;
 
  40         private Map<String,String> metadata = new HashMap<>();
 
  41         private MsoRequest msoRequest = new MsoRequest();
 
  43         public CreateTenantRequest() {
 
  47         public String getCloudSiteId() {
 
  51         public void setCloudSiteId(String cloudSiteId) {
 
  52                 this.cloudSiteId = cloudSiteId;
 
  55         public String getTenantName() {
 
  59         public void setTenantName(String tenantName) {
 
  60                 this.tenantName = tenantName;
 
  63         public Boolean getFailIfExists() {
 
  67         public void setFailIfExists(Boolean failIfExists) {
 
  68                 this.failIfExists = failIfExists;
 
  71         public Boolean getBackout() {
 
  75         public void setBackout(Boolean backout) {
 
  76                 this.backout = backout;
 
  79         public Map<String, String> getMetadata() {
 
  83         public void setMetadata(Map<String, String> metadata) {
 
  84                 this.metadata = metadata;
 
  87         public MsoRequest getMsoRequest() {
 
  91         public void setMsoRequest(MsoRequest msoRequest) {
 
  92                 this.msoRequest = msoRequest;
 
  96         public String toString() {
 
  97                 return "CreateTenantRequest [cloudSiteId=" + cloudSiteId
 
  98                                 + ", tenantName=" + tenantName + ", failIfExists="
 
  99                                 + failIfExists + ", backout=" + backout + ", metadata="