UpdateTableRequest.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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_UPDATETABLEREQUEST_H_
  17. #define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATETABLEREQUEST_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 UpdateTableRequest : public RpcServiceRequest
  29. {
  30. public:
  31. struct Columns
  32. {
  33. int seqNumber;
  34. bool isPartitionCol;
  35. std::string columnNameCn;
  36. int length;
  37. std::string comment;
  38. std::string columnName;
  39. std::string columnType;
  40. };
  41. struct Themes
  42. {
  43. int themeLevel;
  44. long themeId;
  45. };
  46. public:
  47. UpdateTableRequest();
  48. ~UpdateTableRequest();
  49. int getVisibility()const;
  50. void setVisibility(int visibility);
  51. long getPhysicsLevelId()const;
  52. void setPhysicsLevelId(long physicsLevelId);
  53. std::vector<Columns> getColumns()const;
  54. void setColumns(const std::vector<Columns>& columns);
  55. std::string getOwnerId()const;
  56. void setOwnerId(const std::string& ownerId);
  57. int getLifeCycle()const;
  58. void setLifeCycle(int lifeCycle);
  59. std::vector<Themes> getThemes()const;
  60. void setThemes(const std::vector<Themes>& themes);
  61. long getLogicalLevelId()const;
  62. void setLogicalLevelId(long logicalLevelId);
  63. std::string getEndpoint()const;
  64. void setEndpoint(const std::string& endpoint);
  65. int getIsView()const;
  66. void setIsView(int isView);
  67. std::string getExternalTableType()const;
  68. void setExternalTableType(const std::string& externalTableType);
  69. int getEnvType()const;
  70. void setEnvType(int envType);
  71. std::string getLocation()const;
  72. void setLocation(const std::string& location);
  73. int getHasPart()const;
  74. void setHasPart(int hasPart);
  75. std::string getTableName()const;
  76. void setTableName(const std::string& tableName);
  77. std::string getAppGuid()const;
  78. void setAppGuid(const std::string& appGuid);
  79. long getProjectId()const;
  80. void setProjectId(long projectId);
  81. long getCategoryId()const;
  82. void setCategoryId(long categoryId);
  83. bool getCreateIfNotExists()const;
  84. void setCreateIfNotExists(bool createIfNotExists);
  85. private:
  86. int visibility_;
  87. long physicsLevelId_;
  88. std::vector<Columns> columns_;
  89. std::string ownerId_;
  90. int lifeCycle_;
  91. std::vector<Themes> themes_;
  92. long logicalLevelId_;
  93. std::string endpoint_;
  94. int isView_;
  95. std::string externalTableType_;
  96. int envType_;
  97. std::string location_;
  98. int hasPart_;
  99. std::string tableName_;
  100. std::string appGuid_;
  101. long projectId_;
  102. long categoryId_;
  103. bool createIfNotExists_;
  104. };
  105. }
  106. }
  107. }
  108. #endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATETABLEREQUEST_H_