AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CopyFpgaImageRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API CopyFpgaImageRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CopyFpgaImage"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
42 inline bool GetDryRun() const { return m_dryRun; }
43 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
44 inline void SetDryRun(bool value) {
45 m_dryRunHasBeenSet = true;
46 m_dryRun = value;
47 }
48 inline CopyFpgaImageRequest& WithDryRun(bool value) {
49 SetDryRun(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSourceFpgaImageId() const { return m_sourceFpgaImageId; }
59 inline bool SourceFpgaImageIdHasBeenSet() const { return m_sourceFpgaImageIdHasBeenSet; }
60 template <typename SourceFpgaImageIdT = Aws::String>
61 void SetSourceFpgaImageId(SourceFpgaImageIdT&& value) {
62 m_sourceFpgaImageIdHasBeenSet = true;
63 m_sourceFpgaImageId = std::forward<SourceFpgaImageIdT>(value);
64 }
65 template <typename SourceFpgaImageIdT = Aws::String>
66 CopyFpgaImageRequest& WithSourceFpgaImageId(SourceFpgaImageIdT&& value) {
67 SetSourceFpgaImageId(std::forward<SourceFpgaImageIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 CopyFpgaImageRequest& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetName() const { return m_name; }
95 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 template <typename NameT = Aws::String>
97 void SetName(NameT&& value) {
98 m_nameHasBeenSet = true;
99 m_name = std::forward<NameT>(value);
100 }
101 template <typename NameT = Aws::String>
103 SetName(std::forward<NameT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
113 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
114 template <typename SourceRegionT = Aws::String>
115 void SetSourceRegion(SourceRegionT&& value) {
116 m_sourceRegionHasBeenSet = true;
117 m_sourceRegion = std::forward<SourceRegionT>(value);
118 }
119 template <typename SourceRegionT = Aws::String>
120 CopyFpgaImageRequest& WithSourceRegion(SourceRegionT&& value) {
121 SetSourceRegion(std::forward<SourceRegionT>(value));
122 return *this;
123 }
125
127
133 inline const Aws::String& GetClientToken() const { return m_clientToken; }
134 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
135 template <typename ClientTokenT = Aws::String>
136 void SetClientToken(ClientTokenT&& value) {
137 m_clientTokenHasBeenSet = true;
138 m_clientToken = std::forward<ClientTokenT>(value);
139 }
140 template <typename ClientTokenT = Aws::String>
141 CopyFpgaImageRequest& WithClientToken(ClientTokenT&& value) {
142 SetClientToken(std::forward<ClientTokenT>(value));
143 return *this;
144 }
146 private:
147 bool m_dryRun{false};
148
149 Aws::String m_sourceFpgaImageId;
150
151 Aws::String m_description;
152
153 Aws::String m_name;
154
155 Aws::String m_sourceRegion;
156
157 Aws::String m_clientToken;
158 bool m_dryRunHasBeenSet = false;
159 bool m_sourceFpgaImageIdHasBeenSet = false;
160 bool m_descriptionHasBeenSet = false;
161 bool m_nameHasBeenSet = false;
162 bool m_sourceRegionHasBeenSet = false;
163 bool m_clientTokenHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
CopyFpgaImageRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetClientToken() const
void SetSourceRegion(SourceRegionT &&value)
CopyFpgaImageRequest & WithDescription(DescriptionT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::String & GetDescription() const
AWS_EC2_API CopyFpgaImageRequest()=default
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopyFpgaImageRequest & WithSourceRegion(SourceRegionT &&value)
void SetDescription(DescriptionT &&value)
CopyFpgaImageRequest & WithName(NameT &&value)
const Aws::String & GetSourceRegion() const
CopyFpgaImageRequest & WithSourceFpgaImageId(SourceFpgaImageIdT &&value)
const Aws::String & GetSourceFpgaImageId() const
void SetSourceFpgaImageId(SourceFpgaImageIdT &&value)
CopyFpgaImageRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String