AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartFailbackLaunchRequest.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/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace drs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DRS_API StartFailbackLaunchRequest() = 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 "StartFailbackLaunch"; }
33
34 AWS_DRS_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::Vector<Aws::String>& GetRecoveryInstanceIDs() const { return m_recoveryInstanceIDs; }
43 inline bool RecoveryInstanceIDsHasBeenSet() const { return m_recoveryInstanceIDsHasBeenSet; }
44 template<typename RecoveryInstanceIDsT = Aws::Vector<Aws::String>>
45 void SetRecoveryInstanceIDs(RecoveryInstanceIDsT&& value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs = std::forward<RecoveryInstanceIDsT>(value); }
46 template<typename RecoveryInstanceIDsT = Aws::Vector<Aws::String>>
47 StartFailbackLaunchRequest& WithRecoveryInstanceIDs(RecoveryInstanceIDsT&& value) { SetRecoveryInstanceIDs(std::forward<RecoveryInstanceIDsT>(value)); return *this;}
48 template<typename RecoveryInstanceIDsT = Aws::String>
49 StartFailbackLaunchRequest& AddRecoveryInstanceIDs(RecoveryInstanceIDsT&& value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs.emplace_back(std::forward<RecoveryInstanceIDsT>(value)); return *this; }
51
53
56 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
57 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
58 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
59 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
60 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
61 StartFailbackLaunchRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
62 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
63 StartFailbackLaunchRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
64 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
65 }
67 private:
68
69 Aws::Vector<Aws::String> m_recoveryInstanceIDs;
70 bool m_recoveryInstanceIDsHasBeenSet = false;
71
73 bool m_tagsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace drs
78} // 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