AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateFpgaImageRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/StorageLocation.h>
12#include <aws/ec2/model/TagSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API CreateFpgaImageRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateFpgaImage"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
45 inline bool GetDryRun() const { return m_dryRun; }
46 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
47 inline void SetDryRun(bool value) {
48 m_dryRunHasBeenSet = true;
49 m_dryRun = value;
50 }
51 inline CreateFpgaImageRequest& WithDryRun(bool value) {
52 SetDryRun(value);
53 return *this;
54 }
56
58
62 inline const StorageLocation& GetInputStorageLocation() const { return m_inputStorageLocation; }
63 inline bool InputStorageLocationHasBeenSet() const { return m_inputStorageLocationHasBeenSet; }
64 template <typename InputStorageLocationT = StorageLocation>
65 void SetInputStorageLocation(InputStorageLocationT&& value) {
66 m_inputStorageLocationHasBeenSet = true;
67 m_inputStorageLocation = std::forward<InputStorageLocationT>(value);
68 }
69 template <typename InputStorageLocationT = StorageLocation>
70 CreateFpgaImageRequest& WithInputStorageLocation(InputStorageLocationT&& value) {
71 SetInputStorageLocation(std::forward<InputStorageLocationT>(value));
72 return *this;
73 }
75
77
80 inline const StorageLocation& GetLogsStorageLocation() const { return m_logsStorageLocation; }
81 inline bool LogsStorageLocationHasBeenSet() const { return m_logsStorageLocationHasBeenSet; }
82 template <typename LogsStorageLocationT = StorageLocation>
83 void SetLogsStorageLocation(LogsStorageLocationT&& value) {
84 m_logsStorageLocationHasBeenSet = true;
85 m_logsStorageLocation = std::forward<LogsStorageLocationT>(value);
86 }
87 template <typename LogsStorageLocationT = StorageLocation>
88 CreateFpgaImageRequest& WithLogsStorageLocation(LogsStorageLocationT&& value) {
89 SetLogsStorageLocation(std::forward<LogsStorageLocationT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetName() const { return m_name; }
117 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
118 template <typename NameT = Aws::String>
119 void SetName(NameT&& value) {
120 m_nameHasBeenSet = true;
121 m_name = std::forward<NameT>(value);
122 }
123 template <typename NameT = Aws::String>
125 SetName(std::forward<NameT>(value));
126 return *this;
127 }
129
131
137 inline const Aws::String& GetClientToken() const { return m_clientToken; }
138 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
139 template <typename ClientTokenT = Aws::String>
140 void SetClientToken(ClientTokenT&& value) {
141 m_clientTokenHasBeenSet = true;
142 m_clientToken = std::forward<ClientTokenT>(value);
143 }
144 template <typename ClientTokenT = Aws::String>
146 SetClientToken(std::forward<ClientTokenT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
156 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
157 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
158 void SetTagSpecifications(TagSpecificationsT&& value) {
159 m_tagSpecificationsHasBeenSet = true;
160 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
161 }
162 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
163 CreateFpgaImageRequest& WithTagSpecifications(TagSpecificationsT&& value) {
164 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
165 return *this;
166 }
167 template <typename TagSpecificationsT = TagSpecification>
168 CreateFpgaImageRequest& AddTagSpecifications(TagSpecificationsT&& value) {
169 m_tagSpecificationsHasBeenSet = true;
170 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
171 return *this;
172 }
174 private:
175 bool m_dryRun{false};
176
177 StorageLocation m_inputStorageLocation;
178
179 StorageLocation m_logsStorageLocation;
180
181 Aws::String m_description;
182
183 Aws::String m_name;
184
185 Aws::String m_clientToken;
186
187 Aws::Vector<TagSpecification> m_tagSpecifications;
188 bool m_dryRunHasBeenSet = false;
189 bool m_inputStorageLocationHasBeenSet = false;
190 bool m_logsStorageLocationHasBeenSet = false;
191 bool m_descriptionHasBeenSet = false;
192 bool m_nameHasBeenSet = false;
193 bool m_clientTokenHasBeenSet = false;
194 bool m_tagSpecificationsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace EC2
199} // namespace Aws
CreateFpgaImageRequest & WithDryRun(bool value)
CreateFpgaImageRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateFpgaImageRequest & WithClientToken(ClientTokenT &&value)
CreateFpgaImageRequest & WithDescription(DescriptionT &&value)
void SetInputStorageLocation(InputStorageLocationT &&value)
AWS_EC2_API CreateFpgaImageRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateFpgaImageRequest & WithName(NameT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateFpgaImageRequest & WithLogsStorageLocation(LogsStorageLocationT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
const StorageLocation & GetInputStorageLocation() const
const StorageLocation & GetLogsStorageLocation() const
CreateFpgaImageRequest & WithTagSpecifications(TagSpecificationsT &&value)
void SetLogsStorageLocation(LogsStorageLocationT &&value)
CreateFpgaImageRequest & WithInputStorageLocation(InputStorageLocationT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector