AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateConnectorRequest.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/ConnectorSsmCommandConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace mgn
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MGN_API UpdateConnectorRequest() = 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 "UpdateConnector"; }
32
33 AWS_MGN_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetConnectorID() const { return m_connectorID; }
41 inline bool ConnectorIDHasBeenSet() const { return m_connectorIDHasBeenSet; }
42 template<typename ConnectorIDT = Aws::String>
43 void SetConnectorID(ConnectorIDT&& value) { m_connectorIDHasBeenSet = true; m_connectorID = std::forward<ConnectorIDT>(value); }
44 template<typename ConnectorIDT = Aws::String>
45 UpdateConnectorRequest& WithConnectorID(ConnectorIDT&& value) { SetConnectorID(std::forward<ConnectorIDT>(value)); return *this;}
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 UpdateConnectorRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
64 inline const ConnectorSsmCommandConfig& GetSsmCommandConfig() const { return m_ssmCommandConfig; }
65 inline bool SsmCommandConfigHasBeenSet() const { return m_ssmCommandConfigHasBeenSet; }
66 template<typename SsmCommandConfigT = ConnectorSsmCommandConfig>
67 void SetSsmCommandConfig(SsmCommandConfigT&& value) { m_ssmCommandConfigHasBeenSet = true; m_ssmCommandConfig = std::forward<SsmCommandConfigT>(value); }
68 template<typename SsmCommandConfigT = ConnectorSsmCommandConfig>
69 UpdateConnectorRequest& WithSsmCommandConfig(SsmCommandConfigT&& value) { SetSsmCommandConfig(std::forward<SsmCommandConfigT>(value)); return *this;}
71 private:
72
73 Aws::String m_connectorID;
74 bool m_connectorIDHasBeenSet = false;
75
76 Aws::String m_name;
77 bool m_nameHasBeenSet = false;
78
79 ConnectorSsmCommandConfig m_ssmCommandConfig;
80 bool m_ssmCommandConfigHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace mgn
85} // namespace Aws
void SetSsmCommandConfig(SsmCommandConfigT &&value)
const ConnectorSsmCommandConfig & GetSsmCommandConfig() const
AWS_MGN_API UpdateConnectorRequest()=default
UpdateConnectorRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_MGN_API Aws::String SerializePayload() const override
UpdateConnectorRequest & WithConnectorID(ConnectorIDT &&value)
UpdateConnectorRequest & WithSsmCommandConfig(SsmCommandConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String