CreateCommandRequest.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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_ECS_MODEL_CREATECOMMANDREQUEST_H_
  17. #define ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_
  18. #include <alibabacloud/ecs/EcsExport.h>
  19. #include <alibabacloud/core/RpcServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace Ecs {
  25. namespace Model {
  26. class ALIBABACLOUD_ECS_EXPORT CreateCommandRequest : public RpcServiceRequest {
  27. public:
  28. struct SystemTag {
  29. std::string key;
  30. std::string value;
  31. std::string scope;
  32. };
  33. struct Tag {
  34. std::string key;
  35. std::string value;
  36. };
  37. CreateCommandRequest();
  38. ~CreateCommandRequest();
  39. long getResourceOwnerId() const;
  40. void setResourceOwnerId(long resourceOwnerId);
  41. std::vector<SystemTag> getSystemTag() const;
  42. void setSystemTag(const std::vector<SystemTag> &systemTag);
  43. std::string getWorkingDir() const;
  44. void setWorkingDir(const std::string &workingDir);
  45. std::string getDescription() const;
  46. void setDescription(const std::string &description);
  47. std::string getType() const;
  48. void setType(const std::string &type);
  49. std::string getCommandContent() const;
  50. void setCommandContent(const std::string &commandContent);
  51. long getTimeout() const;
  52. void setTimeout(long timeout);
  53. std::string getResourceGroupId() const;
  54. void setResourceGroupId(const std::string &resourceGroupId);
  55. std::string getRegionId() const;
  56. void setRegionId(const std::string &regionId);
  57. std::string getContentEncoding() const;
  58. void setContentEncoding(const std::string &contentEncoding);
  59. std::vector<Tag> getTag() const;
  60. void setTag(const std::vector<Tag> &tag);
  61. std::string getResourceOwnerAccount() const;
  62. void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
  63. std::string getOwnerAccount() const;
  64. void setOwnerAccount(const std::string &ownerAccount);
  65. long getOwnerId() const;
  66. void setOwnerId(long ownerId);
  67. std::string getName() const;
  68. void setName(const std::string &name);
  69. bool getEnableParameter() const;
  70. void setEnableParameter(bool enableParameter);
  71. private:
  72. long resourceOwnerId_;
  73. std::vector<SystemTag> systemTag_;
  74. std::string workingDir_;
  75. std::string description_;
  76. std::string type_;
  77. std::string commandContent_;
  78. long timeout_;
  79. std::string resourceGroupId_;
  80. std::string regionId_;
  81. std::string contentEncoding_;
  82. std::vector<Tag> tag_;
  83. std::string resourceOwnerAccount_;
  84. std::string ownerAccount_;
  85. long ownerId_;
  86. std::string name_;
  87. bool enableParameter_;
  88. };
  89. } // namespace Model
  90. } // namespace Ecs
  91. } // namespace AlibabaCloud
  92. #endif // !ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_