AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFpgaImageRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/StorageLocation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EC2_API CreateFpgaImageRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateFpgaImage"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline bool GetDryRun() const { return m_dryRun; }
50 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
51 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 inline CreateFpgaImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
54
56
60 inline const StorageLocation& GetInputStorageLocation() const { return m_inputStorageLocation; }
61 inline bool InputStorageLocationHasBeenSet() const { return m_inputStorageLocationHasBeenSet; }
62 template<typename InputStorageLocationT = StorageLocation>
63 void SetInputStorageLocation(InputStorageLocationT&& value) { m_inputStorageLocationHasBeenSet = true; m_inputStorageLocation = std::forward<InputStorageLocationT>(value); }
64 template<typename InputStorageLocationT = StorageLocation>
65 CreateFpgaImageRequest& WithInputStorageLocation(InputStorageLocationT&& value) { SetInputStorageLocation(std::forward<InputStorageLocationT>(value)); return *this;}
67
69
72 inline const StorageLocation& GetLogsStorageLocation() const { return m_logsStorageLocation; }
73 inline bool LogsStorageLocationHasBeenSet() const { return m_logsStorageLocationHasBeenSet; }
74 template<typename LogsStorageLocationT = StorageLocation>
75 void SetLogsStorageLocation(LogsStorageLocationT&& value) { m_logsStorageLocationHasBeenSet = true; m_logsStorageLocation = std::forward<LogsStorageLocationT>(value); }
76 template<typename LogsStorageLocationT = StorageLocation>
77 CreateFpgaImageRequest& WithLogsStorageLocation(LogsStorageLocationT&& value) { SetLogsStorageLocation(std::forward<LogsStorageLocationT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 CreateFpgaImageRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template<typename NameT = Aws::String>
99 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
100 template<typename NameT = Aws::String>
101 CreateFpgaImageRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
103
105
111 inline const Aws::String& GetClientToken() const { return m_clientToken; }
112 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
113 template<typename ClientTokenT = Aws::String>
114 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
115 template<typename ClientTokenT = Aws::String>
116 CreateFpgaImageRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
118
120
123 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
124 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
125 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
126 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
127 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
128 CreateFpgaImageRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
129 template<typename TagSpecificationsT = TagSpecification>
130 CreateFpgaImageRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
132 private:
133
134 bool m_dryRun{false};
135 bool m_dryRunHasBeenSet = false;
136
137 StorageLocation m_inputStorageLocation;
138 bool m_inputStorageLocationHasBeenSet = false;
139
140 StorageLocation m_logsStorageLocation;
141 bool m_logsStorageLocationHasBeenSet = false;
142
143 Aws::String m_description;
144 bool m_descriptionHasBeenSet = false;
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
149 Aws::String m_clientToken;
150 bool m_clientTokenHasBeenSet = false;
151
152 Aws::Vector<TagSpecification> m_tagSpecifications;
153 bool m_tagSpecificationsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace EC2
158} // 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