AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TerminateTargetInstancesRequest.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/mgn/MgnRequest.h>
11#include <aws/mgn/Mgn_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace mgn {
17namespace Model {
18
22 public:
23 AWS_MGN_API TerminateTargetInstancesRequest() = 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 "TerminateTargetInstances"; }
30
31 AWS_MGN_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::Vector<Aws::String>& GetSourceServerIDs() const { return m_sourceServerIDs; }
38 inline bool SourceServerIDsHasBeenSet() const { return m_sourceServerIDsHasBeenSet; }
39 template <typename SourceServerIDsT = Aws::Vector<Aws::String>>
40 void SetSourceServerIDs(SourceServerIDsT&& value) {
41 m_sourceServerIDsHasBeenSet = true;
42 m_sourceServerIDs = std::forward<SourceServerIDsT>(value);
43 }
44 template <typename SourceServerIDsT = Aws::Vector<Aws::String>>
46 SetSourceServerIDs(std::forward<SourceServerIDsT>(value));
47 return *this;
48 }
49 template <typename SourceServerIDsT = Aws::String>
51 m_sourceServerIDsHasBeenSet = true;
52 m_sourceServerIDs.emplace_back(std::forward<SourceServerIDsT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
64 void SetTags(TagsT&& value) {
65 m_tagsHasBeenSet = true;
66 m_tags = std::forward<TagsT>(value);
67 }
68 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 SetTags(std::forward<TagsT>(value));
71 return *this;
72 }
73 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
74 TerminateTargetInstancesRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
75 m_tagsHasBeenSet = true;
76 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetAccountID() const { return m_accountID; }
86 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
87 template <typename AccountIDT = Aws::String>
88 void SetAccountID(AccountIDT&& value) {
89 m_accountIDHasBeenSet = true;
90 m_accountID = std::forward<AccountIDT>(value);
91 }
92 template <typename AccountIDT = Aws::String>
94 SetAccountID(std::forward<AccountIDT>(value));
95 return *this;
96 }
98 private:
99 Aws::Vector<Aws::String> m_sourceServerIDs;
100
102
103 Aws::String m_accountID;
104 bool m_sourceServerIDsHasBeenSet = false;
105 bool m_tagsHasBeenSet = false;
106 bool m_accountIDHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace mgn
111} // namespace Aws
TerminateTargetInstancesRequest & WithAccountID(AccountIDT &&value)
AWS_MGN_API Aws::String SerializePayload() const override
TerminateTargetInstancesRequest & WithSourceServerIDs(SourceServerIDsT &&value)
TerminateTargetInstancesRequest & AddSourceServerIDs(SourceServerIDsT &&value)
const Aws::Vector< Aws::String > & GetSourceServerIDs() const
TerminateTargetInstancesRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
TerminateTargetInstancesRequest & WithTags(TagsT &&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