AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateConnectorDestinationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
11#include <aws/iot-managed-integrations/model/AuthConfig.h>
12#include <aws/iot-managed-integrations/model/AuthType.h>
13#include <aws/iot-managed-integrations/model/SecretsManager.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoTManagedIntegrations {
19namespace Model {
20
24 public:
25 AWS_IOTMANAGEDINTEGRATIONS_API CreateConnectorDestinationRequest() = 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 "CreateConnectorDestination"; }
32
33 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetCloudConnectorId() const { return m_cloudConnectorId; }
76 inline bool CloudConnectorIdHasBeenSet() const { return m_cloudConnectorIdHasBeenSet; }
77 template <typename CloudConnectorIdT = Aws::String>
78 void SetCloudConnectorId(CloudConnectorIdT&& value) {
79 m_cloudConnectorIdHasBeenSet = true;
80 m_cloudConnectorId = std::forward<CloudConnectorIdT>(value);
81 }
82 template <typename CloudConnectorIdT = Aws::String>
84 SetCloudConnectorId(std::forward<CloudConnectorIdT>(value));
85 return *this;
86 }
88
90
94 inline AuthType GetAuthType() const { return m_authType; }
95 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
96 inline void SetAuthType(AuthType value) {
97 m_authTypeHasBeenSet = true;
98 m_authType = value;
99 }
101 SetAuthType(value);
102 return *this;
103 }
105
107
111 inline const AuthConfig& GetAuthConfig() const { return m_authConfig; }
112 inline bool AuthConfigHasBeenSet() const { return m_authConfigHasBeenSet; }
113 template <typename AuthConfigT = AuthConfig>
114 void SetAuthConfig(AuthConfigT&& value) {
115 m_authConfigHasBeenSet = true;
116 m_authConfig = std::forward<AuthConfigT>(value);
117 }
118 template <typename AuthConfigT = AuthConfig>
120 SetAuthConfig(std::forward<AuthConfigT>(value));
121 return *this;
122 }
124
126
130 inline const SecretsManager& GetSecretsManager() const { return m_secretsManager; }
131 inline bool SecretsManagerHasBeenSet() const { return m_secretsManagerHasBeenSet; }
132 template <typename SecretsManagerT = SecretsManager>
133 void SetSecretsManager(SecretsManagerT&& value) {
134 m_secretsManagerHasBeenSet = true;
135 m_secretsManager = std::forward<SecretsManagerT>(value);
136 }
137 template <typename SecretsManagerT = SecretsManager>
139 SetSecretsManager(std::forward<SecretsManagerT>(value));
140 return *this;
141 }
143
145
150 inline const Aws::String& GetClientToken() const { return m_clientToken; }
151 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
152 template <typename ClientTokenT = Aws::String>
153 void SetClientToken(ClientTokenT&& value) {
154 m_clientTokenHasBeenSet = true;
155 m_clientToken = std::forward<ClientTokenT>(value);
156 }
157 template <typename ClientTokenT = Aws::String>
159 SetClientToken(std::forward<ClientTokenT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_name;
165
166 Aws::String m_description;
167
168 Aws::String m_cloudConnectorId;
169
170 AuthType m_authType{AuthType::NOT_SET};
171
172 AuthConfig m_authConfig;
173
174 SecretsManager m_secretsManager;
175
177 bool m_nameHasBeenSet = false;
178 bool m_descriptionHasBeenSet = false;
179 bool m_cloudConnectorIdHasBeenSet = false;
180 bool m_authTypeHasBeenSet = false;
181 bool m_authConfigHasBeenSet = false;
182 bool m_secretsManagerHasBeenSet = false;
183 bool m_clientTokenHasBeenSet = true;
184};
185
186} // namespace Model
187} // namespace IoTManagedIntegrations
188} // namespace Aws
CreateConnectorDestinationRequest & WithClientToken(ClientTokenT &&value)
CreateConnectorDestinationRequest & WithDescription(DescriptionT &&value)
CreateConnectorDestinationRequest & WithSecretsManager(SecretsManagerT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API CreateConnectorDestinationRequest()=default
CreateConnectorDestinationRequest & WithCloudConnectorId(CloudConnectorIdT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String