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;
29 import javax.xml.bind.annotation.XmlRootElement;
30 import org.onap.so.entity.MsoRequest;
32 @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<>();
39 private MsoRequest msoRequest = new MsoRequest();
41 public CreateTenantRequest() {
45 public String getCloudSiteId() {
49 public void setCloudSiteId(String cloudSiteId) {
50 this.cloudSiteId = cloudSiteId;
53 public String getTenantName() {
57 public void setTenantName(String tenantName) {
58 this.tenantName = tenantName;
61 public Boolean getFailIfExists() {
65 public void setFailIfExists(Boolean failIfExists) {
66 this.failIfExists = failIfExists;
69 public Boolean getBackout() {
73 public void setBackout(Boolean backout) {
74 this.backout = backout;
77 public Map<String, String> getMetadata() {
81 public void setMetadata(Map<String, String> metadata) {
82 this.metadata = metadata;
85 public MsoRequest getMsoRequest() {
89 public void setMsoRequest(MsoRequest msoRequest) {
90 this.msoRequest = msoRequest;
94 public String toString() {
95 return "CreateTenantRequest [cloudSiteId=" + cloudSiteId + ", tenantName=" + tenantName + ", failIfExists="
96 + failIfExists + ", backout=" + backout + ", metadata=" + metadata + "]";