AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateConnectorRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/observabilityadmin/ObservabilityAdminRequest.h>
10#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
11#include <aws/observabilityadmin/model/ConnectorConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ObservabilityAdmin {
17namespace Model {
18
22 public:
23 AWS_OBSERVABILITYADMIN_API CreateConnectorRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateConnector"; }
30
31 AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override;
32
34
37 inline const ConnectorConfiguration& GetConnectorConfiguration() const { return m_connectorConfiguration; }
38 inline bool ConnectorConfigurationHasBeenSet() const { return m_connectorConfigurationHasBeenSet; }
39 template <typename ConnectorConfigurationT = ConnectorConfiguration>
40 void SetConnectorConfiguration(ConnectorConfigurationT&& value) {
41 m_connectorConfigurationHasBeenSet = true;
42 m_connectorConfiguration = std::forward<ConnectorConfigurationT>(value);
43 }
44 template <typename ConnectorConfigurationT = ConnectorConfiguration>
45 CreateConnectorRequest& WithConnectorConfiguration(ConnectorConfigurationT&& value) {
46 SetConnectorConfiguration(std::forward<ConnectorConfigurationT>(value));
47 return *this;
48 }
50
52
61 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
62 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
63 template <typename RoleArnT = Aws::String>
64 void SetRoleArn(RoleArnT&& value) {
65 m_roleArnHasBeenSet = true;
66 m_roleArn = std::forward<RoleArnT>(value);
67 }
68 template <typename RoleArnT = Aws::String>
70 SetRoleArn(std::forward<RoleArnT>(value));
71 return *this;
72 }
74
76
83 inline const Aws::String& GetName() const { return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 template <typename NameT = Aws::String>
86 void SetName(NameT&& value) {
87 m_nameHasBeenSet = true;
88 m_name = std::forward<NameT>(value);
89 }
90 template <typename NameT = Aws::String>
92 SetName(std::forward<NameT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 void SetTags(TagsT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags = std::forward<TagsT>(value);
107 }
108 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 SetTags(std::forward<TagsT>(value));
111 return *this;
112 }
113 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
114 CreateConnectorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
117 return *this;
118 }
120
122
132 inline const Aws::String& GetClientToken() const { return m_clientToken; }
133 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
134 template <typename ClientTokenT = Aws::String>
135 void SetClientToken(ClientTokenT&& value) {
136 m_clientTokenHasBeenSet = true;
137 m_clientToken = std::forward<ClientTokenT>(value);
138 }
139 template <typename ClientTokenT = Aws::String>
141 SetClientToken(std::forward<ClientTokenT>(value));
142 return *this;
143 }
145 private:
146 ConnectorConfiguration m_connectorConfiguration;
147
148 Aws::String m_roleArn;
149
150 Aws::String m_name;
151
153
154 Aws::String m_clientToken;
155 bool m_connectorConfigurationHasBeenSet = false;
156 bool m_roleArnHasBeenSet = false;
157 bool m_nameHasBeenSet = false;
158 bool m_tagsHasBeenSet = false;
159 bool m_clientTokenHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace ObservabilityAdmin
164} // namespace Aws
AWS_OBSERVABILITYADMIN_API CreateConnectorRequest()=default
const ConnectorConfiguration & GetConnectorConfiguration() const
void SetConnectorConfiguration(ConnectorConfigurationT &&value)
CreateConnectorRequest & WithClientToken(ClientTokenT &&value)
CreateConnectorRequest & WithConnectorConfiguration(ConnectorConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OBSERVABILITYADMIN_API Aws::String SerializePayload() const override
CreateConnectorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateConnectorRequest & WithRoleArn(RoleArnT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String