CreateDataSourceRequest.cc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. #include <alibabacloud/dataworks-public/model/CreateDataSourceRequest.h>
  17. using AlibabaCloud::Dataworks_public::Model::CreateDataSourceRequest;
  18. CreateDataSourceRequest::CreateDataSourceRequest()
  19. : RpcServiceRequest("dataworks-public", "2020-05-18", "CreateDataSource") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateDataSourceRequest::~CreateDataSourceRequest() {}
  23. std::string CreateDataSourceRequest::getDataSourceType() const {
  24. return dataSourceType_;
  25. }
  26. void CreateDataSourceRequest::setDataSourceType(const std::string &dataSourceType) {
  27. dataSourceType_ = dataSourceType;
  28. setParameter(std::string("DataSourceType"), dataSourceType);
  29. }
  30. std::string CreateDataSourceRequest::getDescription() const {
  31. return description_;
  32. }
  33. void CreateDataSourceRequest::setDescription(const std::string &description) {
  34. description_ = description;
  35. setParameter(std::string("Description"), description);
  36. }
  37. std::string CreateDataSourceRequest::getContent() const {
  38. return content_;
  39. }
  40. void CreateDataSourceRequest::setContent(const std::string &content) {
  41. content_ = content;
  42. setParameter(std::string("Content"), content);
  43. }
  44. std::string CreateDataSourceRequest::getSubType() const {
  45. return subType_;
  46. }
  47. void CreateDataSourceRequest::setSubType(const std::string &subType) {
  48. subType_ = subType;
  49. setParameter(std::string("SubType"), subType);
  50. }
  51. int CreateDataSourceRequest::getEnvType() const {
  52. return envType_;
  53. }
  54. void CreateDataSourceRequest::setEnvType(int envType) {
  55. envType_ = envType;
  56. setParameter(std::string("EnvType"), std::to_string(envType));
  57. }
  58. long CreateDataSourceRequest::getProjectId() const {
  59. return projectId_;
  60. }
  61. void CreateDataSourceRequest::setProjectId(long projectId) {
  62. projectId_ = projectId;
  63. setParameter(std::string("ProjectId"), std::to_string(projectId));
  64. }
  65. std::string CreateDataSourceRequest::getName() const {
  66. return name_;
  67. }
  68. void CreateDataSourceRequest::setName(const std::string &name) {
  69. name_ = name;
  70. setParameter(std::string("Name"), name);
  71. }