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/vpc/v20170312/model/DisableRoutesRequest.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::Vpc::V20170312::Model;
  using namespace rapidjson;
  using namespace std;
  
  DisableRoutesRequest::DisableRoutesRequest() :
      m_routeTableIdHasBeenSet(false),
      m_routeIdsHasBeenSet(false),
      m_routeItemIdsHasBeenSet(false)
  {
  }
  
  string DisableRoutesRequest::ToJsonString() const
  {
      Document d;
      d.SetObject();
      Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_routeTableIdHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "RouteTableId";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_routeTableId.c_str(), allocator).Move(), allocator);
      }
  
      if (m_routeIdsHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "RouteIds";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(kArrayType).Move(), allocator);
  
          for (auto itr = m_routeIds.begin(); itr != m_routeIds.end(); ++itr)
          {
              d[key.c_str()].PushBack(Value().SetUint64(*itr), allocator);
          }
      }
  
      if (m_routeItemIdsHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "RouteItemIds";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(kArrayType).Move(), allocator);
  
          for (auto itr = m_routeItemIds.begin(); itr != m_routeItemIds.end(); ++itr)
          {
              d[key.c_str()].PushBack(Value().SetString((*itr).c_str(), allocator), allocator);
          }
      }
  
  
      StringBuffer buffer;
      Writer<StringBuffer> writer(buffer);
      d.Accept(writer);
      return buffer.GetString();
  }
  
  
  string DisableRoutesRequest::GetRouteTableId() const
  {
      return m_routeTableId;
  }
  
  void DisableRoutesRequest::SetRouteTableId(const string& _routeTableId)
  {
      m_routeTableId = _routeTableId;
      m_routeTableIdHasBeenSet = true;
  }
  
  bool DisableRoutesRequest::RouteTableIdHasBeenSet() const
  {
      return m_routeTableIdHasBeenSet;
  }
  
  vector<uint64_t> DisableRoutesRequest::GetRouteIds() const
  {
      return m_routeIds;
  }
  
  void DisableRoutesRequest::SetRouteIds(const vector<uint64_t>& _routeIds)
  {
      m_routeIds = _routeIds;
      m_routeIdsHasBeenSet = true;
  }
  
  bool DisableRoutesRequest::RouteIdsHasBeenSet() const
  {
      return m_routeIdsHasBeenSet;
  }
  
  vector<string> DisableRoutesRequest::GetRouteItemIds() const
  {
      return m_routeItemIds;
  }
  
  void DisableRoutesRequest::SetRouteItemIds(const vector<string>& _routeItemIds)
  {
      m_routeItemIds = _routeItemIds;
      m_routeItemIdsHasBeenSet = true;
  }
  
  bool DisableRoutesRequest::RouteItemIdsHasBeenSet() const
  {
      return m_routeItemIdsHasBeenSet;
  }
  
  
  