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/ModifyGatewayFlowQosRequest.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;
  
  ModifyGatewayFlowQosRequest::ModifyGatewayFlowQosRequest() :
      m_gatewayIdHasBeenSet(false),
      m_bandwidthHasBeenSet(false),
      m_ipAddressesHasBeenSet(false)
  {
  }
  
  string ModifyGatewayFlowQosRequest::ToJsonString() const
  {
      Document d;
      d.SetObject();
      Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_gatewayIdHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "GatewayId";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_gatewayId.c_str(), allocator).Move(), allocator);
      }
  
      if (m_bandwidthHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "Bandwidth";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, m_bandwidth, allocator);
      }
  
      if (m_ipAddressesHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "IpAddresses";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(kArrayType).Move(), allocator);
  
          for (auto itr = m_ipAddresses.begin(); itr != m_ipAddresses.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 ModifyGatewayFlowQosRequest::GetGatewayId() const
  {
      return m_gatewayId;
  }
  
  void ModifyGatewayFlowQosRequest::SetGatewayId(const string& _gatewayId)
  {
      m_gatewayId = _gatewayId;
      m_gatewayIdHasBeenSet = true;
  }
  
  bool ModifyGatewayFlowQosRequest::GatewayIdHasBeenSet() const
  {
      return m_gatewayIdHasBeenSet;
  }
  
  int64_t ModifyGatewayFlowQosRequest::GetBandwidth() const
  {
      return m_bandwidth;
  }
  
  void ModifyGatewayFlowQosRequest::SetBandwidth(const int64_t& _bandwidth)
  {
      m_bandwidth = _bandwidth;
      m_bandwidthHasBeenSet = true;
  }
  
  bool ModifyGatewayFlowQosRequest::BandwidthHasBeenSet() const
  {
      return m_bandwidthHasBeenSet;
  }
  
  vector<string> ModifyGatewayFlowQosRequest::GetIpAddresses() const
  {
      return m_ipAddresses;
  }
  
  void ModifyGatewayFlowQosRequest::SetIpAddresses(const vector<string>& _ipAddresses)
  {
      m_ipAddresses = _ipAddresses;
      m_ipAddressesHasBeenSet = true;
  }
  
  bool ModifyGatewayFlowQosRequest::IpAddressesHasBeenSet() const
  {
      return m_ipAddressesHasBeenSet;
  }
  
  
  