AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ActionT = Aws::String>
46 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
47 template<typename ActionT = Aws::String>
48 CreateQuantumTaskRequest& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
50
52
55 inline const Aws::Vector<Association>& GetAssociations() const { return m_associations; }
56 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
57 template<typename AssociationsT = Aws::Vector<Association>>
58 void SetAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations = std::forward<AssociationsT>(value); }
59 template<typename AssociationsT = Aws::Vector<Association>>
60 CreateQuantumTaskRequest& WithAssociations(AssociationsT&& value) { SetAssociations(std::forward<AssociationsT>(value)); return *this;}
61 template<typename AssociationsT = Association>
62 CreateQuantumTaskRequest& AddAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations.emplace_back(std::forward<AssociationsT>(value)); return *this; }
64
66
69 inline const Aws::String& GetClientToken() const { return m_clientToken; }
70 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
71 template<typename ClientTokenT = Aws::String>
72 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
73 template<typename ClientTokenT = Aws::String>
74 CreateQuantumTaskRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
76
78
81 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
82 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
83 template<typename DeviceArnT = Aws::String>
84 void SetDeviceArn(DeviceArnT&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::forward<DeviceArnT>(value); }
85 template<typename DeviceArnT = Aws::String>
86 CreateQuantumTaskRequest& WithDeviceArn(DeviceArnT&& value) { SetDeviceArn(std::forward<DeviceArnT>(value)); return *this;}
88
90
93 inline const Aws::String& GetDeviceParameters() const { return m_deviceParameters; }
94 inline bool DeviceParametersHasBeenSet() const { return m_deviceParametersHasBeenSet; }
95 template<typename DeviceParametersT = Aws::String>
96 void SetDeviceParameters(DeviceParametersT&& value) { m_deviceParametersHasBeenSet = true; m_deviceParameters = std::forward<DeviceParametersT>(value); }
97 template<typename DeviceParametersT = Aws::String>
98 CreateQuantumTaskRequest& WithDeviceParameters(DeviceParametersT&& value) { SetDeviceParameters(std::forward<DeviceParametersT>(value)); return *this;}
100
102
106 inline const Aws::String& GetJobToken() const { return m_jobToken; }
107 inline bool JobTokenHasBeenSet() const { return m_jobTokenHasBeenSet; }
108 template<typename JobTokenT = Aws::String>
109 void SetJobToken(JobTokenT&& value) { m_jobTokenHasBeenSet = true; m_jobToken = std::forward<JobTokenT>(value); }
110 template<typename JobTokenT = Aws::String>
111 CreateQuantumTaskRequest& WithJobToken(JobTokenT&& value) { SetJobToken(std::forward<JobTokenT>(value)); return *this;}
113
115
118 inline const Aws::String& GetOutputS3Bucket() const { return m_outputS3Bucket; }
119 inline bool OutputS3BucketHasBeenSet() const { return m_outputS3BucketHasBeenSet; }
120 template<typename OutputS3BucketT = Aws::String>
121 void SetOutputS3Bucket(OutputS3BucketT&& value) { m_outputS3BucketHasBeenSet = true; m_outputS3Bucket = std::forward<OutputS3BucketT>(value); }
122 template<typename OutputS3BucketT = Aws::String>
123 CreateQuantumTaskRequest& WithOutputS3Bucket(OutputS3BucketT&& value) { SetOutputS3Bucket(std::forward<OutputS3BucketT>(value)); return *this;}
125
127
131 inline const Aws::String& GetOutputS3KeyPrefix() const { return m_outputS3KeyPrefix; }
132 inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
133 template<typename OutputS3KeyPrefixT = Aws::String>
134 void SetOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = std::forward<OutputS3KeyPrefixT>(value); }
135 template<typename OutputS3KeyPrefixT = Aws::String>
136 CreateQuantumTaskRequest& WithOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) { SetOutputS3KeyPrefix(std::forward<OutputS3KeyPrefixT>(value)); return *this;}
138
140
143 inline long long GetShots() const { return m_shots; }
144 inline bool ShotsHasBeenSet() const { return m_shotsHasBeenSet; }
145 inline void SetShots(long long value) { m_shotsHasBeenSet = true; m_shots = value; }
146 inline CreateQuantumTaskRequest& WithShots(long long value) { SetShots(value); return *this;}
148
150
153 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
154 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
155 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
156 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
157 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 CreateQuantumTaskRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
159 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
160 CreateQuantumTaskRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
161 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
162 }
164 private:
165
166 Aws::String m_action;
167 bool m_actionHasBeenSet = false;
168
169 Aws::Vector<Association> m_associations;
170 bool m_associationsHasBeenSet = false;
171
173 bool m_clientTokenHasBeenSet = true;
174
175 Aws::String m_deviceArn;
176 bool m_deviceArnHasBeenSet = false;
177
178 Aws::String m_deviceParameters;
179 bool m_deviceParametersHasBeenSet = false;
180
181 Aws::String m_jobToken;
182 bool m_jobTokenHasBeenSet = false;
183
184 Aws::String m_outputS3Bucket;
185 bool m_outputS3BucketHasBeenSet = false;
186
187 Aws::String m_outputS3KeyPrefix;
188 bool m_outputS3KeyPrefixHasBeenSet = false;
189
190 long long m_shots{0};
191 bool m_shotsHasBeenSet = false;
192
194 bool m_tagsHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace Braket
199} // namespace Aws
CreateQuantumTaskRequest & WithAction(ActionT &&value)
AWS_BRAKET_API CreateQuantumTaskRequest()=default
virtual const char * GetServiceRequestName() const override
CreateQuantumTaskRequest & AddAssociations(AssociationsT &&value)
const Aws::Vector< Association > & GetAssociations() const
CreateQuantumTaskRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateQuantumTaskRequest & WithJobToken(JobTokenT &&value)
CreateQuantumTaskRequest & WithDeviceParameters(DeviceParametersT &&value)
CreateQuantumTaskRequest & WithOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
CreateQuantumTaskRequest & WithTags(TagsT &&value)
CreateQuantumTaskRequest & WithShots(long long value)
void SetOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
AWS_BRAKET_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateQuantumTaskRequest & WithOutputS3Bucket(OutputS3BucketT &&value)
CreateQuantumTaskRequest & WithAssociations(AssociationsT &&value)
CreateQuantumTaskRequest & WithClientToken(ClientTokenT &&value)
CreateQuantumTaskRequest & WithDeviceArn(DeviceArnT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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