AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
StartFailbackLaunchRequest.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
13#include <utility>
14
15namespace Aws {
16namespace drs {
17namespace Model {
18
22 public:
23 AWS_DRS_API StartFailbackLaunchRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "StartFailbackLaunch"; }
30
31 AWS_DRS_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::Vector<Aws::String>& GetRecoveryInstanceIDs() const { return m_recoveryInstanceIDs; }
39 inline bool RecoveryInstanceIDsHasBeenSet() const { return m_recoveryInstanceIDsHasBeenSet; }
40 template <typename RecoveryInstanceIDsT = Aws::Vector<Aws::String>>
41 void SetRecoveryInstanceIDs(RecoveryInstanceIDsT&& value) {
42 m_recoveryInstanceIDsHasBeenSet = true;
43 m_recoveryInstanceIDs = std::forward<RecoveryInstanceIDsT>(value);
44 }
45 template <typename RecoveryInstanceIDsT = Aws::Vector<Aws::String>>
46 StartFailbackLaunchRequest& WithRecoveryInstanceIDs(RecoveryInstanceIDsT&& value) {
47 SetRecoveryInstanceIDs(std::forward<RecoveryInstanceIDsT>(value));
48 return *this;
49 }
50 template <typename RecoveryInstanceIDsT = Aws::String>
51 StartFailbackLaunchRequest& AddRecoveryInstanceIDs(RecoveryInstanceIDsT&& value) {
52 m_recoveryInstanceIDsHasBeenSet = true;
53 m_recoveryInstanceIDs.emplace_back(std::forward<RecoveryInstanceIDsT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
63 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
64 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
65 void SetTags(TagsT&& value) {
66 m_tagsHasBeenSet = true;
67 m_tags = std::forward<TagsT>(value);
68 }
69 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
71 SetTags(std::forward<TagsT>(value));
72 return *this;
73 }
74 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
75 StartFailbackLaunchRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
76 m_tagsHasBeenSet = true;
77 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
78 return *this;
79 }
81 private:
82 Aws::Vector<Aws::String> m_recoveryInstanceIDs;
83
85 bool m_recoveryInstanceIDsHasBeenSet = false;
86 bool m_tagsHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace drs
91} // namespace Aws
StartFailbackLaunchRequest & WithRecoveryInstanceIDs(RecoveryInstanceIDsT &&value)
StartFailbackLaunchRequest & AddRecoveryInstanceIDs(RecoveryInstanceIDsT &&value)
StartFailbackLaunchRequest & WithTags(TagsT &&value)
StartFailbackLaunchRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetRecoveryInstanceIDs() const
AWS_DRS_API Aws::String SerializePayload() const override
void SetRecoveryInstanceIDs(RecoveryInstanceIDsT &&value)
AWS_DRS_API StartFailbackLaunchRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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