2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.mso.adapters.tenantrest;
25 import org.openecomp.mso.entity.MsoRequest;
27 import java.util.HashMap;
28 import javax.xml.bind.annotation.XmlRootElement;
30 @XmlRootElement(name = "createTenantRequest")
31 public class CreateTenantRequest extends TenantRequestCommon {
32 private String cloudSiteId;
33 private String tenantName;
34 private Boolean failIfExists;
35 private Boolean backout;
36 private Map<String,String> metadata = new HashMap<>();
37 private MsoRequest msoRequest = new MsoRequest();
39 public CreateTenantRequest() {}
41 public String getCloudSiteId() {
45 public void setCloudSiteId(String cloudSiteId) {
46 this.cloudSiteId = cloudSiteId;
49 public String getTenantName() {
53 public void setTenantName(String tenantName) {
54 this.tenantName = tenantName;
57 public Boolean getFailIfExists() {
61 public void setFailIfExists(Boolean failIfExists) {
62 this.failIfExists = failIfExists;
65 public Boolean getBackout() {
69 public void setBackout(Boolean backout) {
70 this.backout = backout;
73 public Map<String, String> getMetadata() {
77 public void setMetadata(Map<String, String> metadata) {
78 this.metadata = metadata;
81 public MsoRequest getMsoRequest() {
85 public void setMsoRequest(MsoRequest msoRequest) {
86 this.msoRequest = msoRequest;
90 public String toString() {
91 return "CreateTenantRequest [cloudSiteId=" + cloudSiteId
92 + ", tenantName=" + tenantName + ", failIfExists="
93 + failIfExists + ", backout=" + backout + ", metadata="