AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
StartSimulationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/simspaceweaver/SimSpaceWeaverRequest.h>
11#include <aws/simspaceweaver/SimSpaceWeaver_EXPORTS.h>
12#include <aws/simspaceweaver/model/S3Location.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SimSpaceWeaver {
18namespace Model {
19
23 public:
24 AWS_SIMSPACEWEAVER_API StartSimulationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartSimulation"; }
31
32 AWS_SIMSPACEWEAVER_API Aws::String SerializePayload() const override;
33
35
41 inline const Aws::String& GetClientToken() const { return m_clientToken; }
42 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
43 template <typename ClientTokenT = Aws::String>
44 void SetClientToken(ClientTokenT&& value) {
45 m_clientTokenHasBeenSet = true;
46 m_clientToken = std::forward<ClientTokenT>(value);
47 }
48 template <typename ClientTokenT = Aws::String>
49 StartSimulationRequest& WithClientToken(ClientTokenT&& value) {
50 SetClientToken(std::forward<ClientTokenT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 StartSimulationRequest& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
82 inline const Aws::String& GetMaximumDuration() const { return m_maximumDuration; }
83 inline bool MaximumDurationHasBeenSet() const { return m_maximumDurationHasBeenSet; }
84 template <typename MaximumDurationT = Aws::String>
85 void SetMaximumDuration(MaximumDurationT&& value) {
86 m_maximumDurationHasBeenSet = true;
87 m_maximumDuration = std::forward<MaximumDurationT>(value);
88 }
89 template <typename MaximumDurationT = Aws::String>
90 StartSimulationRequest& WithMaximumDuration(MaximumDurationT&& value) {
91 SetMaximumDuration(std::forward<MaximumDurationT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetName() const { return m_name; }
101 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 template <typename NameT = Aws::String>
103 void SetName(NameT&& value) {
104 m_nameHasBeenSet = true;
105 m_name = std::forward<NameT>(value);
106 }
107 template <typename NameT = Aws::String>
109 SetName(std::forward<NameT>(value));
110 return *this;
111 }
113
115
125 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
126 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
127 template <typename RoleArnT = Aws::String>
128 void SetRoleArn(RoleArnT&& value) {
129 m_roleArnHasBeenSet = true;
130 m_roleArn = std::forward<RoleArnT>(value);
131 }
132 template <typename RoleArnT = Aws::String>
134 SetRoleArn(std::forward<RoleArnT>(value));
135 return *this;
136 }
138
140
149 inline const S3Location& GetSchemaS3Location() const { return m_schemaS3Location; }
150 inline bool SchemaS3LocationHasBeenSet() const { return m_schemaS3LocationHasBeenSet; }
151 template <typename SchemaS3LocationT = S3Location>
152 void SetSchemaS3Location(SchemaS3LocationT&& value) {
153 m_schemaS3LocationHasBeenSet = true;
154 m_schemaS3Location = std::forward<SchemaS3LocationT>(value);
155 }
156 template <typename SchemaS3LocationT = S3Location>
157 StartSimulationRequest& WithSchemaS3Location(SchemaS3LocationT&& value) {
158 SetSchemaS3Location(std::forward<SchemaS3LocationT>(value));
159 return *this;
160 }
162
164
174 inline const S3Location& GetSnapshotS3Location() const { return m_snapshotS3Location; }
175 inline bool SnapshotS3LocationHasBeenSet() const { return m_snapshotS3LocationHasBeenSet; }
176 template <typename SnapshotS3LocationT = S3Location>
177 void SetSnapshotS3Location(SnapshotS3LocationT&& value) {
178 m_snapshotS3LocationHasBeenSet = true;
179 m_snapshotS3Location = std::forward<SnapshotS3LocationT>(value);
180 }
181 template <typename SnapshotS3LocationT = S3Location>
182 StartSimulationRequest& WithSnapshotS3Location(SnapshotS3LocationT&& value) {
183 SetSnapshotS3Location(std::forward<SnapshotS3LocationT>(value));
184 return *this;
185 }
187
189
195 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
196 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
197 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
198 void SetTags(TagsT&& value) {
199 m_tagsHasBeenSet = true;
200 m_tags = std::forward<TagsT>(value);
201 }
202 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
204 SetTags(std::forward<TagsT>(value));
205 return *this;
206 }
207 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
208 StartSimulationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
209 m_tagsHasBeenSet = true;
210 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
211 return *this;
212 }
214 private:
216
217 Aws::String m_description;
218
219 Aws::String m_maximumDuration;
220
221 Aws::String m_name;
222
223 Aws::String m_roleArn;
224
225 S3Location m_schemaS3Location;
226
227 S3Location m_snapshotS3Location;
228
230 bool m_clientTokenHasBeenSet = true;
231 bool m_descriptionHasBeenSet = false;
232 bool m_maximumDurationHasBeenSet = false;
233 bool m_nameHasBeenSet = false;
234 bool m_roleArnHasBeenSet = false;
235 bool m_schemaS3LocationHasBeenSet = false;
236 bool m_snapshotS3LocationHasBeenSet = false;
237 bool m_tagsHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace SimSpaceWeaver
242} // namespace Aws
StartSimulationRequest & WithSnapshotS3Location(SnapshotS3LocationT &&value)
StartSimulationRequest & WithName(NameT &&value)
StartSimulationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
StartSimulationRequest & WithRoleArn(RoleArnT &&value)
AWS_SIMSPACEWEAVER_API StartSimulationRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
StartSimulationRequest & WithSchemaS3Location(SchemaS3LocationT &&value)
StartSimulationRequest & WithTags(TagsT &&value)
StartSimulationRequest & WithClientToken(ClientTokenT &&value)
StartSimulationRequest & WithMaximumDuration(MaximumDurationT &&value)
AWS_SIMSPACEWEAVER_API Aws::String SerializePayload() const override
StartSimulationRequest & WithDescription(DescriptionT &&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