AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetRecoveryInstanceIDs(const Aws::Vector<Aws::String>& value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs = value; }
45 inline void SetRecoveryInstanceIDs(Aws::Vector<Aws::String>&& value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs = std::move(value); }
48 inline StartFailbackLaunchRequest& AddRecoveryInstanceIDs(const Aws::String& value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs.push_back(value); return *this; }
49 inline StartFailbackLaunchRequest& AddRecoveryInstanceIDs(Aws::String&& value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs.push_back(std::move(value)); return *this; }
50 inline StartFailbackLaunchRequest& AddRecoveryInstanceIDs(const char* value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs.push_back(value); return *this; }
52
54
57 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
58 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
59 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
60 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
62 inline StartFailbackLaunchRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
63 inline StartFailbackLaunchRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
64 inline StartFailbackLaunchRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
65 inline StartFailbackLaunchRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
66 inline StartFailbackLaunchRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
67 inline StartFailbackLaunchRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
68 inline StartFailbackLaunchRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
69 inline StartFailbackLaunchRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
71 private:
72
73 Aws::Vector<Aws::String> m_recoveryInstanceIDs;
74 bool m_recoveryInstanceIDsHasBeenSet = false;
75
77 bool m_tagsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace drs
82} // namespace Aws
StartFailbackLaunchRequest & AddRecoveryInstanceIDs(Aws::String &&value)
StartFailbackLaunchRequest & WithRecoveryInstanceIDs(const Aws::Vector< Aws::String > &value)
StartFailbackLaunchRequest & AddTags(const Aws::String &key, Aws::String &&value)
StartFailbackLaunchRequest & AddTags(Aws::String &&key, const char *value)
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
StartFailbackLaunchRequest & AddTags(Aws::String &&key, Aws::String &&value)
StartFailbackLaunchRequest & WithRecoveryInstanceIDs(Aws::Vector< Aws::String > &&value)
StartFailbackLaunchRequest & AddRecoveryInstanceIDs(const char *value)
StartFailbackLaunchRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Vector< Aws::String > & GetRecoveryInstanceIDs() const
StartFailbackLaunchRequest & AddTags(const char *key, const char *value)
AWS_DRS_API Aws::String SerializePayload() const override
StartFailbackLaunchRequest & AddRecoveryInstanceIDs(const Aws::String &value)
StartFailbackLaunchRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetRecoveryInstanceIDs(const Aws::Vector< Aws::String > &value)
void SetRecoveryInstanceIDs(Aws::Vector< Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartFailbackLaunchRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
StartFailbackLaunchRequest & AddTags(const char *key, Aws::String &&value)
StartFailbackLaunchRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
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