AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TerminateTargetInstancesRequest.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/MgnRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace mgn
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 "TerminateTargetInstances"; }
33
34 AWS_MGN_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetAccountID() const{ return m_accountID; }
42 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
43 inline void SetAccountID(const Aws::String& value) { m_accountIDHasBeenSet = true; m_accountID = value; }
44 inline void SetAccountID(Aws::String&& value) { m_accountIDHasBeenSet = true; m_accountID = std::move(value); }
45 inline void SetAccountID(const char* value) { m_accountIDHasBeenSet = true; m_accountID.assign(value); }
46 inline TerminateTargetInstancesRequest& WithAccountID(const Aws::String& value) { SetAccountID(value); return *this;}
47 inline TerminateTargetInstancesRequest& WithAccountID(Aws::String&& value) { SetAccountID(std::move(value)); return *this;}
48 inline TerminateTargetInstancesRequest& WithAccountID(const char* value) { SetAccountID(value); return *this;}
50
52
55 inline const Aws::Vector<Aws::String>& GetSourceServerIDs() const{ return m_sourceServerIDs; }
56 inline bool SourceServerIDsHasBeenSet() const { return m_sourceServerIDsHasBeenSet; }
57 inline void SetSourceServerIDs(const Aws::Vector<Aws::String>& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs = value; }
58 inline void SetSourceServerIDs(Aws::Vector<Aws::String>&& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs = std::move(value); }
61 inline TerminateTargetInstancesRequest& AddSourceServerIDs(const Aws::String& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.push_back(value); return *this; }
62 inline TerminateTargetInstancesRequest& AddSourceServerIDs(Aws::String&& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.push_back(std::move(value)); return *this; }
63 inline TerminateTargetInstancesRequest& AddSourceServerIDs(const char* value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.push_back(value); return *this; }
65
67
70 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
73 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
75 inline TerminateTargetInstancesRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
76 inline TerminateTargetInstancesRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
77 inline TerminateTargetInstancesRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
78 inline TerminateTargetInstancesRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
79 inline TerminateTargetInstancesRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
80 inline TerminateTargetInstancesRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
81 inline TerminateTargetInstancesRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
82 inline TerminateTargetInstancesRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
84 private:
85
86 Aws::String m_accountID;
87 bool m_accountIDHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_sourceServerIDs;
90 bool m_sourceServerIDsHasBeenSet = false;
91
93 bool m_tagsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace mgn
98} // namespace Aws
TerminateTargetInstancesRequest & AddSourceServerIDs(Aws::String &&value)
TerminateTargetInstancesRequest & AddSourceServerIDs(const char *value)
TerminateTargetInstancesRequest & AddTags(const char *key, const char *value)
TerminateTargetInstancesRequest & WithAccountID(const Aws::String &value)
TerminateTargetInstancesRequest & WithAccountID(Aws::String &&value)
TerminateTargetInstancesRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_MGN_API Aws::String SerializePayload() const override
TerminateTargetInstancesRequest & WithSourceServerIDs(const Aws::Vector< Aws::String > &value)
TerminateTargetInstancesRequest & AddTags(const Aws::String &key, const Aws::String &value)
TerminateTargetInstancesRequest & AddTags(const char *key, Aws::String &&value)
TerminateTargetInstancesRequest & AddTags(Aws::String &&key, Aws::String &&value)
TerminateTargetInstancesRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Vector< Aws::String > & GetSourceServerIDs() const
TerminateTargetInstancesRequest & WithAccountID(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
TerminateTargetInstancesRequest & AddTags(Aws::String &&key, const char *value)
void SetSourceServerIDs(const Aws::Vector< Aws::String > &value)
TerminateTargetInstancesRequest & AddSourceServerIDs(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
TerminateTargetInstancesRequest & WithSourceServerIDs(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
TerminateTargetInstancesRequest & AddTags(const Aws::String &key, Aws::String &&value)
TerminateTargetInstancesRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetSourceServerIDs(Aws::Vector< 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