AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BundleInstanceRequest.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#include <aws/ec2/model/Storage.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
24 public:
25 AWS_EC2_API BundleInstanceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "BundleInstance"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 template <typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) {
47 m_instanceIdHasBeenSet = true;
48 m_instanceId = std::forward<InstanceIdT>(value);
49 }
50 template <typename InstanceIdT = Aws::String>
51 BundleInstanceRequest& WithInstanceId(InstanceIdT&& value) {
52 SetInstanceId(std::forward<InstanceIdT>(value));
53 return *this;
54 }
56
58
63 inline const Storage& GetStorage() const { return m_storage; }
64 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
65 template <typename StorageT = Storage>
66 void SetStorage(StorageT&& value) {
67 m_storageHasBeenSet = true;
68 m_storage = std::forward<StorageT>(value);
69 }
70 template <typename StorageT = Storage>
72 SetStorage(std::forward<StorageT>(value));
73 return *this;
74 }
76
78
84 inline bool GetDryRun() const { return m_dryRun; }
85 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
86 inline void SetDryRun(bool value) {
87 m_dryRunHasBeenSet = true;
88 m_dryRun = value;
89 }
90 inline BundleInstanceRequest& WithDryRun(bool value) {
91 SetDryRun(value);
92 return *this;
93 }
95 private:
96 Aws::String m_instanceId;
97
98 Storage m_storage;
99
100 bool m_dryRun{false};
101 bool m_instanceIdHasBeenSet = false;
102 bool m_storageHasBeenSet = false;
103 bool m_dryRunHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace EC2
108} // namespace Aws
virtual const char * GetServiceRequestName() const override
BundleInstanceRequest & WithInstanceId(InstanceIdT &&value)
BundleInstanceRequest & WithStorage(StorageT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API BundleInstanceRequest()=default
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
BundleInstanceRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String