AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ImportPublicKeyRequest.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/ivs-realtime/IvsrealtimeRequest.h>
10#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ivsrealtime {
16namespace Model {
17
21 public:
22 AWS_IVSREALTIME_API ImportPublicKeyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ImportPublicKey"; }
29
30 AWS_IVSREALTIME_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetPublicKeyMaterial() const { return m_publicKeyMaterial; }
37 inline bool PublicKeyMaterialHasBeenSet() const { return m_publicKeyMaterialHasBeenSet; }
38 template <typename PublicKeyMaterialT = Aws::String>
39 void SetPublicKeyMaterial(PublicKeyMaterialT&& value) {
40 m_publicKeyMaterialHasBeenSet = true;
41 m_publicKeyMaterial = std::forward<PublicKeyMaterialT>(value);
42 }
43 template <typename PublicKeyMaterialT = Aws::String>
44 ImportPublicKeyRequest& WithPublicKeyMaterial(PublicKeyMaterialT&& value) {
45 SetPublicKeyMaterial(std::forward<PublicKeyMaterialT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
78 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 void SetTags(TagsT&& value) {
82 m_tagsHasBeenSet = true;
83 m_tags = std::forward<TagsT>(value);
84 }
85 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 SetTags(std::forward<TagsT>(value));
88 return *this;
89 }
90 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
91 ImportPublicKeyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
92 m_tagsHasBeenSet = true;
93 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_publicKeyMaterial;
99
100 Aws::String m_name;
101
103 bool m_publicKeyMaterialHasBeenSet = false;
104 bool m_nameHasBeenSet = false;
105 bool m_tagsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace ivsrealtime
110} // namespace Aws
void SetPublicKeyMaterial(PublicKeyMaterialT &&value)
AWS_IVSREALTIME_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_IVSREALTIME_API ImportPublicKeyRequest()=default
ImportPublicKeyRequest & WithPublicKeyMaterial(PublicKeyMaterialT &&value)
ImportPublicKeyRequest & WithTags(TagsT &&value)
ImportPublicKeyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportPublicKeyRequest & WithName(NameT &&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