PullImageRequest.cc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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/ehpc/model/PullImageRequest.h>
  17. using AlibabaCloud::EHPC::Model::PullImageRequest;
  18. PullImageRequest::PullImageRequest()
  19. : RpcServiceRequest("ehpc", "2018-04-12", "PullImage") {
  20. setMethod(HttpRequest::Method::Get);
  21. }
  22. PullImageRequest::~PullImageRequest() {}
  23. std::string PullImageRequest::getClusterId() const {
  24. return clusterId_;
  25. }
  26. void PullImageRequest::setClusterId(const std::string &clusterId) {
  27. clusterId_ = clusterId;
  28. setParameter(std::string("ClusterId"), clusterId);
  29. }
  30. std::string PullImageRequest::getRepository() const {
  31. return repository_;
  32. }
  33. void PullImageRequest::setRepository(const std::string &repository) {
  34. repository_ = repository;
  35. setParameter(std::string("Repository"), repository);
  36. }
  37. std::string PullImageRequest::getAccessKeyId() const {
  38. return accessKeyId_;
  39. }
  40. void PullImageRequest::setAccessKeyId(const std::string &accessKeyId) {
  41. accessKeyId_ = accessKeyId;
  42. setParameter(std::string("AccessKeyId"), accessKeyId);
  43. }
  44. std::string PullImageRequest::getContainerType() const {
  45. return containerType_;
  46. }
  47. void PullImageRequest::setContainerType(const std::string &containerType) {
  48. containerType_ = containerType;
  49. setParameter(std::string("ContainerType"), containerType);
  50. }
  51. std::string PullImageRequest::getImageTag() const {
  52. return imageTag_;
  53. }
  54. void PullImageRequest::setImageTag(const std::string &imageTag) {
  55. imageTag_ = imageTag;
  56. setParameter(std::string("ImageTag"), imageTag);
  57. }