AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
50 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
51 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
52 inline BundleInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
53 inline BundleInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
54 inline BundleInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
56
58
63 inline const Storage& GetStorage() const{ return m_storage; }
64 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
65 inline void SetStorage(const Storage& value) { m_storageHasBeenSet = true; m_storage = value; }
66 inline void SetStorage(Storage&& value) { m_storageHasBeenSet = true; m_storage = std::move(value); }
67 inline BundleInstanceRequest& WithStorage(const Storage& value) { SetStorage(value); return *this;}
68 inline BundleInstanceRequest& WithStorage(Storage&& value) { SetStorage(std::move(value)); return *this;}
70
72
78 inline bool GetDryRun() const{ return m_dryRun; }
79 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
80 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
81 inline BundleInstanceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
83 private:
84
85 Aws::String m_instanceId;
86 bool m_instanceIdHasBeenSet = false;
87
88 Storage m_storage;
89 bool m_storageHasBeenSet = false;
90
91 bool m_dryRun;
92 bool m_dryRunHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace EC2
97} // namespace Aws
virtual const char * GetServiceRequestName() const override
BundleInstanceRequest & WithInstanceId(Aws::String &&value)
BundleInstanceRequest & WithStorage(Storage &&value)
BundleInstanceRequest & WithInstanceId(const Aws::String &value)
BundleInstanceRequest & WithInstanceId(const char *value)
BundleInstanceRequest & WithStorage(const Storage &value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetInstanceId(const Aws::String &value)
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