UnbindQueueRequest.cc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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/foas/model/UnbindQueueRequest.h>
  17. using AlibabaCloud::Foas::Model::UnbindQueueRequest;
  18. UnbindQueueRequest::UnbindQueueRequest() :
  19. RoaServiceRequest("foas", "2018-11-11")
  20. {
  21. setResourcePath("/api/v2/projects/[projectName]/queue");
  22. setMethod(HttpRequest::Method::Delete);
  23. }
  24. UnbindQueueRequest::~UnbindQueueRequest()
  25. {}
  26. std::string UnbindQueueRequest::getQueueName()const
  27. {
  28. return queueName_;
  29. }
  30. void UnbindQueueRequest::setQueueName(const std::string& queueName)
  31. {
  32. queueName_ = queueName;
  33. setParameter("QueueName", queueName);
  34. }
  35. std::string UnbindQueueRequest::getProjectName()const
  36. {
  37. return projectName_;
  38. }
  39. void UnbindQueueRequest::setProjectName(const std::string& projectName)
  40. {
  41. projectName_ = projectName;
  42. setParameter("ProjectName", projectName);
  43. }
  44. std::string UnbindQueueRequest::getRegionId()const
  45. {
  46. return regionId_;
  47. }
  48. void UnbindQueueRequest::setRegionId(const std::string& regionId)
  49. {
  50. regionId_ = regionId;
  51. setHeader("RegionId", regionId);
  52. }
  53. std::string UnbindQueueRequest::getClusterId()const
  54. {
  55. return clusterId_;
  56. }
  57. void UnbindQueueRequest::setClusterId(const std::string& clusterId)
  58. {
  59. clusterId_ = clusterId;
  60. setParameter("ClusterId", clusterId);
  61. }