AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartSimulationJobBatchRequest.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/robomaker/RoboMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/robomaker/model/BatchPolicy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/robomaker/model/SimulationJobRequest.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace RoboMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_ROBOMAKER_API StartSimulationJobBatchRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartSimulationJobBatch"; }
36
37 AWS_ROBOMAKER_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
46 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
47 template<typename ClientRequestTokenT = Aws::String>
48 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
49 template<typename ClientRequestTokenT = Aws::String>
50 StartSimulationJobBatchRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
52
54
57 inline const BatchPolicy& GetBatchPolicy() const { return m_batchPolicy; }
58 inline bool BatchPolicyHasBeenSet() const { return m_batchPolicyHasBeenSet; }
59 template<typename BatchPolicyT = BatchPolicy>
60 void SetBatchPolicy(BatchPolicyT&& value) { m_batchPolicyHasBeenSet = true; m_batchPolicy = std::forward<BatchPolicyT>(value); }
61 template<typename BatchPolicyT = BatchPolicy>
62 StartSimulationJobBatchRequest& WithBatchPolicy(BatchPolicyT&& value) { SetBatchPolicy(std::forward<BatchPolicyT>(value)); return *this;}
64
66
69 inline const Aws::Vector<SimulationJobRequest>& GetCreateSimulationJobRequests() const { return m_createSimulationJobRequests; }
70 inline bool CreateSimulationJobRequestsHasBeenSet() const { return m_createSimulationJobRequestsHasBeenSet; }
71 template<typename CreateSimulationJobRequestsT = Aws::Vector<SimulationJobRequest>>
72 void SetCreateSimulationJobRequests(CreateSimulationJobRequestsT&& value) { m_createSimulationJobRequestsHasBeenSet = true; m_createSimulationJobRequests = std::forward<CreateSimulationJobRequestsT>(value); }
73 template<typename CreateSimulationJobRequestsT = Aws::Vector<SimulationJobRequest>>
74 StartSimulationJobBatchRequest& WithCreateSimulationJobRequests(CreateSimulationJobRequestsT&& value) { SetCreateSimulationJobRequests(std::forward<CreateSimulationJobRequestsT>(value)); return *this;}
75 template<typename CreateSimulationJobRequestsT = SimulationJobRequest>
76 StartSimulationJobBatchRequest& AddCreateSimulationJobRequests(CreateSimulationJobRequestsT&& value) { m_createSimulationJobRequestsHasBeenSet = true; m_createSimulationJobRequests.emplace_back(std::forward<CreateSimulationJobRequestsT>(value)); return *this; }
78
80
84 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
88 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
89 StartSimulationJobBatchRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
90 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
91 StartSimulationJobBatchRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
92 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
93 }
95 private:
96
97 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
98 bool m_clientRequestTokenHasBeenSet = true;
99
100 BatchPolicy m_batchPolicy;
101 bool m_batchPolicyHasBeenSet = false;
102
103 Aws::Vector<SimulationJobRequest> m_createSimulationJobRequests;
104 bool m_createSimulationJobRequestsHasBeenSet = false;
105
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace RoboMaker
112} // namespace Aws
StartSimulationJobBatchRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_ROBOMAKER_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartSimulationJobBatchRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_ROBOMAKER_API StartSimulationJobBatchRequest()=default
StartSimulationJobBatchRequest & WithCreateSimulationJobRequests(CreateSimulationJobRequestsT &&value)
void SetCreateSimulationJobRequests(CreateSimulationJobRequestsT &&value)
const Aws::Vector< SimulationJobRequest > & GetCreateSimulationJobRequests() const
StartSimulationJobBatchRequest & WithTags(TagsT &&value)
StartSimulationJobBatchRequest & AddCreateSimulationJobRequests(CreateSimulationJobRequestsT &&value)
StartSimulationJobBatchRequest & WithBatchPolicy(BatchPolicyT &&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