AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAccountID(const Aws::String& value) { m_accountIDHasBeenSet = true; m_accountID = value; }
43 inline void SetAccountID(Aws::String&& value) { m_accountIDHasBeenSet = true; m_accountID = std::move(value); }
44 inline void SetAccountID(const char* value) { m_accountIDHasBeenSet = true; m_accountID.assign(value); }
45 inline UpdateSourceServerRequest& WithAccountID(const Aws::String& value) { SetAccountID(value); return *this;}
46 inline UpdateSourceServerRequest& WithAccountID(Aws::String&& value) { SetAccountID(std::move(value)); return *this;}
47 inline UpdateSourceServerRequest& WithAccountID(const char* value) { SetAccountID(value); return *this;}
49
51
54 inline const SourceServerConnectorAction& GetConnectorAction() const{ return m_connectorAction; }
55 inline bool ConnectorActionHasBeenSet() const { return m_connectorActionHasBeenSet; }
56 inline void SetConnectorAction(const SourceServerConnectorAction& value) { m_connectorActionHasBeenSet = true; m_connectorAction = value; }
57 inline void SetConnectorAction(SourceServerConnectorAction&& value) { m_connectorActionHasBeenSet = true; m_connectorAction = std::move(value); }
61
63
66 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
67 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
68 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; }
69 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); }
70 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); }
71 inline UpdateSourceServerRequest& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;}
72 inline UpdateSourceServerRequest& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
73 inline UpdateSourceServerRequest& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
75 private:
76
77 Aws::String m_accountID;
78 bool m_accountIDHasBeenSet = false;
79
80 SourceServerConnectorAction m_connectorAction;
81 bool m_connectorActionHasBeenSet = false;
82
83 Aws::String m_sourceServerID;
84 bool m_sourceServerIDHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace mgn
89} // namespace Aws
void SetConnectorAction(const SourceServerConnectorAction &value)
UpdateSourceServerRequest & WithAccountID(const char *value)
UpdateSourceServerRequest & WithAccountID(Aws::String &&value)
UpdateSourceServerRequest & WithSourceServerID(Aws::String &&value)
UpdateSourceServerRequest & WithConnectorAction(SourceServerConnectorAction &&value)
const SourceServerConnectorAction & GetConnectorAction() const
UpdateSourceServerRequest & WithConnectorAction(const SourceServerConnectorAction &value)
UpdateSourceServerRequest & WithSourceServerID(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateSourceServerRequest & WithAccountID(const Aws::String &value)
void SetConnectorAction(SourceServerConnectorAction &&value)
AWS_MGN_API Aws::String SerializePayload() const override
UpdateSourceServerRequest & WithSourceServerID(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String