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/gaap/v20180529/model/DescribeResourcesByTagRequest.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::Gaap::V20180529::Model;
  using namespace rapidjson;
  using namespace std;
  
  DescribeResourcesByTagRequest::DescribeResourcesByTagRequest() :
      m_tagKeyHasBeenSet(false),
      m_tagValueHasBeenSet(false),
      m_resourceTypeHasBeenSet(false)
  {
  }
  
  string DescribeResourcesByTagRequest::ToJsonString() const
  {
      Document d;
      d.SetObject();
      Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_tagKeyHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "TagKey";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_tagKey.c_str(), allocator).Move(), allocator);
      }
  
      if (m_tagValueHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "TagValue";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_tagValue.c_str(), allocator).Move(), allocator);
      }
  
      if (m_resourceTypeHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "ResourceType";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_resourceType.c_str(), allocator).Move(), allocator);
      }
  
  
      StringBuffer buffer;
      Writer<StringBuffer> writer(buffer);
      d.Accept(writer);
      return buffer.GetString();
  }
  
  
  string DescribeResourcesByTagRequest::GetTagKey() const
  {
      return m_tagKey;
  }
  
  void DescribeResourcesByTagRequest::SetTagKey(const string& _tagKey)
  {
      m_tagKey = _tagKey;
      m_tagKeyHasBeenSet = true;
  }
  
  bool DescribeResourcesByTagRequest::TagKeyHasBeenSet() const
  {
      return m_tagKeyHasBeenSet;
  }
  
  string DescribeResourcesByTagRequest::GetTagValue() const
  {
      return m_tagValue;
  }
  
  void DescribeResourcesByTagRequest::SetTagValue(const string& _tagValue)
  {
      m_tagValue = _tagValue;
      m_tagValueHasBeenSet = true;
  }
  
  bool DescribeResourcesByTagRequest::TagValueHasBeenSet() const
  {
      return m_tagValueHasBeenSet;
  }
  
  string DescribeResourcesByTagRequest::GetResourceType() const
  {
      return m_resourceType;
  }
  
  void DescribeResourcesByTagRequest::SetResourceType(const string& _resourceType)
  {
      m_resourceType = _resourceType;
      m_resourceTypeHasBeenSet = true;
  }
  
  bool DescribeResourcesByTagRequest::ResourceTypeHasBeenSet() const
  {
      return m_resourceTypeHasBeenSet;
  }
  
  
  