AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateSourceServerRequest.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/mgn/model/SourceServerConnectorAction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace mgn
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MGN_API UpdateSourceServerRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateSourceServer"; }
32
33 AWS_MGN_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetAccountID() const { return m_accountID; }
41 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
42 template<typename AccountIDT = Aws::String>
43 void SetAccountID(AccountIDT&& value) { m_accountIDHasBeenSet = true; m_accountID = std::forward<AccountIDT>(value); }
44 template<typename AccountIDT = Aws::String>
45 UpdateSourceServerRequest& WithAccountID(AccountIDT&& value) { SetAccountID(std::forward<AccountIDT>(value)); return *this;}
47
49
52 inline const SourceServerConnectorAction& GetConnectorAction() const { return m_connectorAction; }
53 inline bool ConnectorActionHasBeenSet() const { return m_connectorActionHasBeenSet; }
54 template<typename ConnectorActionT = SourceServerConnectorAction>
55 void SetConnectorAction(ConnectorActionT&& value) { m_connectorActionHasBeenSet = true; m_connectorAction = std::forward<ConnectorActionT>(value); }
56 template<typename ConnectorActionT = SourceServerConnectorAction>
57 UpdateSourceServerRequest& WithConnectorAction(ConnectorActionT&& value) { SetConnectorAction(std::forward<ConnectorActionT>(value)); return *this;}
59
61
64 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
65 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
66 template<typename SourceServerIDT = Aws::String>
67 void SetSourceServerID(SourceServerIDT&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::forward<SourceServerIDT>(value); }
68 template<typename SourceServerIDT = Aws::String>
69 UpdateSourceServerRequest& WithSourceServerID(SourceServerIDT&& value) { SetSourceServerID(std::forward<SourceServerIDT>(value)); return *this;}
71 private:
72
73 Aws::String m_accountID;
74 bool m_accountIDHasBeenSet = false;
75
76 SourceServerConnectorAction m_connectorAction;
77 bool m_connectorActionHasBeenSet = false;
78
79 Aws::String m_sourceServerID;
80 bool m_sourceServerIDHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace mgn
85} // 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