AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
StartRecoveryPlanExecutionRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/drs/DrsRequest.h>
12#include <aws/drs/Drs_EXPORTS.h>
13#include <aws/drs/model/RecoveryPlanExecutionMode.h>
14#include <aws/drs/model/RecoveryPlanExecutionSourceServer.h>
15
16#include <utility>
17
18namespace Aws {
19namespace drs {
20namespace Model {
21
25 public:
26 AWS_DRS_API StartRecoveryPlanExecutionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartRecoveryPlanExecution"; }
33
34 AWS_DRS_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetRecoveryPlanArn() const { return m_recoveryPlanArn; }
41 inline bool RecoveryPlanArnHasBeenSet() const { return m_recoveryPlanArnHasBeenSet; }
42 template <typename RecoveryPlanArnT = Aws::String>
43 void SetRecoveryPlanArn(RecoveryPlanArnT&& value) {
44 m_recoveryPlanArnHasBeenSet = true;
45 m_recoveryPlanArn = std::forward<RecoveryPlanArnT>(value);
46 }
47 template <typename RecoveryPlanArnT = Aws::String>
49 SetRecoveryPlanArn(std::forward<RecoveryPlanArnT>(value));
50 return *this;
51 }
53
55
58 inline RecoveryPlanExecutionMode GetMode() const { return m_mode; }
59 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
61 m_modeHasBeenSet = true;
62 m_mode = value;
63 }
65 SetMode(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetClientToken() const { return m_clientToken; }
75 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
76 template <typename ClientTokenT = Aws::String>
77 void SetClientToken(ClientTokenT&& value) {
78 m_clientTokenHasBeenSet = true;
79 m_clientToken = std::forward<ClientTokenT>(value);
80 }
81 template <typename ClientTokenT = Aws::String>
83 SetClientToken(std::forward<ClientTokenT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Vector<RecoveryPlanExecutionSourceServer>& GetSourceServers() const { return m_sourceServers; }
94 inline bool SourceServersHasBeenSet() const { return m_sourceServersHasBeenSet; }
95 template <typename SourceServersT = Aws::Vector<RecoveryPlanExecutionSourceServer>>
96 void SetSourceServers(SourceServersT&& value) {
97 m_sourceServersHasBeenSet = true;
98 m_sourceServers = std::forward<SourceServersT>(value);
99 }
100 template <typename SourceServersT = Aws::Vector<RecoveryPlanExecutionSourceServer>>
102 SetSourceServers(std::forward<SourceServersT>(value));
103 return *this;
104 }
105 template <typename SourceServersT = RecoveryPlanExecutionSourceServer>
107 m_sourceServersHasBeenSet = true;
108 m_sourceServers.emplace_back(std::forward<SourceServersT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 void SetTags(TagsT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags = std::forward<TagsT>(value);
123 }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 SetTags(std::forward<TagsT>(value));
127 return *this;
128 }
129 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
130 StartRecoveryPlanExecutionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_recoveryPlanArn;
138
140
142
144
146 bool m_recoveryPlanArnHasBeenSet = false;
147 bool m_modeHasBeenSet = false;
148 bool m_clientTokenHasBeenSet = true;
149 bool m_sourceServersHasBeenSet = false;
150 bool m_tagsHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace drs
155} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
StartRecoveryPlanExecutionRequest & WithMode(RecoveryPlanExecutionMode value)
AWS_DRS_API Aws::String SerializePayload() const override
StartRecoveryPlanExecutionRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartRecoveryPlanExecutionRequest & AddSourceServers(SourceServersT &&value)
const Aws::Vector< RecoveryPlanExecutionSourceServer > & GetSourceServers() const
StartRecoveryPlanExecutionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
StartRecoveryPlanExecutionRequest & WithTags(TagsT &&value)
StartRecoveryPlanExecutionRequest & WithSourceServers(SourceServersT &&value)
StartRecoveryPlanExecutionRequest & WithRecoveryPlanArn(RecoveryPlanArnT &&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