AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateQuickConnectRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/QuickConnectConfig.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API CreateQuickConnectRequest() = 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 "CreateQuickConnect"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline const QuickConnectConfig& GetQuickConnectConfig() const { return m_quickConnectConfig; }
94 inline bool QuickConnectConfigHasBeenSet() const { return m_quickConnectConfigHasBeenSet; }
95 template <typename QuickConnectConfigT = QuickConnectConfig>
96 void SetQuickConnectConfig(QuickConnectConfigT&& value) {
97 m_quickConnectConfigHasBeenSet = true;
98 m_quickConnectConfig = std::forward<QuickConnectConfigT>(value);
99 }
100 template <typename QuickConnectConfigT = QuickConnectConfig>
101 CreateQuickConnectRequest& WithQuickConnectConfig(QuickConnectConfigT&& value) {
102 SetQuickConnectConfig(std::forward<QuickConnectConfigT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 void SetTags(TagsT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags = std::forward<TagsT>(value);
118 }
119 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 SetTags(std::forward<TagsT>(value));
122 return *this;
123 }
124 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
125 CreateQuickConnectRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_instanceId;
133 bool m_instanceIdHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::String m_description;
139 bool m_descriptionHasBeenSet = false;
140
141 QuickConnectConfig m_quickConnectConfig;
142 bool m_quickConnectConfigHasBeenSet = false;
143
145 bool m_tagsHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace Connect
150} // namespace Aws
CreateQuickConnectRequest & WithTags(TagsT &&value)
CreateQuickConnectRequest & WithDescription(DescriptionT &&value)
CreateQuickConnectRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CONNECT_API CreateQuickConnectRequest()=default
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetQuickConnectConfig(QuickConnectConfigT &&value)
CreateQuickConnectRequest & WithInstanceId(InstanceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const QuickConnectConfig & GetQuickConnectConfig() const
CreateQuickConnectRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateQuickConnectRequest & WithQuickConnectConfig(QuickConnectConfigT &&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