AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartCutoverRequest.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:
26 AWS_MGN_API StartCutoverRequest();
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 "StartCutover"; }
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 StartCutoverRequest& WithAccountID(const Aws::String& value) { SetAccountID(value); return *this;}
47 inline StartCutoverRequest& WithAccountID(Aws::String&& value) { SetAccountID(std::move(value)); return *this;}
48 inline StartCutoverRequest& 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); }
60 inline StartCutoverRequest& WithSourceServerIDs(Aws::Vector<Aws::String>&& value) { SetSourceServerIDs(std::move(value)); return *this;}
61 inline StartCutoverRequest& AddSourceServerIDs(const Aws::String& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.push_back(value); return *this; }
62 inline StartCutoverRequest& AddSourceServerIDs(Aws::String&& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.push_back(std::move(value)); return *this; }
63 inline StartCutoverRequest& 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); }
74 inline StartCutoverRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
75 inline StartCutoverRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
76 inline StartCutoverRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
77 inline StartCutoverRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
78 inline StartCutoverRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
79 inline StartCutoverRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
80 inline StartCutoverRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
81 inline StartCutoverRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
82 inline StartCutoverRequest& 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
StartCutoverRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Vector< Aws::String > & GetSourceServerIDs() const
StartCutoverRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
StartCutoverRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetAccountID(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
StartCutoverRequest & AddTags(Aws::String &&key, Aws::String &&value)
StartCutoverRequest & WithAccountID(Aws::String &&value)
StartCutoverRequest & WithSourceServerIDs(Aws::Vector< Aws::String > &&value)
const Aws::String & GetAccountID() const
StartCutoverRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartCutoverRequest & AddSourceServerIDs(const Aws::String &value)
StartCutoverRequest & WithAccountID(const char *value)
StartCutoverRequest & WithSourceServerIDs(const Aws::Vector< Aws::String > &value)
StartCutoverRequest & AddTags(Aws::String &&key, const Aws::String &value)
StartCutoverRequest & AddSourceServerIDs(const char *value)
AWS_MGN_API Aws::String SerializePayload() const override
void SetSourceServerIDs(const Aws::Vector< Aws::String > &value)
StartCutoverRequest & WithAccountID(const Aws::String &value)
StartCutoverRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
virtual const char * GetServiceRequestName() const override
StartCutoverRequest & AddTags(const char *key, Aws::String &&value)
void SetSourceServerIDs(Aws::Vector< Aws::String > &&value)
StartCutoverRequest & AddSourceServerIDs(Aws::String &&value)
StartCutoverRequest & AddTags(const char *key, const char *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