AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
CreatePrivateConnectionRequest.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/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/PrivateConnectionMode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityAgent {
17namespace Model {
18
22 public:
23 AWS_SECURITYAGENT_API CreatePrivateConnectionRequest() = 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 "CreatePrivateConnection"; }
30
31 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetPrivateConnectionName() const { return m_privateConnectionName; }
38 inline bool PrivateConnectionNameHasBeenSet() const { return m_privateConnectionNameHasBeenSet; }
39 template <typename PrivateConnectionNameT = Aws::String>
40 void SetPrivateConnectionName(PrivateConnectionNameT&& value) {
41 m_privateConnectionNameHasBeenSet = true;
42 m_privateConnectionName = std::forward<PrivateConnectionNameT>(value);
43 }
44 template <typename PrivateConnectionNameT = Aws::String>
46 SetPrivateConnectionName(std::forward<PrivateConnectionNameT>(value));
47 return *this;
48 }
50
52
56 inline const PrivateConnectionMode& GetMode() const { return m_mode; }
57 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
58 template <typename ModeT = PrivateConnectionMode>
59 void SetMode(ModeT&& value) {
60 m_modeHasBeenSet = true;
61 m_mode = std::forward<ModeT>(value);
62 }
63 template <typename ModeT = PrivateConnectionMode>
65 SetMode(std::forward<ModeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
75 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
76 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
77 void SetTags(TagsT&& value) {
78 m_tagsHasBeenSet = true;
79 m_tags = std::forward<TagsT>(value);
80 }
81 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
83 SetTags(std::forward<TagsT>(value));
84 return *this;
85 }
86 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
87 CreatePrivateConnectionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
88 m_tagsHasBeenSet = true;
89 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_privateConnectionName;
95
97
99 bool m_privateConnectionNameHasBeenSet = false;
100 bool m_modeHasBeenSet = false;
101 bool m_tagsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace SecurityAgent
106} // namespace Aws
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
AWS_SECURITYAGENT_API CreatePrivateConnectionRequest()=default
CreatePrivateConnectionRequest & WithPrivateConnectionName(PrivateConnectionNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePrivateConnectionRequest & AddTags(TagsKeyT &&key, TagsValueT &&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