AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CancelBundleTaskRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
23 public:
24 AWS_EC2_API CancelBundleTaskRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CancelBundleTask"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
42 inline const Aws::String& GetBundleId() const { return m_bundleId; }
43 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
44 template <typename BundleIdT = Aws::String>
45 void SetBundleId(BundleIdT&& value) {
46 m_bundleIdHasBeenSet = true;
47 m_bundleId = std::forward<BundleIdT>(value);
48 }
49 template <typename BundleIdT = Aws::String>
51 SetBundleId(std::forward<BundleIdT>(value));
52 return *this;
53 }
55
57
63 inline bool GetDryRun() const { return m_dryRun; }
64 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
65 inline void SetDryRun(bool value) {
66 m_dryRunHasBeenSet = true;
67 m_dryRun = value;
68 }
69 inline CancelBundleTaskRequest& WithDryRun(bool value) {
70 SetDryRun(value);
71 return *this;
72 }
74 private:
75 Aws::String m_bundleId;
76
77 bool m_dryRun{false};
78 bool m_bundleIdHasBeenSet = false;
79 bool m_dryRunHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace EC2
84} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CancelBundleTaskRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
CancelBundleTaskRequest & WithBundleId(BundleIdT &&value)
AWS_EC2_API CancelBundleTaskRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String