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/redis/v20180412/model/ManualBackupInstanceRequest.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::Redis::V20180412::Model;
  using namespace std;
  
  ManualBackupInstanceRequest::ManualBackupInstanceRequest() :
      m_instanceIdHasBeenSet(false),
      m_remarkHasBeenSet(false)
  {
  }
  
  string ManualBackupInstanceRequest::ToJsonString() const
  {
      rapidjson::Document d;
      d.SetObject();
      rapidjson::Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_instanceIdHasBeenSet)
      {
          rapidjson::Value iKey(rapidjson::kStringType);
          string key = "InstanceId";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, rapidjson::Value(m_instanceId.c_str(), allocator).Move(), allocator);
      }
  
      if (m_remarkHasBeenSet)
      {
          rapidjson::Value iKey(rapidjson::kStringType);
          string key = "Remark";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, rapidjson::Value(m_remark.c_str(), allocator).Move(), allocator);
      }
  
  
      rapidjson::StringBuffer buffer;
      rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
      d.Accept(writer);
      return buffer.GetString();
  }
  
  
  string ManualBackupInstanceRequest::GetInstanceId() const
  {
      return m_instanceId;
  }
  
  void ManualBackupInstanceRequest::SetInstanceId(const string& _instanceId)
  {
      m_instanceId = _instanceId;
      m_instanceIdHasBeenSet = true;
  }
  
  bool ManualBackupInstanceRequest::InstanceIdHasBeenSet() const
  {
      return m_instanceIdHasBeenSet;
  }
  
  string ManualBackupInstanceRequest::GetRemark() const
  {
      return m_remark;
  }
  
  void ManualBackupInstanceRequest::SetRemark(const string& _remark)
  {
      m_remark = _remark;
      m_remarkHasBeenSet = true;
  }
  
  bool ManualBackupInstanceRequest::RemarkHasBeenSet() const
  {
      return m_remarkHasBeenSet;
  }
  
  
  