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/hcm/v20181106/model/EvaluationRequest.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::Hcm::V20181106::Model;
  using namespace rapidjson;
  using namespace std;
  
  EvaluationRequest::EvaluationRequest() :
      m_sessionIdHasBeenSet(false),
      m_imageHasBeenSet(false),
      m_hcmAppidHasBeenSet(false),
      m_urlHasBeenSet(false),
      m_supportHorizontalImageHasBeenSet(false),
      m_rejectNonArithmeticImageHasBeenSet(false)
  {
  }
  
  string EvaluationRequest::ToJsonString() const
  {
      Document d;
      d.SetObject();
      Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_sessionIdHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "SessionId";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_sessionId.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_hcmAppidHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "HcmAppid";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_hcmAppid.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_supportHorizontalImageHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "SupportHorizontalImage";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, m_supportHorizontalImage, allocator);
      }
  
      if (m_rejectNonArithmeticImageHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "RejectNonArithmeticImage";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, m_rejectNonArithmeticImage, allocator);
      }
  
  
      StringBuffer buffer;
      Writer<StringBuffer> writer(buffer);
      d.Accept(writer);
      return buffer.GetString();
  }
  
  
  string EvaluationRequest::GetSessionId() const
  {
      return m_sessionId;
  }
  
  void EvaluationRequest::SetSessionId(const string& _sessionId)
  {
      m_sessionId = _sessionId;
      m_sessionIdHasBeenSet = true;
  }
  
  bool EvaluationRequest::SessionIdHasBeenSet() const
  {
      return m_sessionIdHasBeenSet;
  }
  
  string EvaluationRequest::GetImage() const
  {
      return m_image;
  }
  
  void EvaluationRequest::SetImage(const string& _image)
  {
      m_image = _image;
      m_imageHasBeenSet = true;
  }
  
  bool EvaluationRequest::ImageHasBeenSet() const
  {
      return m_imageHasBeenSet;
  }
  
  string EvaluationRequest::GetHcmAppid() const
  {
      return m_hcmAppid;
  }
  
  void EvaluationRequest::SetHcmAppid(const string& _hcmAppid)
  {
      m_hcmAppid = _hcmAppid;
      m_hcmAppidHasBeenSet = true;
  }
  
  bool EvaluationRequest::HcmAppidHasBeenSet() const
  {
      return m_hcmAppidHasBeenSet;
  }
  
  string EvaluationRequest::GetUrl() const
  {
      return m_url;
  }
  
  void EvaluationRequest::SetUrl(const string& _url)
  {
      m_url = _url;
      m_urlHasBeenSet = true;
  }
  
  bool EvaluationRequest::UrlHasBeenSet() const
  {
      return m_urlHasBeenSet;
  }
  
  bool EvaluationRequest::GetSupportHorizontalImage() const
  {
      return m_supportHorizontalImage;
  }
  
  void EvaluationRequest::SetSupportHorizontalImage(const bool& _supportHorizontalImage)
  {
      m_supportHorizontalImage = _supportHorizontalImage;
      m_supportHorizontalImageHasBeenSet = true;
  }
  
  bool EvaluationRequest::SupportHorizontalImageHasBeenSet() const
  {
      return m_supportHorizontalImageHasBeenSet;
  }
  
  bool EvaluationRequest::GetRejectNonArithmeticImage() const
  {
      return m_rejectNonArithmeticImage;
  }
  
  void EvaluationRequest::SetRejectNonArithmeticImage(const bool& _rejectNonArithmeticImage)
  {
      m_rejectNonArithmeticImage = _rejectNonArithmeticImage;
      m_rejectNonArithmeticImageHasBeenSet = true;
  }
  
  bool EvaluationRequest::RejectNonArithmeticImageHasBeenSet() const
  {
      return m_rejectNonArithmeticImageHasBeenSet;
  }
  
  
  