GetCodeCompletionRequest.cc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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/codeup/model/GetCodeCompletionRequest.h>
  17. using AlibabaCloud::Codeup::Model::GetCodeCompletionRequest;
  18. GetCodeCompletionRequest::GetCodeCompletionRequest() :
  19. RoaServiceRequest("codeup", "2020-04-14")
  20. {
  21. setResourcePath("/api/v2/service/invoke/[ServiceName]");
  22. setMethod(HttpRequest::Method::Post);
  23. }
  24. GetCodeCompletionRequest::~GetCodeCompletionRequest()
  25. {}
  26. bool GetCodeCompletionRequest::getIsEncrypted()const
  27. {
  28. return isEncrypted_;
  29. }
  30. void GetCodeCompletionRequest::setIsEncrypted(bool isEncrypted)
  31. {
  32. isEncrypted_ = isEncrypted;
  33. setParameter("IsEncrypted", isEncrypted ? "true" : "false");
  34. }
  35. std::string GetCodeCompletionRequest::getFetchKeys()const
  36. {
  37. return fetchKeys_;
  38. }
  39. void GetCodeCompletionRequest::setFetchKeys(const std::string& fetchKeys)
  40. {
  41. fetchKeys_ = fetchKeys;
  42. setParameter("FetchKeys", fetchKeys);
  43. }
  44. std::string GetCodeCompletionRequest::getServiceName()const
  45. {
  46. return serviceName_;
  47. }
  48. void GetCodeCompletionRequest::setServiceName(const std::string& serviceName)
  49. {
  50. serviceName_ = serviceName;
  51. setParameter("ServiceName", serviceName);
  52. }