BatchExecuteStatementRequest.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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_RDS_DATA_MODEL_BATCHEXECUTESTATEMENTREQUEST_H_
  17. #define ALIBABACLOUD_RDS_DATA_MODEL_BATCHEXECUTESTATEMENTREQUEST_H_
  18. #include <alibabacloud/rds-data/Rds_dataExport.h>
  19. #include <alibabacloud/core/RpcServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace Rds_data {
  25. namespace Model {
  26. class ALIBABACLOUD_RDS_DATA_EXPORT BatchExecuteStatementRequest : public RpcServiceRequest {
  27. public:
  28. struct ParameterSetsItem {
  29. std::string name;
  30. std::string typeHint;
  31. struct Value {
  32. std::string arrayValue;
  33. std::string blobValue;
  34. bool booleanValue;
  35. bool isNull;
  36. long longValue;
  37. std::string stringValue;
  38. };
  39. Value value;
  40. };
  41. BatchExecuteStatementRequest();
  42. ~BatchExecuteStatementRequest();
  43. std::vector<std::vector<ParameterSetsItem>> getParameterSets() const;
  44. void setParameterSets(const std::vector<std::vector<ParameterSetsItem>> &parameterSets);
  45. std::string getTransactionId() const;
  46. void setTransactionId(const std::string &transactionId);
  47. std::string getSql() const;
  48. void setSql(const std::string &sql);
  49. std::string getDatabase() const;
  50. void setDatabase(const std::string &database);
  51. std::string getResourceArn() const;
  52. void setResourceArn(const std::string &resourceArn);
  53. std::string getSecretArn() const;
  54. void setSecretArn(const std::string &secretArn);
  55. private:
  56. std::vector<std::vector<ParameterSetsItem>> parameterSets_;
  57. std::string transactionId_;
  58. std::string sql_;
  59. std::string database_;
  60. std::string resourceArn_;
  61. std::string secretArn_;
  62. };
  63. } // namespace Model
  64. } // namespace Rds_data
  65. } // namespace AlibabaCloud
  66. #endif // !ALIBABACLOUD_RDS_DATA_MODEL_BATCHEXECUTESTATEMENTREQUEST_H_