AWS SDK for C++  1.9.40
AWS SDK for C++
CreateRestoreImageTaskRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateRestoreImageTask"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetBucket() const{ return m_bucket; }
45 
49  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
50 
54  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
55 
59  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
60 
64  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
65 
69  inline CreateRestoreImageTaskRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
70 
74  inline CreateRestoreImageTaskRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
75 
79  inline CreateRestoreImageTaskRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
80 
81 
85  inline const Aws::String& GetObjectKey() const{ return m_objectKey; }
86 
90  inline bool ObjectKeyHasBeenSet() const { return m_objectKeyHasBeenSet; }
91 
95  inline void SetObjectKey(const Aws::String& value) { m_objectKeyHasBeenSet = true; m_objectKey = value; }
96 
100  inline void SetObjectKey(Aws::String&& value) { m_objectKeyHasBeenSet = true; m_objectKey = std::move(value); }
101 
105  inline void SetObjectKey(const char* value) { m_objectKeyHasBeenSet = true; m_objectKey.assign(value); }
106 
110  inline CreateRestoreImageTaskRequest& WithObjectKey(const Aws::String& value) { SetObjectKey(value); return *this;}
111 
115  inline CreateRestoreImageTaskRequest& WithObjectKey(Aws::String&& value) { SetObjectKey(std::move(value)); return *this;}
116 
120  inline CreateRestoreImageTaskRequest& WithObjectKey(const char* value) { SetObjectKey(value); return *this;}
121 
122 
128  inline const Aws::String& GetName() const{ return m_name; }
129 
135  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
136 
142  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
143 
149  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
150 
156  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
157 
163  inline CreateRestoreImageTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
164 
170  inline CreateRestoreImageTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
171 
177  inline CreateRestoreImageTaskRequest& WithName(const char* value) { SetName(value); return *this;}
178 
179 
188  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
189 
198  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
199 
208  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
209 
218  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
219 
228  inline CreateRestoreImageTaskRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
229 
238  inline CreateRestoreImageTaskRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
239 
248  inline CreateRestoreImageTaskRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
249 
258  inline CreateRestoreImageTaskRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
259 
260 
267  inline bool GetDryRun() const{ return m_dryRun; }
268 
275  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
276 
283  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
284 
291  inline CreateRestoreImageTaskRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
292 
293  private:
294 
295  Aws::String m_bucket;
296  bool m_bucketHasBeenSet;
297 
298  Aws::String m_objectKey;
299  bool m_objectKeyHasBeenSet;
300 
301  Aws::String m_name;
302  bool m_nameHasBeenSet;
303 
304  Aws::Vector<TagSpecification> m_tagSpecifications;
305  bool m_tagSpecificationsHasBeenSet;
306 
307  bool m_dryRun;
308  bool m_dryRunHasBeenSet;
309  };
310 
311 } // namespace Model
312 } // namespace EC2
313 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateRestoreImageTaskRequest::GetName
const Aws::String & GetName() const
Definition: CreateRestoreImageTaskRequest.h:128
Aws::EC2::Model::CreateRestoreImageTaskRequest::CreateRestoreImageTaskRequest
CreateRestoreImageTaskRequest()
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithObjectKey
CreateRestoreImageTaskRequest & WithObjectKey(const char *value)
Definition: CreateRestoreImageTaskRequest.h:120
Aws::EC2::Model::CreateRestoreImageTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRestoreImageTaskRequest.h:32
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithDryRun
CreateRestoreImageTaskRequest & WithDryRun(bool value)
Definition: CreateRestoreImageTaskRequest.h:291
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetObjectKey
void SetObjectKey(const char *value)
Definition: CreateRestoreImageTaskRequest.h:105
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithBucket
CreateRestoreImageTaskRequest & WithBucket(const char *value)
Definition: CreateRestoreImageTaskRequest.h:79
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetBucket
void SetBucket(const char *value)
Definition: CreateRestoreImageTaskRequest.h:64
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithBucket
CreateRestoreImageTaskRequest & WithBucket(const Aws::String &value)
Definition: CreateRestoreImageTaskRequest.h:69
Aws::EC2::Model::CreateRestoreImageTaskRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: CreateRestoreImageTaskRequest.h:49
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithObjectKey
CreateRestoreImageTaskRequest & WithObjectKey(Aws::String &&value)
Definition: CreateRestoreImageTaskRequest.h:115
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: CreateRestoreImageTaskRequest.h:59
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithName
CreateRestoreImageTaskRequest & WithName(const Aws::String &value)
Definition: CreateRestoreImageTaskRequest.h:163
Aws::EC2::Model::CreateRestoreImageTaskRequest::AddTagSpecifications
CreateRestoreImageTaskRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateRestoreImageTaskRequest.h:258
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithName
CreateRestoreImageTaskRequest & WithName(const char *value)
Definition: CreateRestoreImageTaskRequest.h:177
Aws::EC2::Model::CreateRestoreImageTaskRequest::GetBucket
const Aws::String & GetBucket() const
Definition: CreateRestoreImageTaskRequest.h:44
Aws::EC2::Model::CreateRestoreImageTaskRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateRestoreImageTaskRequest.h:188
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: CreateRestoreImageTaskRequest.h:54
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithObjectKey
CreateRestoreImageTaskRequest & WithObjectKey(const Aws::String &value)
Definition: CreateRestoreImageTaskRequest.h:110
AWSVector.h
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateRestoreImageTaskRequest.h:208
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateRestoreImageTaskRequest.h:149
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetName
void SetName(const char *value)
Definition: CreateRestoreImageTaskRequest.h:156
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithName
CreateRestoreImageTaskRequest & WithName(Aws::String &&value)
Definition: CreateRestoreImageTaskRequest.h:170
Aws::EC2::Model::CreateRestoreImageTaskRequest::ObjectKeyHasBeenSet
bool ObjectKeyHasBeenSet() const
Definition: CreateRestoreImageTaskRequest.h:90
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateRestoreImageTaskRequest.h:142
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateRestoreImageTaskRequest.h:218
EC2Request.h
Aws::EC2::Model::CreateRestoreImageTaskRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithTagSpecifications
CreateRestoreImageTaskRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateRestoreImageTaskRequest.h:228
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithTagSpecifications
CreateRestoreImageTaskRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateRestoreImageTaskRequest.h:238
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetObjectKey
void SetObjectKey(Aws::String &&value)
Definition: CreateRestoreImageTaskRequest.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetObjectKey
void SetObjectKey(const Aws::String &value)
Definition: CreateRestoreImageTaskRequest.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateRestoreImageTaskRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateRestoreImageTaskRequest.h:275
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateRestoreImageTaskRequest::AddTagSpecifications
CreateRestoreImageTaskRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateRestoreImageTaskRequest.h:248
Aws::EC2::Model::CreateRestoreImageTaskRequest::GetDryRun
bool GetDryRun() const
Definition: CreateRestoreImageTaskRequest.h:267
Aws::EC2::Model::CreateRestoreImageTaskRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateRestoreImageTaskRequest.h:198
Aws::EC2::Model::CreateRestoreImageTaskRequest::WithBucket
CreateRestoreImageTaskRequest & WithBucket(Aws::String &&value)
Definition: CreateRestoreImageTaskRequest.h:74
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateRestoreImageTaskRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateRestoreImageTaskRequest
Definition: CreateRestoreImageTaskRequest.h:24
Aws::EC2::Model::CreateRestoreImageTaskRequest::GetObjectKey
const Aws::String & GetObjectKey() const
Definition: CreateRestoreImageTaskRequest.h:85
Aws::EC2::Model::CreateRestoreImageTaskRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateRestoreImageTaskRequest.h:135
Aws::EC2::Model::CreateRestoreImageTaskRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateRestoreImageTaskRequest.h:283