ModifyFirewallTemplateRequest.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_SWAS_OPEN_MODEL_MODIFYFIREWALLTEMPLATEREQUEST_H_
  17. #define ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYFIREWALLTEMPLATEREQUEST_H_
  18. #include <alibabacloud/swas-open/SWAS_OPENExport.h>
  19. #include <alibabacloud/core/RpcServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace SWAS_OPEN {
  25. namespace Model {
  26. class ALIBABACLOUD_SWAS_OPEN_EXPORT ModifyFirewallTemplateRequest : public RpcServiceRequest {
  27. public:
  28. struct FirewallTemplateRule {
  29. std::string firewallTemplateRuleId;
  30. std::string ruleProtocol;
  31. std::string port;
  32. std::string sourceCidrIp;
  33. std::string remark;
  34. };
  35. ModifyFirewallTemplateRequest();
  36. ~ModifyFirewallTemplateRequest();
  37. std::string getFirewallTemplateId() const;
  38. void setFirewallTemplateId(const std::string &firewallTemplateId);
  39. std::string getClientToken() const;
  40. void setClientToken(const std::string &clientToken);
  41. std::string getDescription() const;
  42. void setDescription(const std::string &description);
  43. std::string getInstanceId() const;
  44. void setInstanceId(const std::string &instanceId);
  45. std::string getRegionId() const;
  46. void setRegionId(const std::string &regionId);
  47. std::vector<FirewallTemplateRule> getFirewallTemplateRule() const;
  48. void setFirewallTemplateRule(const std::vector<FirewallTemplateRule> &firewallTemplateRule);
  49. std::string getName() const;
  50. void setName(const std::string &name);
  51. private:
  52. std::string firewallTemplateId_;
  53. std::string clientToken_;
  54. std::string description_;
  55. std::string instanceId_;
  56. std::string regionId_;
  57. std::vector<FirewallTemplateRule> firewallTemplateRule_;
  58. std::string name_;
  59. };
  60. } // namespace Model
  61. } // namespace SWAS_OPEN
  62. } // namespace AlibabaCloud
  63. #endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYFIREWALLTEMPLATEREQUEST_H_