text: /*
   * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *    http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  #include <tencentcloud/tsf/v20180326/model/DeleteNamespaceRequest.h>
  #include <tencentcloud/core/utils/rapidjson/document.h>
  #include <tencentcloud/core/utils/rapidjson/writer.h>
  #include <tencentcloud/core/utils/rapidjson/stringbuffer.h>
  
  using namespace TencentCloud::Tsf::V20180326::Model;
  using namespace rapidjson;
  using namespace std;
  
  DeleteNamespaceRequest::DeleteNamespaceRequest() :
      m_namespaceIdHasBeenSet(false),
      m_clusterIdHasBeenSet(false)
  {
  }
  
  string DeleteNamespaceRequest::ToJsonString() const
  {
      Document d;
      d.SetObject();
      Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_namespaceIdHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "NamespaceId";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_namespaceId.c_str(), allocator).Move(), allocator);
      }
  
      if (m_clusterIdHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "ClusterId";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_clusterId.c_str(), allocator).Move(), allocator);
      }
  
  
      StringBuffer buffer;
      Writer<StringBuffer> writer(buffer);
      d.Accept(writer);
      return buffer.GetString();
  }
  
  
  string DeleteNamespaceRequest::GetNamespaceId() const
  {
      return m_namespaceId;
  }
  
  void DeleteNamespaceRequest::SetNamespaceId(const string& _namespaceId)
  {
      m_namespaceId = _namespaceId;
      m_namespaceIdHasBeenSet = true;
  }
  
  bool DeleteNamespaceRequest::NamespaceIdHasBeenSet() const
  {
      return m_namespaceIdHasBeenSet;
  }
  
  string DeleteNamespaceRequest::GetClusterId() const
  {
      return m_clusterId;
  }
  
  void DeleteNamespaceRequest::SetClusterId(const string& _clusterId)
  {
      m_clusterId = _clusterId;
      m_clusterIdHasBeenSet = true;
  }
  
  bool DeleteNamespaceRequest::ClusterIdHasBeenSet() const
  {
      return m_clusterIdHasBeenSet;
  }
  
  
  