AWS SDK for C++  1.9.69
AWS SDK for C++
BundleInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <aws/ec2/model/Storage.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
26  {
27  public:
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::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
47  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
48 
53  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
54 
59  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
60 
65  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
66 
71  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
72 
77  inline BundleInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
78 
83  inline BundleInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
84 
89  inline BundleInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
90 
91 
97  inline const Storage& GetStorage() const{ return m_storage; }
98 
104  inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
105 
111  inline void SetStorage(const Storage& value) { m_storageHasBeenSet = true; m_storage = value; }
112 
118  inline void SetStorage(Storage&& value) { m_storageHasBeenSet = true; m_storage = std::move(value); }
119 
125  inline BundleInstanceRequest& WithStorage(const Storage& value) { SetStorage(value); return *this;}
126 
132  inline BundleInstanceRequest& WithStorage(Storage&& value) { SetStorage(std::move(value)); return *this;}
133 
134 
141  inline bool GetDryRun() const{ return m_dryRun; }
142 
149  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
150 
157  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
158 
165  inline BundleInstanceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
166 
167  private:
168 
169  Aws::String m_instanceId;
170  bool m_instanceIdHasBeenSet;
171 
172  Storage m_storage;
173  bool m_storageHasBeenSet;
174 
175  bool m_dryRun;
176  bool m_dryRunHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace EC2
181 } // namespace Aws
Aws::EC2::Model::BundleInstanceRequest::WithStorage
BundleInstanceRequest & WithStorage(Storage &&value)
Definition: BundleInstanceRequest.h:132
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::BundleInstanceRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: BundleInstanceRequest.h:47
Aws::EC2::Model::BundleInstanceRequest::WithInstanceId
BundleInstanceRequest & WithInstanceId(const char *value)
Definition: BundleInstanceRequest.h:89
Aws::EC2::Model::BundleInstanceRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: BundleInstanceRequest.h:65
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Storage.h
Aws::EC2::Model::BundleInstanceRequest::GetStorage
const Storage & GetStorage() const
Definition: BundleInstanceRequest.h:97
Aws::EC2::Model::BundleInstanceRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: BundleInstanceRequest.h:71
Aws::EC2::Model::BundleInstanceRequest
Definition: BundleInstanceRequest.h:26
Aws::EC2::Model::Storage
Definition: Storage.h:33
Aws::EC2::Model::BundleInstanceRequest::StorageHasBeenSet
bool StorageHasBeenSet() const
Definition: BundleInstanceRequest.h:104
Aws::EC2::Model::BundleInstanceRequest::SetStorage
void SetStorage(Storage &&value)
Definition: BundleInstanceRequest.h:118
EC2Request.h
Aws::EC2::Model::BundleInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BundleInstanceRequest.h:34
AWSString.h
Aws::EC2::Model::BundleInstanceRequest::SetDryRun
void SetDryRun(bool value)
Definition: BundleInstanceRequest.h:157
Aws::EC2::Model::BundleInstanceRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: BundleInstanceRequest.h:53
Aws::EC2::Model::BundleInstanceRequest::GetDryRun
bool GetDryRun() const
Definition: BundleInstanceRequest.h:141
Aws::EC2::Model::BundleInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::BundleInstanceRequest::WithDryRun
BundleInstanceRequest & WithDryRun(bool value)
Definition: BundleInstanceRequest.h:165
Aws::EC2::Model::BundleInstanceRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: BundleInstanceRequest.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::BundleInstanceRequest::WithInstanceId
BundleInstanceRequest & WithInstanceId(const Aws::String &value)
Definition: BundleInstanceRequest.h:77
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::BundleInstanceRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: BundleInstanceRequest.h:149
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::BundleInstanceRequest::BundleInstanceRequest
BundleInstanceRequest()
EC2_EXPORTS.h
Aws::EC2::Model::BundleInstanceRequest::WithInstanceId
BundleInstanceRequest & WithInstanceId(Aws::String &&value)
Definition: BundleInstanceRequest.h:83
Aws::EC2::Model::BundleInstanceRequest::SetStorage
void SetStorage(const Storage &value)
Definition: BundleInstanceRequest.h:111
Aws::EC2::Model::BundleInstanceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::BundleInstanceRequest::WithStorage
BundleInstanceRequest & WithStorage(const Storage &value)
Definition: BundleInstanceRequest.h:125