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/mariadb/v20170312/model/ParamModifyResult.h>
  
  using TencentCloud::CoreInternalOutcome;
  using namespace TencentCloud::Mariadb::V20170312::Model;
  using namespace std;
  
  ParamModifyResult::ParamModifyResult() :
      m_paramHasBeenSet(false),
      m_codeHasBeenSet(false)
  {
  }
  
  CoreInternalOutcome ParamModifyResult::Deserialize(const rapidjson::Value &value)
  {
      string requestId = "";
  
  
      if (value.HasMember("Param") && !value["Param"].IsNull())
      {
          if (!value["Param"].IsString())
          {
              return CoreInternalOutcome(Core::Error("response `ParamModifyResult.Param` IsString=false incorrectly").SetRequestId(requestId));
          }
          m_param = string(value["Param"].GetString());
          m_paramHasBeenSet = true;
      }
  
      if (value.HasMember("Code") && !value["Code"].IsNull())
      {
          if (!value["Code"].IsInt64())
          {
              return CoreInternalOutcome(Core::Error("response `ParamModifyResult.Code` IsInt64=false incorrectly").SetRequestId(requestId));
          }
          m_code = value["Code"].GetInt64();
          m_codeHasBeenSet = true;
      }
  
  
      return CoreInternalOutcome(true);
  }
  
  void ParamModifyResult::ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const
  {
  
      if (m_paramHasBeenSet)
      {
          rapidjson::Value iKey(rapidjson::kStringType);
          string key = "Param";
          iKey.SetString(key.c_str(), allocator);
          value.AddMember(iKey, rapidjson::Value(m_param.c_str(), allocator).Move(), allocator);
      }
  
      if (m_codeHasBeenSet)
      {
          rapidjson::Value iKey(rapidjson::kStringType);
          string key = "Code";
          iKey.SetString(key.c_str(), allocator);
          value.AddMember(iKey, m_code, allocator);
      }
  
  }
  
  
  string ParamModifyResult::GetParam() const
  {
      return m_param;
  }
  
  void ParamModifyResult::SetParam(const string& _param)
  {
      m_param = _param;
      m_paramHasBeenSet = true;
  }
  
  bool ParamModifyResult::ParamHasBeenSet() const
  {
      return m_paramHasBeenSet;
  }
  
  int64_t ParamModifyResult::GetCode() const
  {
      return m_code;
  }
  
  void ParamModifyResult::SetCode(const int64_t& _code)
  {
      m_code = _code;
      m_codeHasBeenSet = true;
  }
  
  bool ParamModifyResult::CodeHasBeenSet() const
  {
      return m_codeHasBeenSet;
  }
  
  