AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateQuantumTaskRequest.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/braket/BraketRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/braket/model/Association.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Braket
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BRAKET_API CreateQuantumTaskRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateQuantumTask"; }
35
36 AWS_BRAKET_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetAction() const{ return m_action; }
44 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
45 inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
46 inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
47 inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
48 inline CreateQuantumTaskRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
49 inline CreateQuantumTaskRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
50 inline CreateQuantumTaskRequest& WithAction(const char* value) { SetAction(value); return *this;}
52
54
57 inline const Aws::Vector<Association>& GetAssociations() const{ return m_associations; }
58 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
59 inline void SetAssociations(const Aws::Vector<Association>& value) { m_associationsHasBeenSet = true; m_associations = value; }
60 inline void SetAssociations(Aws::Vector<Association>&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); }
62 inline CreateQuantumTaskRequest& WithAssociations(Aws::Vector<Association>&& value) { SetAssociations(std::move(value)); return *this;}
63 inline CreateQuantumTaskRequest& AddAssociations(const Association& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; }
64 inline CreateQuantumTaskRequest& AddAssociations(Association&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; }
66
68
71 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
72 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
73 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
74 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
75 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
76 inline CreateQuantumTaskRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
77 inline CreateQuantumTaskRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
78 inline CreateQuantumTaskRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
80
82
85 inline const Aws::String& GetDeviceArn() const{ return m_deviceArn; }
86 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
87 inline void SetDeviceArn(const Aws::String& value) { m_deviceArnHasBeenSet = true; m_deviceArn = value; }
88 inline void SetDeviceArn(Aws::String&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::move(value); }
89 inline void SetDeviceArn(const char* value) { m_deviceArnHasBeenSet = true; m_deviceArn.assign(value); }
90 inline CreateQuantumTaskRequest& WithDeviceArn(const Aws::String& value) { SetDeviceArn(value); return *this;}
91 inline CreateQuantumTaskRequest& WithDeviceArn(Aws::String&& value) { SetDeviceArn(std::move(value)); return *this;}
92 inline CreateQuantumTaskRequest& WithDeviceArn(const char* value) { SetDeviceArn(value); return *this;}
94
96
99 inline const Aws::String& GetDeviceParameters() const{ return m_deviceParameters; }
100 inline bool DeviceParametersHasBeenSet() const { return m_deviceParametersHasBeenSet; }
101 inline void SetDeviceParameters(const Aws::String& value) { m_deviceParametersHasBeenSet = true; m_deviceParameters = value; }
102 inline void SetDeviceParameters(Aws::String&& value) { m_deviceParametersHasBeenSet = true; m_deviceParameters = std::move(value); }
103 inline void SetDeviceParameters(const char* value) { m_deviceParametersHasBeenSet = true; m_deviceParameters.assign(value); }
105 inline CreateQuantumTaskRequest& WithDeviceParameters(Aws::String&& value) { SetDeviceParameters(std::move(value)); return *this;}
106 inline CreateQuantumTaskRequest& WithDeviceParameters(const char* value) { SetDeviceParameters(value); return *this;}
108
110
114 inline const Aws::String& GetJobToken() const{ return m_jobToken; }
115 inline bool JobTokenHasBeenSet() const { return m_jobTokenHasBeenSet; }
116 inline void SetJobToken(const Aws::String& value) { m_jobTokenHasBeenSet = true; m_jobToken = value; }
117 inline void SetJobToken(Aws::String&& value) { m_jobTokenHasBeenSet = true; m_jobToken = std::move(value); }
118 inline void SetJobToken(const char* value) { m_jobTokenHasBeenSet = true; m_jobToken.assign(value); }
119 inline CreateQuantumTaskRequest& WithJobToken(const Aws::String& value) { SetJobToken(value); return *this;}
120 inline CreateQuantumTaskRequest& WithJobToken(Aws::String&& value) { SetJobToken(std::move(value)); return *this;}
121 inline CreateQuantumTaskRequest& WithJobToken(const char* value) { SetJobToken(value); return *this;}
123
125
128 inline const Aws::String& GetOutputS3Bucket() const{ return m_outputS3Bucket; }
129 inline bool OutputS3BucketHasBeenSet() const { return m_outputS3BucketHasBeenSet; }
130 inline void SetOutputS3Bucket(const Aws::String& value) { m_outputS3BucketHasBeenSet = true; m_outputS3Bucket = value; }
131 inline void SetOutputS3Bucket(Aws::String&& value) { m_outputS3BucketHasBeenSet = true; m_outputS3Bucket = std::move(value); }
132 inline void SetOutputS3Bucket(const char* value) { m_outputS3BucketHasBeenSet = true; m_outputS3Bucket.assign(value); }
133 inline CreateQuantumTaskRequest& WithOutputS3Bucket(const Aws::String& value) { SetOutputS3Bucket(value); return *this;}
134 inline CreateQuantumTaskRequest& WithOutputS3Bucket(Aws::String&& value) { SetOutputS3Bucket(std::move(value)); return *this;}
135 inline CreateQuantumTaskRequest& WithOutputS3Bucket(const char* value) { SetOutputS3Bucket(value); return *this;}
137
139
143 inline const Aws::String& GetOutputS3KeyPrefix() const{ return m_outputS3KeyPrefix; }
144 inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
145 inline void SetOutputS3KeyPrefix(const Aws::String& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
146 inline void SetOutputS3KeyPrefix(Aws::String&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = std::move(value); }
147 inline void SetOutputS3KeyPrefix(const char* value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix.assign(value); }
149 inline CreateQuantumTaskRequest& WithOutputS3KeyPrefix(Aws::String&& value) { SetOutputS3KeyPrefix(std::move(value)); return *this;}
150 inline CreateQuantumTaskRequest& WithOutputS3KeyPrefix(const char* value) { SetOutputS3KeyPrefix(value); return *this;}
152
154
157 inline long long GetShots() const{ return m_shots; }
158 inline bool ShotsHasBeenSet() const { return m_shotsHasBeenSet; }
159 inline void SetShots(long long value) { m_shotsHasBeenSet = true; m_shots = value; }
160 inline CreateQuantumTaskRequest& WithShots(long long value) { SetShots(value); return *this;}
162
164
167 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
170 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
172 inline CreateQuantumTaskRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
173 inline CreateQuantumTaskRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
174 inline CreateQuantumTaskRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
175 inline CreateQuantumTaskRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
176 inline CreateQuantumTaskRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
177 inline CreateQuantumTaskRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
178 inline CreateQuantumTaskRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
179 inline CreateQuantumTaskRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
181 private:
182
183 Aws::String m_action;
184 bool m_actionHasBeenSet = false;
185
186 Aws::Vector<Association> m_associations;
187 bool m_associationsHasBeenSet = false;
188
189 Aws::String m_clientToken;
190 bool m_clientTokenHasBeenSet = false;
191
192 Aws::String m_deviceArn;
193 bool m_deviceArnHasBeenSet = false;
194
195 Aws::String m_deviceParameters;
196 bool m_deviceParametersHasBeenSet = false;
197
198 Aws::String m_jobToken;
199 bool m_jobTokenHasBeenSet = false;
200
201 Aws::String m_outputS3Bucket;
202 bool m_outputS3BucketHasBeenSet = false;
203
204 Aws::String m_outputS3KeyPrefix;
205 bool m_outputS3KeyPrefixHasBeenSet = false;
206
207 long long m_shots;
208 bool m_shotsHasBeenSet = false;
209
211 bool m_tagsHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace Braket
216} // namespace Aws
CreateQuantumTaskRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateQuantumTaskRequest & AddAssociations(const Association &value)
CreateQuantumTaskRequest & WithOutputS3Bucket(const char *value)
CreateQuantumTaskRequest & WithDeviceParameters(const Aws::String &value)
CreateQuantumTaskRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateQuantumTaskRequest & WithAction(const Aws::String &value)
void SetAssociations(Aws::Vector< Association > &&value)
CreateQuantumTaskRequest & WithClientToken(Aws::String &&value)
CreateQuantumTaskRequest & WithDeviceParameters(Aws::String &&value)
CreateQuantumTaskRequest & WithDeviceParameters(const char *value)
virtual const char * GetServiceRequestName() const override
CreateQuantumTaskRequest & WithDeviceArn(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateQuantumTaskRequest & WithOutputS3KeyPrefix(const Aws::String &value)
CreateQuantumTaskRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Vector< Association > & GetAssociations() const
CreateQuantumTaskRequest & WithOutputS3KeyPrefix(Aws::String &&value)
CreateQuantumTaskRequest & WithAction(const char *value)
CreateQuantumTaskRequest & WithOutputS3Bucket(const Aws::String &value)
CreateQuantumTaskRequest & AddTags(Aws::String &&key, const char *value)
CreateQuantumTaskRequest & WithAssociations(Aws::Vector< Association > &&value)
CreateQuantumTaskRequest & WithAction(Aws::String &&value)
CreateQuantumTaskRequest & WithOutputS3KeyPrefix(const char *value)
CreateQuantumTaskRequest & WithAssociations(const Aws::Vector< Association > &value)
CreateQuantumTaskRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateQuantumTaskRequest & WithShots(long long value)
CreateQuantumTaskRequest & WithJobToken(const char *value)
CreateQuantumTaskRequest & WithClientToken(const Aws::String &value)
AWS_BRAKET_API Aws::String SerializePayload() const override
CreateQuantumTaskRequest & AddTags(const char *key, const char *value)
CreateQuantumTaskRequest & AddTags(const char *key, Aws::String &&value)
CreateQuantumTaskRequest & WithJobToken(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateQuantumTaskRequest & WithClientToken(const char *value)
CreateQuantumTaskRequest & WithJobToken(Aws::String &&value)
CreateQuantumTaskRequest & WithDeviceArn(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateQuantumTaskRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateQuantumTaskRequest & WithDeviceArn(const Aws::String &value)
void SetAssociations(const Aws::Vector< Association > &value)
CreateQuantumTaskRequest & AddAssociations(Association &&value)
CreateQuantumTaskRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateQuantumTaskRequest & WithOutputS3Bucket(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector