AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSourceServers(const Aws::Vector<StartRecoveryRequestSourceServer>& value) { m_sourceServersHasBeenSet = true; m_sourceServers = value; }
55 inline void SetSourceServers(Aws::Vector<StartRecoveryRequestSourceServer>&& value) { m_sourceServersHasBeenSet = true; m_sourceServers = std::move(value); }
58 inline StartRecoveryRequest& AddSourceServers(const StartRecoveryRequestSourceServer& value) { m_sourceServersHasBeenSet = true; m_sourceServers.push_back(value); return *this; }
59 inline StartRecoveryRequest& AddSourceServers(StartRecoveryRequestSourceServer&& value) { m_sourceServersHasBeenSet = true; m_sourceServers.push_back(std::move(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 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
69 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
70 inline StartRecoveryRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
71 inline StartRecoveryRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
72 inline StartRecoveryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
73 inline StartRecoveryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
74 inline StartRecoveryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
75 inline StartRecoveryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
76 inline StartRecoveryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
77 inline StartRecoveryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
78 inline StartRecoveryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
80 private:
81
82 bool m_isDrill;
83 bool m_isDrillHasBeenSet = false;
84
86 bool m_sourceServersHasBeenSet = false;
87
89 bool m_tagsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace drs
94} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
StartRecoveryRequest & AddTags(const char *key, Aws::String &&value)
StartRecoveryRequest & WithSourceServers(Aws::Vector< StartRecoveryRequestSourceServer > &&value)
StartRecoveryRequest & AddTags(const Aws::String &key, Aws::String &&value)
StartRecoveryRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_DRS_API Aws::String SerializePayload() const override
void SetSourceServers(const Aws::Vector< StartRecoveryRequestSourceServer > &value)
void SetSourceServers(Aws::Vector< StartRecoveryRequestSourceServer > &&value)
StartRecoveryRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
StartRecoveryRequest & AddSourceServers(StartRecoveryRequestSourceServer &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartRecoveryRequest & AddTags(const char *key, const char *value)
StartRecoveryRequest & AddTags(Aws::String &&key, Aws::String &&value)
StartRecoveryRequest & AddSourceServers(const StartRecoveryRequestSourceServer &value)
const Aws::Vector< StartRecoveryRequestSourceServer > & GetSourceServers() const
StartRecoveryRequest & AddTags(const Aws::String &key, const Aws::String &value)
StartRecoveryRequest & AddTags(Aws::String &&key, const char *value)
StartRecoveryRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
StartRecoveryRequest & WithSourceServers(const Aws::Vector< StartRecoveryRequestSourceServer > &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