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;
29 import org.jboss.resteasy.annotations.providers.NoJackson;
31 @XmlRootElement(name = "createTenantRequest")
33 public class CreateTenantRequest extends TenantRequestCommon {
34 private String cloudSiteId;
35 private String tenantName;
36 private Boolean failIfExists;
37 private Boolean backout;
38 private Map<String,String> metadata = new HashMap<String, String>();
39 private MsoRequest msoRequest = new MsoRequest();
41 public CreateTenantRequest() {}
43 public String getCloudSiteId() {
47 public void setCloudSiteId(String cloudSiteId) {
48 this.cloudSiteId = cloudSiteId;
51 public String getTenantName() {
55 public void setTenantName(String tenantName) {
56 this.tenantName = tenantName;
59 public Boolean getFailIfExists() {
63 public void setFailIfExists(Boolean failIfExists) {
64 this.failIfExists = failIfExists;
67 public Boolean getBackout() {
71 public void setBackout(Boolean backout) {
72 this.backout = backout;
75 public Map<String, String> getMetadata() {
79 public void setMetadata(Map<String, String> metadata) {
80 this.metadata = metadata;
83 public MsoRequest getMsoRequest() {
87 public void setMsoRequest(MsoRequest msoRequest) {
88 this.msoRequest = msoRequest;
92 public String toString() {
93 return "CreateTenantRequest [cloudSiteId=" + cloudSiteId
94 + ", tenantName=" + tenantName + ", failIfExists="
95 + failIfExists + ", backout=" + backout + ", metadata="