AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DisassociateSourceServersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mgn/MgnRequest.h>
10#include <aws/mgn/Mgn_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace mgn {
16namespace Model {
17
21 public:
22 AWS_MGN_API DisassociateSourceServersRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DisassociateSourceServers"; }
29
30 AWS_MGN_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetApplicationID() const { return m_applicationID; }
37 inline bool ApplicationIDHasBeenSet() const { return m_applicationIDHasBeenSet; }
38 template <typename ApplicationIDT = Aws::String>
39 void SetApplicationID(ApplicationIDT&& value) {
40 m_applicationIDHasBeenSet = true;
41 m_applicationID = std::forward<ApplicationIDT>(value);
42 }
43 template <typename ApplicationIDT = Aws::String>
45 SetApplicationID(std::forward<ApplicationIDT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<Aws::String>& GetSourceServerIDs() const { return m_sourceServerIDs; }
55 inline bool SourceServerIDsHasBeenSet() const { return m_sourceServerIDsHasBeenSet; }
56 template <typename SourceServerIDsT = Aws::Vector<Aws::String>>
57 void SetSourceServerIDs(SourceServerIDsT&& value) {
58 m_sourceServerIDsHasBeenSet = true;
59 m_sourceServerIDs = std::forward<SourceServerIDsT>(value);
60 }
61 template <typename SourceServerIDsT = Aws::Vector<Aws::String>>
63 SetSourceServerIDs(std::forward<SourceServerIDsT>(value));
64 return *this;
65 }
66 template <typename SourceServerIDsT = Aws::String>
68 m_sourceServerIDsHasBeenSet = true;
69 m_sourceServerIDs.emplace_back(std::forward<SourceServerIDsT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAccountID() const { return m_accountID; }
79 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
80 template <typename AccountIDT = Aws::String>
81 void SetAccountID(AccountIDT&& value) {
82 m_accountIDHasBeenSet = true;
83 m_accountID = std::forward<AccountIDT>(value);
84 }
85 template <typename AccountIDT = Aws::String>
87 SetAccountID(std::forward<AccountIDT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_applicationID;
93
94 Aws::Vector<Aws::String> m_sourceServerIDs;
95
96 Aws::String m_accountID;
97 bool m_applicationIDHasBeenSet = false;
98 bool m_sourceServerIDsHasBeenSet = false;
99 bool m_accountIDHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace mgn
104} // namespace Aws
DisassociateSourceServersRequest & WithSourceServerIDs(SourceServerIDsT &&value)
DisassociateSourceServersRequest & AddSourceServerIDs(SourceServerIDsT &&value)
const Aws::Vector< Aws::String > & GetSourceServerIDs() const
DisassociateSourceServersRequest & WithApplicationID(ApplicationIDT &&value)
AWS_MGN_API Aws::String SerializePayload() const override
DisassociateSourceServersRequest & WithAccountID(AccountIDT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector