CreateAScriptsRequest.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_ALB_MODEL_CREATEASCRIPTSREQUEST_H_
  17. #define ALIBABACLOUD_ALB_MODEL_CREATEASCRIPTSREQUEST_H_
  18. #include <alibabacloud/alb/AlbExport.h>
  19. #include <alibabacloud/core/RpcServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace Alb {
  25. namespace Model {
  26. class ALIBABACLOUD_ALB_EXPORT CreateAScriptsRequest : public RpcServiceRequest {
  27. public:
  28. struct AScripts {
  29. std::string aScriptName;
  30. bool extAttributeEnabled;
  31. std::string position;
  32. std::string scriptContent;
  33. struct ExtAttributesItem {
  34. std::string attributeValue;
  35. std::string attributeKey;
  36. };
  37. ExtAttributesItem extAttributesItem;
  38. std::vector<ExtAttributesItem> extAttributes;
  39. bool enabled;
  40. };
  41. CreateAScriptsRequest();
  42. ~CreateAScriptsRequest();
  43. std::string getClientToken() const;
  44. void setClientToken(const std::string &clientToken);
  45. std::string getListenerId() const;
  46. void setListenerId(const std::string &listenerId);
  47. std::vector<AScripts> getAScripts() const;
  48. void setAScripts(const std::vector<AScripts> &aScripts);
  49. bool getDryRun() const;
  50. void setDryRun(bool dryRun);
  51. private:
  52. std::string clientToken_;
  53. std::string listenerId_;
  54. std::vector<AScripts> aScripts_;
  55. bool dryRun_;
  56. };
  57. } // namespace Model
  58. } // namespace Alb
  59. } // namespace AlibabaCloud
  60. #endif // !ALIBABACLOUD_ALB_MODEL_CREATEASCRIPTSREQUEST_H_