CreateViewRequest.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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_DATAWORKS_PUBLIC_MODEL_CREATEVIEWREQUEST_H_
  17. #define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEVIEWREQUEST_H_
  18. #include <string>
  19. #include <vector>
  20. #include <alibabacloud/core/RpcServiceRequest.h>
  21. #include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
  22. namespace AlibabaCloud
  23. {
  24. namespace Dataworks_public
  25. {
  26. namespace Model
  27. {
  28. class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateViewRequest : public RpcServiceRequest
  29. {
  30. public:
  31. struct ViewColumn
  32. {
  33. std::string comment;
  34. std::string columnName;
  35. };
  36. public:
  37. CreateViewRequest();
  38. ~CreateViewRequest();
  39. std::string getViewName()const;
  40. void setViewName(const std::string& viewName);
  41. std::string getClientToken()const;
  42. void setClientToken(const std::string& clientToken);
  43. std::string getSelectSQL()const;
  44. void setSelectSQL(const std::string& selectSQL);
  45. std::string getSelectWhere()const;
  46. void setSelectWhere(const std::string& selectWhere);
  47. std::string getSelectTableName()const;
  48. void setSelectTableName(const std::string& selectTableName);
  49. std::string getComment()const;
  50. void setComment(const std::string& comment);
  51. std::string getSelectColumn()const;
  52. void setSelectColumn(const std::string& selectColumn);
  53. std::string getAppGuid()const;
  54. void setAppGuid(const std::string& appGuid);
  55. std::vector<ViewColumn> getViewColumn()const;
  56. void setViewColumn(const std::vector<ViewColumn>& viewColumn);
  57. private:
  58. std::string viewName_;
  59. std::string clientToken_;
  60. std::string selectSQL_;
  61. std::string selectWhere_;
  62. std::string selectTableName_;
  63. std::string comment_;
  64. std::string selectColumn_;
  65. std::string appGuid_;
  66. std::vector<ViewColumn> viewColumn_;
  67. };
  68. }
  69. }
  70. }
  71. #endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_CREATEVIEWREQUEST_H_