AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
StartRecoveryRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/drs/DrsRequest.h>
11#include <aws/drs/Drs_EXPORTS.h>
12#include <aws/drs/model/StartRecoveryRequestSourceServer.h>
13
14#include <utility>
15
16namespace Aws {
17namespace drs {
18namespace Model {
19
23 public:
24 AWS_DRS_API StartRecoveryRequest() = 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 "StartRecovery"; }
31
32 AWS_DRS_API Aws::String SerializePayload() const override;
33
35
38 inline bool GetIsDrill() const { return m_isDrill; }
39 inline bool IsDrillHasBeenSet() const { return m_isDrillHasBeenSet; }
40 inline void SetIsDrill(bool value) {
41 m_isDrillHasBeenSet = true;
42 m_isDrill = value;
43 }
44 inline StartRecoveryRequest& WithIsDrill(bool value) {
45 SetIsDrill(value);
46 return *this;
47 }
49
51
54 inline const Aws::Vector<StartRecoveryRequestSourceServer>& GetSourceServers() const { return m_sourceServers; }
55 inline bool SourceServersHasBeenSet() const { return m_sourceServersHasBeenSet; }
56 template <typename SourceServersT = Aws::Vector<StartRecoveryRequestSourceServer>>
57 void SetSourceServers(SourceServersT&& value) {
58 m_sourceServersHasBeenSet = true;
59 m_sourceServers = std::forward<SourceServersT>(value);
60 }
61 template <typename SourceServersT = Aws::Vector<StartRecoveryRequestSourceServer>>
62 StartRecoveryRequest& WithSourceServers(SourceServersT&& value) {
63 SetSourceServers(std::forward<SourceServersT>(value));
64 return *this;
65 }
66 template <typename SourceServersT = StartRecoveryRequestSourceServer>
67 StartRecoveryRequest& AddSourceServers(SourceServersT&& value) {
68 m_sourceServersHasBeenSet = true;
69 m_sourceServers.emplace_back(std::forward<SourceServersT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 void SetTags(TagsT&& value) {
82 m_tagsHasBeenSet = true;
83 m_tags = std::forward<TagsT>(value);
84 }
85 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 SetTags(std::forward<TagsT>(value));
88 return *this;
89 }
90 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
91 StartRecoveryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
92 m_tagsHasBeenSet = true;
93 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
94 return *this;
95 }
97 private:
98 bool m_isDrill{false};
99
101
103 bool m_isDrillHasBeenSet = false;
104 bool m_sourceServersHasBeenSet = false;
105 bool m_tagsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace drs
110} // namespace Aws
StartRecoveryRequest & AddSourceServers(SourceServersT &&value)
AWS_DRS_API Aws::String SerializePayload() const override
StartRecoveryRequest & WithTags(TagsT &&value)
AWS_DRS_API StartRecoveryRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartRecoveryRequest & WithSourceServers(SourceServersT &&value)
StartRecoveryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< StartRecoveryRequestSourceServer > & GetSourceServers() const
void SetSourceServers(SourceServersT &&value)
StartRecoveryRequest & WithIsDrill(bool value)
virtual const char * GetServiceRequestName() const override
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