AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
UpdateSourceServerRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/MgnRequest.h>
9#include <aws/mgn/Mgn_EXPORTS.h>
10#include <aws/mgn/model/SourceServerConnectorAction.h>
11
12#include <utility>
13
14namespace Aws {
15namespace mgn {
16namespace Model {
17
21 public:
22 AWS_MGN_API UpdateSourceServerRequest() = 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 "UpdateSourceServer"; }
29
30 AWS_MGN_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetAccountID() const { return m_accountID; }
37 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
38 template <typename AccountIDT = Aws::String>
39 void SetAccountID(AccountIDT&& value) {
40 m_accountIDHasBeenSet = true;
41 m_accountID = std::forward<AccountIDT>(value);
42 }
43 template <typename AccountIDT = Aws::String>
45 SetAccountID(std::forward<AccountIDT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
55 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
56 template <typename SourceServerIDT = Aws::String>
57 void SetSourceServerID(SourceServerIDT&& value) {
58 m_sourceServerIDHasBeenSet = true;
59 m_sourceServerID = std::forward<SourceServerIDT>(value);
60 }
61 template <typename SourceServerIDT = Aws::String>
63 SetSourceServerID(std::forward<SourceServerIDT>(value));
64 return *this;
65 }
67
69
72 inline const SourceServerConnectorAction& GetConnectorAction() const { return m_connectorAction; }
73 inline bool ConnectorActionHasBeenSet() const { return m_connectorActionHasBeenSet; }
74 template <typename ConnectorActionT = SourceServerConnectorAction>
75 void SetConnectorAction(ConnectorActionT&& value) {
76 m_connectorActionHasBeenSet = true;
77 m_connectorAction = std::forward<ConnectorActionT>(value);
78 }
79 template <typename ConnectorActionT = SourceServerConnectorAction>
81 SetConnectorAction(std::forward<ConnectorActionT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetUserProvidedID() const { return m_userProvidedID; }
91 inline bool UserProvidedIDHasBeenSet() const { return m_userProvidedIDHasBeenSet; }
92 template <typename UserProvidedIDT = Aws::String>
93 void SetUserProvidedID(UserProvidedIDT&& value) {
94 m_userProvidedIDHasBeenSet = true;
95 m_userProvidedID = std::forward<UserProvidedIDT>(value);
96 }
97 template <typename UserProvidedIDT = Aws::String>
99 SetUserProvidedID(std::forward<UserProvidedIDT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetFqdnForActionFramework() const { return m_fqdnForActionFramework; }
109 inline bool FqdnForActionFrameworkHasBeenSet() const { return m_fqdnForActionFrameworkHasBeenSet; }
110 template <typename FqdnForActionFrameworkT = Aws::String>
111 void SetFqdnForActionFramework(FqdnForActionFrameworkT&& value) {
112 m_fqdnForActionFrameworkHasBeenSet = true;
113 m_fqdnForActionFramework = std::forward<FqdnForActionFrameworkT>(value);
114 }
115 template <typename FqdnForActionFrameworkT = Aws::String>
116 UpdateSourceServerRequest& WithFqdnForActionFramework(FqdnForActionFrameworkT&& value) {
117 SetFqdnForActionFramework(std::forward<FqdnForActionFrameworkT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetPlatform() const { return m_platform; }
127 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
128 template <typename PlatformT = Aws::String>
129 void SetPlatform(PlatformT&& value) {
130 m_platformHasBeenSet = true;
131 m_platform = std::forward<PlatformT>(value);
132 }
133 template <typename PlatformT = Aws::String>
135 SetPlatform(std::forward<PlatformT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_accountID;
141
142 Aws::String m_sourceServerID;
143
144 SourceServerConnectorAction m_connectorAction;
145
146 Aws::String m_userProvidedID;
147
148 Aws::String m_fqdnForActionFramework;
149
150 Aws::String m_platform;
151 bool m_accountIDHasBeenSet = false;
152 bool m_sourceServerIDHasBeenSet = false;
153 bool m_connectorActionHasBeenSet = false;
154 bool m_userProvidedIDHasBeenSet = false;
155 bool m_fqdnForActionFrameworkHasBeenSet = false;
156 bool m_platformHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace mgn
161} // namespace Aws
void SetFqdnForActionFramework(FqdnForActionFrameworkT &&value)
UpdateSourceServerRequest & WithPlatform(PlatformT &&value)
const SourceServerConnectorAction & GetConnectorAction() const
AWS_MGN_API UpdateSourceServerRequest()=default
UpdateSourceServerRequest & WithFqdnForActionFramework(FqdnForActionFrameworkT &&value)
virtual const char * GetServiceRequestName() const override
AWS_MGN_API Aws::String SerializePayload() const override
UpdateSourceServerRequest & WithSourceServerID(SourceServerIDT &&value)
UpdateSourceServerRequest & WithConnectorAction(ConnectorActionT &&value)
UpdateSourceServerRequest & WithUserProvidedID(UserProvidedIDT &&value)
UpdateSourceServerRequest & WithAccountID(AccountIDT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String