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/iai/v20180301/model/VerifyFaceRequest.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::Iai::V20180301::Model;
  using namespace rapidjson;
  using namespace std;
  
  VerifyFaceRequest::VerifyFaceRequest() :
      m_personIdHasBeenSet(false),
      m_imageHasBeenSet(false),
      m_urlHasBeenSet(false),
      m_qualityControlHasBeenSet(false),
      m_needRotateDetectionHasBeenSet(false)
  {
  }
  
  string VerifyFaceRequest::ToJsonString() const
  {
      Document d;
      d.SetObject();
      Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_personIdHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "PersonId";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_personId.c_str(), allocator).Move(), allocator);
      }
  
      if (m_imageHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "Image";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_image.c_str(), allocator).Move(), allocator);
      }
  
      if (m_urlHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "Url";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_url.c_str(), allocator).Move(), allocator);
      }
  
      if (m_qualityControlHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "QualityControl";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, m_qualityControl, allocator);
      }
  
      if (m_needRotateDetectionHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "NeedRotateDetection";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, m_needRotateDetection, allocator);
      }
  
  
      StringBuffer buffer;
      Writer<StringBuffer> writer(buffer);
      d.Accept(writer);
      return buffer.GetString();
  }
  
  
  string VerifyFaceRequest::GetPersonId() const
  {
      return m_personId;
  }
  
  void VerifyFaceRequest::SetPersonId(const string& _personId)
  {
      m_personId = _personId;
      m_personIdHasBeenSet = true;
  }
  
  bool VerifyFaceRequest::PersonIdHasBeenSet() const
  {
      return m_personIdHasBeenSet;
  }
  
  string VerifyFaceRequest::GetImage() const
  {
      return m_image;
  }
  
  void VerifyFaceRequest::SetImage(const string& _image)
  {
      m_image = _image;
      m_imageHasBeenSet = true;
  }
  
  bool VerifyFaceRequest::ImageHasBeenSet() const
  {
      return m_imageHasBeenSet;
  }
  
  string VerifyFaceRequest::GetUrl() const
  {
      return m_url;
  }
  
  void VerifyFaceRequest::SetUrl(const string& _url)
  {
      m_url = _url;
      m_urlHasBeenSet = true;
  }
  
  bool VerifyFaceRequest::UrlHasBeenSet() const
  {
      return m_urlHasBeenSet;
  }
  
  uint64_t VerifyFaceRequest::GetQualityControl() const
  {
      return m_qualityControl;
  }
  
  void VerifyFaceRequest::SetQualityControl(const uint64_t& _qualityControl)
  {
      m_qualityControl = _qualityControl;
      m_qualityControlHasBeenSet = true;
  }
  
  bool VerifyFaceRequest::QualityControlHasBeenSet() const
  {
      return m_qualityControlHasBeenSet;
  }
  
  uint64_t VerifyFaceRequest::GetNeedRotateDetection() const
  {
      return m_needRotateDetection;
  }
  
  void VerifyFaceRequest::SetNeedRotateDetection(const uint64_t& _needRotateDetection)
  {
      m_needRotateDetection = _needRotateDetection;
      m_needRotateDetectionHasBeenSet = true;
  }
  
  bool VerifyFaceRequest::NeedRotateDetectionHasBeenSet() const
  {
      return m_needRotateDetectionHasBeenSet;
  }
  
  
  