CreateOrUpdateContactRequest.cc 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/arms/model/CreateOrUpdateContactRequest.h>
  17. using AlibabaCloud::ARMS::Model::CreateOrUpdateContactRequest;
  18. CreateOrUpdateContactRequest::CreateOrUpdateContactRequest()
  19. : RpcServiceRequest("arms", "2019-08-08", "CreateOrUpdateContact") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateOrUpdateContactRequest::~CreateOrUpdateContactRequest() {}
  23. long CreateOrUpdateContactRequest::getContactId() const {
  24. return contactId_;
  25. }
  26. void CreateOrUpdateContactRequest::setContactId(long contactId) {
  27. contactId_ = contactId;
  28. setBodyParameter(std::string("ContactId"), std::to_string(contactId));
  29. }
  30. long CreateOrUpdateContactRequest::getReissueSendNotice() const {
  31. return reissueSendNotice_;
  32. }
  33. void CreateOrUpdateContactRequest::setReissueSendNotice(long reissueSendNotice) {
  34. reissueSendNotice_ = reissueSendNotice;
  35. setBodyParameter(std::string("ReissueSendNotice"), std::to_string(reissueSendNotice));
  36. }
  37. bool CreateOrUpdateContactRequest::getIsVerify() const {
  38. return isVerify_;
  39. }
  40. void CreateOrUpdateContactRequest::setIsVerify(bool isVerify) {
  41. isVerify_ = isVerify;
  42. setBodyParameter(std::string("IsVerify"), isVerify ? "true" : "false");
  43. }
  44. std::string CreateOrUpdateContactRequest::getProxyUserId() const {
  45. return proxyUserId_;
  46. }
  47. void CreateOrUpdateContactRequest::setProxyUserId(const std::string &proxyUserId) {
  48. proxyUserId_ = proxyUserId;
  49. setBodyParameter(std::string("ProxyUserId"), proxyUserId);
  50. }
  51. std::string CreateOrUpdateContactRequest::getContactName() const {
  52. return contactName_;
  53. }
  54. void CreateOrUpdateContactRequest::setContactName(const std::string &contactName) {
  55. contactName_ = contactName;
  56. setBodyParameter(std::string("ContactName"), contactName);
  57. }
  58. std::string CreateOrUpdateContactRequest::getPhone() const {
  59. return phone_;
  60. }
  61. void CreateOrUpdateContactRequest::setPhone(const std::string &phone) {
  62. phone_ = phone;
  63. setBodyParameter(std::string("Phone"), phone);
  64. }
  65. std::string CreateOrUpdateContactRequest::getEmail() const {
  66. return email_;
  67. }
  68. void CreateOrUpdateContactRequest::setEmail(const std::string &email) {
  69. email_ = email;
  70. setBodyParameter(std::string("Email"), email);
  71. }