AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AccountIDT = Aws::String>
44 void SetAccountID(AccountIDT&& value) { m_accountIDHasBeenSet = true; m_accountID = std::forward<AccountIDT>(value); }
45 template<typename AccountIDT = Aws::String>
46 StartCutoverRequest& WithAccountID(AccountIDT&& value) { SetAccountID(std::forward<AccountIDT>(value)); return *this;}
48
50
53 inline const Aws::Vector<Aws::String>& GetSourceServerIDs() const { return m_sourceServerIDs; }
54 inline bool SourceServerIDsHasBeenSet() const { return m_sourceServerIDsHasBeenSet; }
55 template<typename SourceServerIDsT = Aws::Vector<Aws::String>>
56 void SetSourceServerIDs(SourceServerIDsT&& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs = std::forward<SourceServerIDsT>(value); }
57 template<typename SourceServerIDsT = Aws::Vector<Aws::String>>
58 StartCutoverRequest& WithSourceServerIDs(SourceServerIDsT&& value) { SetSourceServerIDs(std::forward<SourceServerIDsT>(value)); return *this;}
59 template<typename SourceServerIDsT = Aws::String>
60 StartCutoverRequest& AddSourceServerIDs(SourceServerIDsT&& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.emplace_back(std::forward<SourceServerIDsT>(value)); return *this; }
62
64
67 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
71 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
72 StartCutoverRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
73 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
74 StartCutoverRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
75 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
76 }
78 private:
79
80 Aws::String m_accountID;
81 bool m_accountIDHasBeenSet = false;
82
83 Aws::Vector<Aws::String> m_sourceServerIDs;
84 bool m_sourceServerIDsHasBeenSet = false;
85
87 bool m_tagsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace mgn
92} // namespace Aws
const Aws::Vector< Aws::String > & GetSourceServerIDs() const
StartCutoverRequest & WithSourceServerIDs(SourceServerIDsT &&value)
StartCutoverRequest & WithTags(TagsT &&value)
StartCutoverRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetAccountID() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetSourceServerIDs(SourceServerIDsT &&value)
AWS_MGN_API StartCutoverRequest()=default
AWS_MGN_API Aws::String SerializePayload() const override
StartCutoverRequest & AddSourceServerIDs(SourceServerIDsT &&value)
virtual const char * GetServiceRequestName() const override
StartCutoverRequest & WithAccountID(AccountIDT &&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