AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StartRecoveryRequest.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/drs/model/StartRecoveryRequestSourceServer.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace drs
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DRS_API StartRecoveryRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartRecovery"; }
34
35 AWS_DRS_API Aws::String SerializePayload() const override;
36
37
39
42 inline bool GetIsDrill() const { return m_isDrill; }
43 inline bool IsDrillHasBeenSet() const { return m_isDrillHasBeenSet; }
44 inline void SetIsDrill(bool value) { m_isDrillHasBeenSet = true; m_isDrill = value; }
45 inline StartRecoveryRequest& WithIsDrill(bool value) { SetIsDrill(value); return *this;}
47
49
52 inline const Aws::Vector<StartRecoveryRequestSourceServer>& GetSourceServers() const { return m_sourceServers; }
53 inline bool SourceServersHasBeenSet() const { return m_sourceServersHasBeenSet; }
54 template<typename SourceServersT = Aws::Vector<StartRecoveryRequestSourceServer>>
55 void SetSourceServers(SourceServersT&& value) { m_sourceServersHasBeenSet = true; m_sourceServers = std::forward<SourceServersT>(value); }
56 template<typename SourceServersT = Aws::Vector<StartRecoveryRequestSourceServer>>
57 StartRecoveryRequest& WithSourceServers(SourceServersT&& value) { SetSourceServers(std::forward<SourceServersT>(value)); return *this;}
58 template<typename SourceServersT = StartRecoveryRequestSourceServer>
59 StartRecoveryRequest& AddSourceServers(SourceServersT&& value) { m_sourceServersHasBeenSet = true; m_sourceServers.emplace_back(std::forward<SourceServersT>(value)); return *this; }
61
63
66 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
67 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
68 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
69 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
70 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
71 StartRecoveryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
72 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
73 StartRecoveryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
74 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
75 }
77 private:
78
79 bool m_isDrill{false};
80 bool m_isDrillHasBeenSet = false;
81
83 bool m_sourceServersHasBeenSet = false;
84
86 bool m_tagsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace drs
91} // 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