AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
PutConnectorRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/config/model/ConnectorConfiguration.h>
10#include <aws/config/model/Tag.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConfigService {
17namespace Model {
18
22 public:
23 AWS_CONFIGSERVICE_API PutConnectorRequest() = 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 "PutConnector"; }
30
31 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
32
33 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const ConnectorConfiguration& GetConnectorConfiguration() const { return m_connectorConfiguration; }
41 inline bool ConnectorConfigurationHasBeenSet() const { return m_connectorConfigurationHasBeenSet; }
42 template <typename ConnectorConfigurationT = ConnectorConfiguration>
43 void SetConnectorConfiguration(ConnectorConfigurationT&& value) {
44 m_connectorConfigurationHasBeenSet = true;
45 m_connectorConfiguration = std::forward<ConnectorConfigurationT>(value);
46 }
47 template <typename ConnectorConfigurationT = ConnectorConfiguration>
48 PutConnectorRequest& WithConnectorConfiguration(ConnectorConfigurationT&& value) {
49 SetConnectorConfiguration(std::forward<ConnectorConfigurationT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
60 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
61 template <typename TagsT = Aws::Vector<Tag>>
62 void SetTags(TagsT&& value) {
63 m_tagsHasBeenSet = true;
64 m_tags = std::forward<TagsT>(value);
65 }
66 template <typename TagsT = Aws::Vector<Tag>>
67 PutConnectorRequest& WithTags(TagsT&& value) {
68 SetTags(std::forward<TagsT>(value));
69 return *this;
70 }
71 template <typename TagsT = Tag>
72 PutConnectorRequest& AddTags(TagsT&& value) {
73 m_tagsHasBeenSet = true;
74 m_tags.emplace_back(std::forward<TagsT>(value));
75 return *this;
76 }
78 private:
79 ConnectorConfiguration m_connectorConfiguration;
80
81 Aws::Vector<Tag> m_tags;
82 bool m_connectorConfigurationHasBeenSet = false;
83 bool m_tagsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace ConfigService
88} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
PutConnectorRequest & WithTags(TagsT &&value)
PutConnectorRequest & WithConnectorConfiguration(ConnectorConfigurationT &&value)
AWS_CONFIGSERVICE_API PutConnectorRequest()=default
void SetConnectorConfiguration(ConnectorConfigurationT &&value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
PutConnectorRequest & AddTags(TagsT &&value)
const ConnectorConfiguration & GetConnectorConfiguration() const
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector