AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRestoreImageTaskRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API CreateRestoreImageTaskRequest() = default;
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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetBucket() const { return m_bucket; }
46 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
47 template<typename BucketT = Aws::String>
48 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
49 template<typename BucketT = Aws::String>
50 CreateRestoreImageTaskRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
52
54
57 inline const Aws::String& GetObjectKey() const { return m_objectKey; }
58 inline bool ObjectKeyHasBeenSet() const { return m_objectKeyHasBeenSet; }
59 template<typename ObjectKeyT = Aws::String>
60 void SetObjectKey(ObjectKeyT&& value) { m_objectKeyHasBeenSet = true; m_objectKey = std::forward<ObjectKeyT>(value); }
61 template<typename ObjectKeyT = Aws::String>
62 CreateRestoreImageTaskRequest& WithObjectKey(ObjectKeyT&& value) { SetObjectKey(std::forward<ObjectKeyT>(value)); return *this;}
64
66
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template<typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
75 template<typename NameT = Aws::String>
76 CreateRestoreImageTaskRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
78
80
88 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
89 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
90 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
91 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
92 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
93 CreateRestoreImageTaskRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
94 template<typename TagSpecificationsT = TagSpecification>
95 CreateRestoreImageTaskRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
97
99
105 inline bool GetDryRun() const { return m_dryRun; }
106 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
107 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
108 inline CreateRestoreImageTaskRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
110 private:
111
112 Aws::String m_bucket;
113 bool m_bucketHasBeenSet = false;
114
115 Aws::String m_objectKey;
116 bool m_objectKeyHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::Vector<TagSpecification> m_tagSpecifications;
122 bool m_tagSpecificationsHasBeenSet = false;
123
124 bool m_dryRun{false};
125 bool m_dryRunHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EC2
130} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateRestoreImageTaskRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateRestoreImageTaskRequest & WithTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateRestoreImageTaskRequest & WithObjectKey(ObjectKeyT &&value)
CreateRestoreImageTaskRequest & WithBucket(BucketT &&value)
virtual const char * GetServiceRequestName() const override
CreateRestoreImageTaskRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateRestoreImageTaskRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector