SubmitLiveSnapshotJobRequest.cc 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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/ice/model/SubmitLiveSnapshotJobRequest.h>
  17. using AlibabaCloud::ICE::Model::SubmitLiveSnapshotJobRequest;
  18. SubmitLiveSnapshotJobRequest::SubmitLiveSnapshotJobRequest()
  19. : RpcServiceRequest("ice", "2020-11-09", "SubmitLiveSnapshotJob") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. SubmitLiveSnapshotJobRequest::~SubmitLiveSnapshotJobRequest() {}
  23. SubmitLiveSnapshotJobRequest::StreamInput SubmitLiveSnapshotJobRequest::getStreamInput() const {
  24. return streamInput_;
  25. }
  26. void SubmitLiveSnapshotJobRequest::setStreamInput(const SubmitLiveSnapshotJobRequest::StreamInput &streamInput) {
  27. streamInput_ = streamInput;
  28. setBodyParameter(std::string("StreamInput") + ".Type", streamInput.type);
  29. setBodyParameter(std::string("StreamInput") + ".Url", streamInput.url);
  30. }
  31. std::string SubmitLiveSnapshotJobRequest::getTemplateId() const {
  32. return templateId_;
  33. }
  34. void SubmitLiveSnapshotJobRequest::setTemplateId(const std::string &templateId) {
  35. templateId_ = templateId;
  36. setBodyParameter(std::string("TemplateId"), templateId);
  37. }
  38. SubmitLiveSnapshotJobRequest::SnapshotOutput SubmitLiveSnapshotJobRequest::getSnapshotOutput() const {
  39. return snapshotOutput_;
  40. }
  41. void SubmitLiveSnapshotJobRequest::setSnapshotOutput(const SubmitLiveSnapshotJobRequest::SnapshotOutput &snapshotOutput) {
  42. snapshotOutput_ = snapshotOutput;
  43. setBodyParameter(std::string("SnapshotOutput") + ".Bucket", snapshotOutput.bucket);
  44. setBodyParameter(std::string("SnapshotOutput") + ".Endpoint", snapshotOutput.endpoint);
  45. setBodyParameter(std::string("SnapshotOutput") + ".StorageType", snapshotOutput.storageType);
  46. }
  47. std::string SubmitLiveSnapshotJobRequest::getCallbackUrl() const {
  48. return callbackUrl_;
  49. }
  50. void SubmitLiveSnapshotJobRequest::setCallbackUrl(const std::string &callbackUrl) {
  51. callbackUrl_ = callbackUrl;
  52. setBodyParameter(std::string("CallbackUrl"), callbackUrl);
  53. }
  54. std::string SubmitLiveSnapshotJobRequest::getJobName() const {
  55. return jobName_;
  56. }
  57. void SubmitLiveSnapshotJobRequest::setJobName(const std::string &jobName) {
  58. jobName_ = jobName;
  59. setBodyParameter(std::string("JobName"), jobName);
  60. }