DescribeSynchronizationJobAlertResult.cc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <alibabacloud/dts/model/DescribeSynchronizationJobAlertResult.h>
  17. #include <json/json.h>
  18. using namespace AlibabaCloud::Dts;
  19. using namespace AlibabaCloud::Dts::Model;
  20. DescribeSynchronizationJobAlertResult::DescribeSynchronizationJobAlertResult() :
  21. ServiceResult()
  22. {}
  23. DescribeSynchronizationJobAlertResult::DescribeSynchronizationJobAlertResult(const std::string &payload) :
  24. ServiceResult()
  25. {
  26. parse(payload);
  27. }
  28. DescribeSynchronizationJobAlertResult::~DescribeSynchronizationJobAlertResult()
  29. {}
  30. void DescribeSynchronizationJobAlertResult::parse(const std::string &payload)
  31. {
  32. Json::Reader reader;
  33. Json::Value value;
  34. reader.parse(payload, value);
  35. setRequestId(value["RequestId"].asString());
  36. if(!value["DelayAlertPhone"].isNull())
  37. delayAlertPhone_ = value["DelayAlertPhone"].asString();
  38. if(!value["DelayAlertStatus"].isNull())
  39. delayAlertStatus_ = value["DelayAlertStatus"].asString();
  40. if(!value["DelayOverSeconds"].isNull())
  41. delayOverSeconds_ = value["DelayOverSeconds"].asString();
  42. if(!value["ErrCode"].isNull())
  43. errCode_ = value["ErrCode"].asString();
  44. if(!value["ErrMessage"].isNull())
  45. errMessage_ = value["ErrMessage"].asString();
  46. if(!value["ErrorAlertPhone"].isNull())
  47. errorAlertPhone_ = value["ErrorAlertPhone"].asString();
  48. if(!value["ErrorAlertStatus"].isNull())
  49. errorAlertStatus_ = value["ErrorAlertStatus"].asString();
  50. if(!value["Success"].isNull())
  51. success_ = value["Success"].asString();
  52. if(!value["SynchronizationDirection"].isNull())
  53. synchronizationDirection_ = value["SynchronizationDirection"].asString();
  54. if(!value["SynchronizationJobId"].isNull())
  55. synchronizationJobId_ = value["SynchronizationJobId"].asString();
  56. if(!value["SynchronizationJobName"].isNull())
  57. synchronizationJobName_ = value["SynchronizationJobName"].asString();
  58. }
  59. std::string DescribeSynchronizationJobAlertResult::getErrorAlertPhone()const
  60. {
  61. return errorAlertPhone_;
  62. }
  63. std::string DescribeSynchronizationJobAlertResult::getSynchronizationJobId()const
  64. {
  65. return synchronizationJobId_;
  66. }
  67. std::string DescribeSynchronizationJobAlertResult::getSynchronizationJobName()const
  68. {
  69. return synchronizationJobName_;
  70. }
  71. std::string DescribeSynchronizationJobAlertResult::getDelayAlertPhone()const
  72. {
  73. return delayAlertPhone_;
  74. }
  75. std::string DescribeSynchronizationJobAlertResult::getErrorAlertStatus()const
  76. {
  77. return errorAlertStatus_;
  78. }
  79. std::string DescribeSynchronizationJobAlertResult::getErrMessage()const
  80. {
  81. return errMessage_;
  82. }
  83. std::string DescribeSynchronizationJobAlertResult::getDelayAlertStatus()const
  84. {
  85. return delayAlertStatus_;
  86. }
  87. std::string DescribeSynchronizationJobAlertResult::getDelayOverSeconds()const
  88. {
  89. return delayOverSeconds_;
  90. }
  91. std::string DescribeSynchronizationJobAlertResult::getSuccess()const
  92. {
  93. return success_;
  94. }
  95. std::string DescribeSynchronizationJobAlertResult::getSynchronizationDirection()const
  96. {
  97. return synchronizationDirection_;
  98. }
  99. std::string DescribeSynchronizationJobAlertResult::getErrCode()const
  100. {
  101. return errCode_;
  102. }