AWS SDK for C++  1.9.131
AWS SDK for C++
TerminateTargetInstancesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/mgn/Mgn_EXPORTS.h>
8 #include <aws/mgn/MgnRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace mgn
17 {
18 namespace 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::String SerializePayload() const override;
35 
36 
40  inline const Aws::Vector<Aws::String>& GetSourceServerIDs() const{ return m_sourceServerIDs; }
41 
45  inline bool SourceServerIDsHasBeenSet() const { return m_sourceServerIDsHasBeenSet; }
46 
50  inline void SetSourceServerIDs(const Aws::Vector<Aws::String>& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs = value; }
51 
55  inline void SetSourceServerIDs(Aws::Vector<Aws::String>&& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs = std::move(value); }
56 
60  inline TerminateTargetInstancesRequest& WithSourceServerIDs(const Aws::Vector<Aws::String>& value) { SetSourceServerIDs(value); return *this;}
61 
65  inline TerminateTargetInstancesRequest& WithSourceServerIDs(Aws::Vector<Aws::String>&& value) { SetSourceServerIDs(std::move(value)); return *this;}
66 
70  inline TerminateTargetInstancesRequest& AddSourceServerIDs(const Aws::String& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.push_back(value); return *this; }
71 
75  inline TerminateTargetInstancesRequest& AddSourceServerIDs(Aws::String&& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.push_back(std::move(value)); return *this; }
76 
80  inline TerminateTargetInstancesRequest& AddSourceServerIDs(const char* value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.push_back(value); return *this; }
81 
82 
86  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
87 
91  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 
96  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
97 
101  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 
106  inline TerminateTargetInstancesRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
107 
111  inline TerminateTargetInstancesRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
112 
116  inline TerminateTargetInstancesRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
117 
121  inline TerminateTargetInstancesRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
122 
126  inline TerminateTargetInstancesRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 
131  inline TerminateTargetInstancesRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
132 
136  inline TerminateTargetInstancesRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
137 
141  inline TerminateTargetInstancesRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
142 
146  inline TerminateTargetInstancesRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
147 
148  private:
149 
150  Aws::Vector<Aws::String> m_sourceServerIDs;
151  bool m_sourceServerIDsHasBeenSet;
152 
154  bool m_tagsHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace mgn
159 } // namespace Aws
Aws::mgn::Model::TerminateTargetInstancesRequest::AddTags
TerminateTargetInstancesRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: TerminateTargetInstancesRequest.h:131
Aws::mgn::Model::TerminateTargetInstancesRequest::WithTags
TerminateTargetInstancesRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TerminateTargetInstancesRequest.h:106
Aws::mgn::Model::TerminateTargetInstancesRequest::TerminateTargetInstancesRequest
TerminateTargetInstancesRequest()
Aws::mgn::Model::TerminateTargetInstancesRequest::SetSourceServerIDs
void SetSourceServerIDs(Aws::Vector< Aws::String > &&value)
Definition: TerminateTargetInstancesRequest.h:55
Aws::mgn::Model::TerminateTargetInstancesRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TerminateTargetInstancesRequest.h:91
Aws::mgn::Model::TerminateTargetInstancesRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TerminateTargetInstancesRequest.h:96
AWS_MGN_API
#define AWS_MGN_API
Definition: Mgn_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::mgn::MgnRequest
Definition: MgnRequest.h:17
AWSVector.h
Aws::mgn::Model::TerminateTargetInstancesRequest::AddSourceServerIDs
TerminateTargetInstancesRequest & AddSourceServerIDs(const char *value)
Definition: TerminateTargetInstancesRequest.h:80
MgnRequest.h
Aws::mgn::Model::TerminateTargetInstancesRequest::WithSourceServerIDs
TerminateTargetInstancesRequest & WithSourceServerIDs(Aws::Vector< Aws::String > &&value)
Definition: TerminateTargetInstancesRequest.h:65
Aws::mgn::Model::TerminateTargetInstancesRequest::AddTags
TerminateTargetInstancesRequest & AddTags(const char *key, Aws::String &&value)
Definition: TerminateTargetInstancesRequest.h:136
Aws::mgn::Model::TerminateTargetInstancesRequest::GetSourceServerIDs
const Aws::Vector< Aws::String > & GetSourceServerIDs() const
Definition: TerminateTargetInstancesRequest.h:40
Aws::mgn::Model::TerminateTargetInstancesRequest::AddTags
TerminateTargetInstancesRequest & AddTags(const char *key, const char *value)
Definition: TerminateTargetInstancesRequest.h:146
Aws::mgn::Model::TerminateTargetInstancesRequest::AddSourceServerIDs
TerminateTargetInstancesRequest & AddSourceServerIDs(const Aws::String &value)
Definition: TerminateTargetInstancesRequest.h:70
Aws::mgn::Model::TerminateTargetInstancesRequest::WithTags
TerminateTargetInstancesRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TerminateTargetInstancesRequest.h:111
Aws::mgn::Model::TerminateTargetInstancesRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: TerminateTargetInstancesRequest.h:86
Aws::mgn::Model::TerminateTargetInstancesRequest::SetSourceServerIDs
void SetSourceServerIDs(const Aws::Vector< Aws::String > &value)
Definition: TerminateTargetInstancesRequest.h:50
Mgn_EXPORTS.h
Aws::mgn::Model::TerminateTargetInstancesRequest::AddSourceServerIDs
TerminateTargetInstancesRequest & AddSourceServerIDs(Aws::String &&value)
Definition: TerminateTargetInstancesRequest.h:75
AWSString.h
Aws::mgn::Model::TerminateTargetInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::mgn::Model::TerminateTargetInstancesRequest::SourceServerIDsHasBeenSet
bool SourceServerIDsHasBeenSet() const
Definition: TerminateTargetInstancesRequest.h:45
Aws::mgn::Model::TerminateTargetInstancesRequest
Definition: TerminateTargetInstancesRequest.h:24
Aws::mgn::Model::TerminateTargetInstancesRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TerminateTargetInstancesRequest.h:101
Aws::mgn::Model::TerminateTargetInstancesRequest::AddTags
TerminateTargetInstancesRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: TerminateTargetInstancesRequest.h:121
Aws::mgn::Model::TerminateTargetInstancesRequest::WithSourceServerIDs
TerminateTargetInstancesRequest & WithSourceServerIDs(const Aws::Vector< Aws::String > &value)
Definition: TerminateTargetInstancesRequest.h:60
Aws::mgn::Model::TerminateTargetInstancesRequest::AddTags
TerminateTargetInstancesRequest & AddTags(Aws::String &&key, const char *value)
Definition: TerminateTargetInstancesRequest.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::mgn::Model::TerminateTargetInstancesRequest::AddTags
TerminateTargetInstancesRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: TerminateTargetInstancesRequest.h:126
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWSMap.h
Aws::mgn::Model::TerminateTargetInstancesRequest::AddTags
TerminateTargetInstancesRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: TerminateTargetInstancesRequest.h:116
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::mgn::Model::TerminateTargetInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TerminateTargetInstancesRequest.h:32