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/apigateway/v20180808/model/DescribeApiBindApiAppsStatusRequest.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::Apigateway::V20180808::Model;
  using namespace std;
  
  DescribeApiBindApiAppsStatusRequest::DescribeApiBindApiAppsStatusRequest() :
      m_serviceIdHasBeenSet(false),
      m_apiIdsHasBeenSet(false),
      m_limitHasBeenSet(false),
      m_offsetHasBeenSet(false),
      m_filtersHasBeenSet(false)
  {
  }
  
  string DescribeApiBindApiAppsStatusRequest::ToJsonString() const
  {
      rapidjson::Document d;
      d.SetObject();
      rapidjson::Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_serviceIdHasBeenSet)
      {
          rapidjson::Value iKey(rapidjson::kStringType);
          string key = "ServiceId";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, rapidjson::Value(m_serviceId.c_str(), allocator).Move(), allocator);
      }
  
      if (m_apiIdsHasBeenSet)
      {
          rapidjson::Value iKey(rapidjson::kStringType);
          string key = "ApiIds";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, rapidjson::Value(rapidjson::kArrayType).Move(), allocator);
  
          for (auto itr = m_apiIds.begin(); itr != m_apiIds.end(); ++itr)
          {
              d[key.c_str()].PushBack(rapidjson::Value().SetString((*itr).c_str(), allocator), allocator);
          }
      }
  
      if (m_limitHasBeenSet)
      {
          rapidjson::Value iKey(rapidjson::kStringType);
          string key = "Limit";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, m_limit, allocator);
      }
  
      if (m_offsetHasBeenSet)
      {
          rapidjson::Value iKey(rapidjson::kStringType);
          string key = "Offset";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, m_offset, allocator);
      }
  
      if (m_filtersHasBeenSet)
      {
          rapidjson::Value iKey(rapidjson::kStringType);
          string key = "Filters";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, rapidjson::Value(rapidjson::kArrayType).Move(), allocator);
  
          int i=0;
          for (auto itr = m_filters.begin(); itr != m_filters.end(); ++itr, ++i)
          {
              d[key.c_str()].PushBack(rapidjson::Value(rapidjson::kObjectType).Move(), allocator);
              (*itr).ToJsonObject(d[key.c_str()][i], allocator);
          }
      }
  
  
      rapidjson::StringBuffer buffer;
      rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
      d.Accept(writer);
      return buffer.GetString();
  }
  
  
  string DescribeApiBindApiAppsStatusRequest::GetServiceId() const
  {
      return m_serviceId;
  }
  
  void DescribeApiBindApiAppsStatusRequest::SetServiceId(const string& _serviceId)
  {
      m_serviceId = _serviceId;
      m_serviceIdHasBeenSet = true;
  }
  
  bool DescribeApiBindApiAppsStatusRequest::ServiceIdHasBeenSet() const
  {
      return m_serviceIdHasBeenSet;
  }
  
  vector<string> DescribeApiBindApiAppsStatusRequest::GetApiIds() const
  {
      return m_apiIds;
  }
  
  void DescribeApiBindApiAppsStatusRequest::SetApiIds(const vector<string>& _apiIds)
  {
      m_apiIds = _apiIds;
      m_apiIdsHasBeenSet = true;
  }
  
  bool DescribeApiBindApiAppsStatusRequest::ApiIdsHasBeenSet() const
  {
      return m_apiIdsHasBeenSet;
  }
  
  int64_t DescribeApiBindApiAppsStatusRequest::GetLimit() const
  {
      return m_limit;
  }
  
  void DescribeApiBindApiAppsStatusRequest::SetLimit(const int64_t& _limit)
  {
      m_limit = _limit;
      m_limitHasBeenSet = true;
  }
  
  bool DescribeApiBindApiAppsStatusRequest::LimitHasBeenSet() const
  {
      return m_limitHasBeenSet;
  }
  
  int64_t DescribeApiBindApiAppsStatusRequest::GetOffset() const
  {
      return m_offset;
  }
  
  void DescribeApiBindApiAppsStatusRequest::SetOffset(const int64_t& _offset)
  {
      m_offset = _offset;
      m_offsetHasBeenSet = true;
  }
  
  bool DescribeApiBindApiAppsStatusRequest::OffsetHasBeenSet() const
  {
      return m_offsetHasBeenSet;
  }
  
  vector<Filter> DescribeApiBindApiAppsStatusRequest::GetFilters() const
  {
      return m_filters;
  }
  
  void DescribeApiBindApiAppsStatusRequest::SetFilters(const vector<Filter>& _filters)
  {
      m_filters = _filters;
      m_filtersHasBeenSet = true;
  }
  
  bool DescribeApiBindApiAppsStatusRequest::FiltersHasBeenSet() const
  {
      return m_filtersHasBeenSet;
  }
  
  
  