AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetInputStorageLocation(const StorageLocation& value) { m_inputStorageLocationHasBeenSet = true; m_inputStorageLocation = value; }
63 inline void SetInputStorageLocation(StorageLocation&& value) { m_inputStorageLocationHasBeenSet = true; m_inputStorageLocation = std::move(value); }
67
69
72 inline const StorageLocation& GetLogsStorageLocation() const{ return m_logsStorageLocation; }
73 inline bool LogsStorageLocationHasBeenSet() const { return m_logsStorageLocationHasBeenSet; }
74 inline void SetLogsStorageLocation(const StorageLocation& value) { m_logsStorageLocationHasBeenSet = true; m_logsStorageLocation = value; }
75 inline void SetLogsStorageLocation(StorageLocation&& value) { m_logsStorageLocationHasBeenSet = true; m_logsStorageLocation = std::move(value); }
77 inline CreateFpgaImageRequest& WithLogsStorageLocation(StorageLocation&& value) { SetLogsStorageLocation(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline CreateFpgaImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline CreateFpgaImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline CreateFpgaImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
93
95
98 inline const Aws::String& GetName() const{ return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
101 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
102 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
103 inline CreateFpgaImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
104 inline CreateFpgaImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
105 inline CreateFpgaImageRequest& WithName(const char* value) { SetName(value); return *this;}
107
109
115 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
116 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
117 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
118 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
119 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
120 inline CreateFpgaImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
121 inline CreateFpgaImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
122 inline CreateFpgaImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
124
126
129 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
130 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
131 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
132 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
135 inline CreateFpgaImageRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
136 inline CreateFpgaImageRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
138 private:
139
140 bool m_dryRun;
141 bool m_dryRunHasBeenSet = false;
142
143 StorageLocation m_inputStorageLocation;
144 bool m_inputStorageLocationHasBeenSet = false;
145
146 StorageLocation m_logsStorageLocation;
147 bool m_logsStorageLocationHasBeenSet = false;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
155 Aws::String m_clientToken;
156 bool m_clientTokenHasBeenSet = false;
157
158 Aws::Vector<TagSpecification> m_tagSpecifications;
159 bool m_tagSpecificationsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace EC2
164} // namespace Aws
CreateFpgaImageRequest & WithDryRun(bool value)
CreateFpgaImageRequest & WithName(const Aws::String &value)
void SetLogsStorageLocation(StorageLocation &&value)
CreateFpgaImageRequest & WithClientToken(const Aws::String &value)
CreateFpgaImageRequest & WithDescription(Aws::String &&value)
CreateFpgaImageRequest & WithClientToken(Aws::String &&value)
CreateFpgaImageRequest & AddTagSpecifications(const TagSpecification &value)
CreateFpgaImageRequest & WithInputStorageLocation(StorageLocation &&value)
CreateFpgaImageRequest & WithName(const char *value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateFpgaImageRequest & WithLogsStorageLocation(StorageLocation &&value)
CreateFpgaImageRequest & WithDescription(const Aws::String &value)
CreateFpgaImageRequest & WithClientToken(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetInputStorageLocation(StorageLocation &&value)
CreateFpgaImageRequest & WithInputStorageLocation(const StorageLocation &value)
CreateFpgaImageRequest & WithDescription(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateFpgaImageRequest & WithLogsStorageLocation(const StorageLocation &value)
CreateFpgaImageRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetClientToken(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
const StorageLocation & GetInputStorageLocation() const
const StorageLocation & GetLogsStorageLocation() const
CreateFpgaImageRequest & WithName(Aws::String &&value)
CreateFpgaImageRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateFpgaImageRequest & AddTagSpecifications(TagSpecification &&value)
void SetDescription(const Aws::String &value)
void SetLogsStorageLocation(const StorageLocation &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetInputStorageLocation(const StorageLocation &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector