AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GetPublicKeyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kms/KMSRequest.h>
10#include <aws/kms/KMS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace KMS {
16namespace Model {
17
21 public:
22 AWS_KMS_API GetPublicKeyRequest() = 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 "GetPublicKey"; }
29
30 AWS_KMS_API Aws::String SerializePayload() const override;
31
33
35
49 inline const Aws::String& GetKeyId() const { return m_keyId; }
50 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
51 template <typename KeyIdT = Aws::String>
52 void SetKeyId(KeyIdT&& value) {
53 m_keyIdHasBeenSet = true;
54 m_keyId = std::forward<KeyIdT>(value);
55 }
56 template <typename KeyIdT = Aws::String>
57 GetPublicKeyRequest& WithKeyId(KeyIdT&& value) {
58 SetKeyId(std::forward<KeyIdT>(value));
59 return *this;
60 }
62
64
73 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
74 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
75 template <typename GrantTokensT = Aws::Vector<Aws::String>>
76 void SetGrantTokens(GrantTokensT&& value) {
77 m_grantTokensHasBeenSet = true;
78 m_grantTokens = std::forward<GrantTokensT>(value);
79 }
80 template <typename GrantTokensT = Aws::Vector<Aws::String>>
81 GetPublicKeyRequest& WithGrantTokens(GrantTokensT&& value) {
82 SetGrantTokens(std::forward<GrantTokensT>(value));
83 return *this;
84 }
85 template <typename GrantTokensT = Aws::String>
86 GetPublicKeyRequest& AddGrantTokens(GrantTokensT&& value) {
87 m_grantTokensHasBeenSet = true;
88 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_keyId;
94
95 Aws::Vector<Aws::String> m_grantTokens;
96 bool m_keyIdHasBeenSet = false;
97 bool m_grantTokensHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace KMS
102} // namespace Aws
void SetGrantTokens(GrantTokensT &&value)
virtual const char * GetServiceRequestName() const override
GetPublicKeyRequest & WithGrantTokens(GrantTokensT &&value)
GetPublicKeyRequest & AddGrantTokens(GrantTokensT &&value)
AWS_KMS_API Aws::String SerializePayload() const override
const Aws::String & GetKeyId() const
AWS_KMS_API GetPublicKeyRequest()=default
const Aws::Vector< Aws::String > & GetGrantTokens() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetPublicKeyRequest & WithKeyId(KeyIdT &&value)
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