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/dayu/v20180709/model/DescribeDDoSNetCountRequest.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::Dayu::V20180709::Model;
  using namespace rapidjson;
  using namespace std;
  
  DescribeDDoSNetCountRequest::DescribeDDoSNetCountRequest() :
      m_businessHasBeenSet(false),
      m_idHasBeenSet(false),
      m_startTimeHasBeenSet(false),
      m_endTimeHasBeenSet(false),
      m_metricNameHasBeenSet(false)
  {
  }
  
  string DescribeDDoSNetCountRequest::ToJsonString() const
  {
      Document d;
      d.SetObject();
      Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_businessHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "Business";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_business.c_str(), allocator).Move(), allocator);
      }
  
      if (m_idHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "Id";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_id.c_str(), allocator).Move(), allocator);
      }
  
      if (m_startTimeHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "StartTime";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_startTime.c_str(), allocator).Move(), allocator);
      }
  
      if (m_endTimeHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "EndTime";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_endTime.c_str(), allocator).Move(), allocator);
      }
  
      if (m_metricNameHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "MetricName";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_metricName.c_str(), allocator).Move(), allocator);
      }
  
  
      StringBuffer buffer;
      Writer<StringBuffer> writer(buffer);
      d.Accept(writer);
      return buffer.GetString();
  }
  
  
  string DescribeDDoSNetCountRequest::GetBusiness() const
  {
      return m_business;
  }
  
  void DescribeDDoSNetCountRequest::SetBusiness(const string& _business)
  {
      m_business = _business;
      m_businessHasBeenSet = true;
  }
  
  bool DescribeDDoSNetCountRequest::BusinessHasBeenSet() const
  {
      return m_businessHasBeenSet;
  }
  
  string DescribeDDoSNetCountRequest::GetId() const
  {
      return m_id;
  }
  
  void DescribeDDoSNetCountRequest::SetId(const string& _id)
  {
      m_id = _id;
      m_idHasBeenSet = true;
  }
  
  bool DescribeDDoSNetCountRequest::IdHasBeenSet() const
  {
      return m_idHasBeenSet;
  }
  
  string DescribeDDoSNetCountRequest::GetStartTime() const
  {
      return m_startTime;
  }
  
  void DescribeDDoSNetCountRequest::SetStartTime(const string& _startTime)
  {
      m_startTime = _startTime;
      m_startTimeHasBeenSet = true;
  }
  
  bool DescribeDDoSNetCountRequest::StartTimeHasBeenSet() const
  {
      return m_startTimeHasBeenSet;
  }
  
  string DescribeDDoSNetCountRequest::GetEndTime() const
  {
      return m_endTime;
  }
  
  void DescribeDDoSNetCountRequest::SetEndTime(const string& _endTime)
  {
      m_endTime = _endTime;
      m_endTimeHasBeenSet = true;
  }
  
  bool DescribeDDoSNetCountRequest::EndTimeHasBeenSet() const
  {
      return m_endTimeHasBeenSet;
  }
  
  string DescribeDDoSNetCountRequest::GetMetricName() const
  {
      return m_metricName;
  }
  
  void DescribeDDoSNetCountRequest::SetMetricName(const string& _metricName)
  {
      m_metricName = _metricName;
      m_metricNameHasBeenSet = true;
  }
  
  bool DescribeDDoSNetCountRequest::MetricNameHasBeenSet() const
  {
      return m_metricNameHasBeenSet;
  }
  
  
  