AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportPublicKeyRequest.h
1
6#pragma once
7#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
8#include <aws/ivs-realtime/IvsrealtimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ivsrealtime
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IVSREALTIME_API ImportPublicKeyRequest() = 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 "ImportPublicKey"; }
32
33 AWS_IVSREALTIME_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetPublicKeyMaterial() const { return m_publicKeyMaterial; }
41 inline bool PublicKeyMaterialHasBeenSet() const { return m_publicKeyMaterialHasBeenSet; }
42 template<typename PublicKeyMaterialT = Aws::String>
43 void SetPublicKeyMaterial(PublicKeyMaterialT&& value) { m_publicKeyMaterialHasBeenSet = true; m_publicKeyMaterial = std::forward<PublicKeyMaterialT>(value); }
44 template<typename PublicKeyMaterialT = Aws::String>
45 ImportPublicKeyRequest& WithPublicKeyMaterial(PublicKeyMaterialT&& value) { SetPublicKeyMaterial(std::forward<PublicKeyMaterialT>(value)); return *this;}
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 ImportPublicKeyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
70 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
73 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
74 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
75 ImportPublicKeyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
76 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
77 ImportPublicKeyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
78 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
79 }
81 private:
82
83 Aws::String m_publicKeyMaterial;
84 bool m_publicKeyMaterialHasBeenSet = false;
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
90 bool m_tagsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace ivsrealtime
95} // 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