AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BundleInstanceRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/Storage.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_EC2_API BundleInstanceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "BundleInstance"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
48 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
49 template<typename InstanceIdT = Aws::String>
50 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
51 template<typename InstanceIdT = Aws::String>
52 BundleInstanceRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
54
56
61 inline const Storage& GetStorage() const { return m_storage; }
62 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
63 template<typename StorageT = Storage>
64 void SetStorage(StorageT&& value) { m_storageHasBeenSet = true; m_storage = std::forward<StorageT>(value); }
65 template<typename StorageT = Storage>
66 BundleInstanceRequest& WithStorage(StorageT&& value) { SetStorage(std::forward<StorageT>(value)); return *this;}
68
70
76 inline bool GetDryRun() const { return m_dryRun; }
77 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
78 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
79 inline BundleInstanceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
81 private:
82
83 Aws::String m_instanceId;
84 bool m_instanceIdHasBeenSet = false;
85
86 Storage m_storage;
87 bool m_storageHasBeenSet = false;
88
89 bool m_dryRun{false};
90 bool m_dryRunHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // 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