AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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 private:
86 Aws::String m_accountID;
87
88 Aws::String m_sourceServerID;
89
90 SourceServerConnectorAction m_connectorAction;
91 bool m_accountIDHasBeenSet = false;
92 bool m_sourceServerIDHasBeenSet = false;
93 bool m_connectorActionHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace mgn
98} // namespace Aws
const SourceServerConnectorAction & GetConnectorAction() const
AWS_MGN_API UpdateSourceServerRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_MGN_API Aws::String SerializePayload() const override
UpdateSourceServerRequest & WithSourceServerID(SourceServerIDT &&value)
UpdateSourceServerRequest & WithConnectorAction(ConnectorActionT &&value)
UpdateSourceServerRequest & WithAccountID(AccountIDT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String