AddDnsCacheDomainRequest.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. #ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_
  17. #define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_
  18. #include <string>
  19. #include <vector>
  20. #include <alibabacloud/core/RpcServiceRequest.h>
  21. #include <alibabacloud/alidns/AlidnsExport.h>
  22. namespace AlibabaCloud
  23. {
  24. namespace Alidns
  25. {
  26. namespace Model
  27. {
  28. class ALIBABACLOUD_ALIDNS_EXPORT AddDnsCacheDomainRequest : public RpcServiceRequest
  29. {
  30. public:
  31. struct SourceDnsServer
  32. {
  33. std::string port;
  34. std::string host;
  35. };
  36. public:
  37. AddDnsCacheDomainRequest();
  38. ~AddDnsCacheDomainRequest();
  39. std::string getRemark()const;
  40. void setRemark(const std::string& remark);
  41. std::string getAccessKeyId()const;
  42. void setAccessKeyId(const std::string& accessKeyId);
  43. std::string getSourceProtocol()const;
  44. void setSourceProtocol(const std::string& sourceProtocol);
  45. std::string getLang()const;
  46. void setLang(const std::string& lang);
  47. std::string getDomainName()const;
  48. void setDomainName(const std::string& domainName);
  49. int getCacheTtlMax()const;
  50. void setCacheTtlMax(int cacheTtlMax);
  51. std::string getInstanceId()const;
  52. void setInstanceId(const std::string& instanceId);
  53. std::string getSourceEdns()const;
  54. void setSourceEdns(const std::string& sourceEdns);
  55. std::string getUserClientIp()const;
  56. void setUserClientIp(const std::string& userClientIp);
  57. int getCacheTtlMin()const;
  58. void setCacheTtlMin(int cacheTtlMin);
  59. std::vector<SourceDnsServer> getSourceDnsServer()const;
  60. void setSourceDnsServer(const std::vector<SourceDnsServer>& sourceDnsServer);
  61. private:
  62. std::string remark_;
  63. std::string accessKeyId_;
  64. std::string sourceProtocol_;
  65. std::string lang_;
  66. std::string domainName_;
  67. int cacheTtlMax_;
  68. std::string instanceId_;
  69. std::string sourceEdns_;
  70. std::string userClientIp_;
  71. int cacheTtlMin_;
  72. std::vector<SourceDnsServer> sourceDnsServer_;
  73. };
  74. }
  75. }
  76. }
  77. #endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_