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/tag/v20180813/model/DescribeTagValuesRequest.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::Tag::V20180813::Model;
  using namespace rapidjson;
  using namespace std;
  
  DescribeTagValuesRequest::DescribeTagValuesRequest() :
      m_tagKeysHasBeenSet(false),
      m_createUinHasBeenSet(false),
      m_offsetHasBeenSet(false),
      m_limitHasBeenSet(false)
  {
  }
  
  string DescribeTagValuesRequest::ToJsonString() const
  {
      Document d;
      d.SetObject();
      Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_tagKeysHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "TagKeys";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(kArrayType).Move(), allocator);
  
          for (auto itr = m_tagKeys.begin(); itr != m_tagKeys.end(); ++itr)
          {
              d[key.c_str()].PushBack(Value().SetString((*itr).c_str(), allocator), allocator);
          }
      }
  
      if (m_createUinHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "CreateUin";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, m_createUin, allocator);
      }
  
      if (m_offsetHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "Offset";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, m_offset, allocator);
      }
  
      if (m_limitHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "Limit";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, m_limit, allocator);
      }
  
  
      StringBuffer buffer;
      Writer<StringBuffer> writer(buffer);
      d.Accept(writer);
      return buffer.GetString();
  }
  
  
  vector<string> DescribeTagValuesRequest::GetTagKeys() const
  {
      return m_tagKeys;
  }
  
  void DescribeTagValuesRequest::SetTagKeys(const vector<string>& _tagKeys)
  {
      m_tagKeys = _tagKeys;
      m_tagKeysHasBeenSet = true;
  }
  
  bool DescribeTagValuesRequest::TagKeysHasBeenSet() const
  {
      return m_tagKeysHasBeenSet;
  }
  
  uint64_t DescribeTagValuesRequest::GetCreateUin() const
  {
      return m_createUin;
  }
  
  void DescribeTagValuesRequest::SetCreateUin(const uint64_t& _createUin)
  {
      m_createUin = _createUin;
      m_createUinHasBeenSet = true;
  }
  
  bool DescribeTagValuesRequest::CreateUinHasBeenSet() const
  {
      return m_createUinHasBeenSet;
  }
  
  uint64_t DescribeTagValuesRequest::GetOffset() const
  {
      return m_offset;
  }
  
  void DescribeTagValuesRequest::SetOffset(const uint64_t& _offset)
  {
      m_offset = _offset;
      m_offsetHasBeenSet = true;
  }
  
  bool DescribeTagValuesRequest::OffsetHasBeenSet() const
  {
      return m_offsetHasBeenSet;
  }
  
  uint64_t DescribeTagValuesRequest::GetLimit() const
  {
      return m_limit;
  }
  
  void DescribeTagValuesRequest::SetLimit(const uint64_t& _limit)
  {
      m_limit = _limit;
      m_limitHasBeenSet = true;
  }
  
  bool DescribeTagValuesRequest::LimitHasBeenSet() const
  {
      return m_limitHasBeenSet;
  }
  
  
  