AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeKeyRequest.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 DescribeKeyRequest() = 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 "DescribeKey"; }
29
30 AWS_KMS_API Aws::String SerializePayload() const override;
31
33
35
54 inline const Aws::String& GetKeyId() const { return m_keyId; }
55 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
56 template <typename KeyIdT = Aws::String>
57 void SetKeyId(KeyIdT&& value) {
58 m_keyIdHasBeenSet = true;
59 m_keyId = std::forward<KeyIdT>(value);
60 }
61 template <typename KeyIdT = Aws::String>
62 DescribeKeyRequest& WithKeyId(KeyIdT&& value) {
63 SetKeyId(std::forward<KeyIdT>(value));
64 return *this;
65 }
67
69
78 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
79 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
80 template <typename GrantTokensT = Aws::Vector<Aws::String>>
81 void SetGrantTokens(GrantTokensT&& value) {
82 m_grantTokensHasBeenSet = true;
83 m_grantTokens = std::forward<GrantTokensT>(value);
84 }
85 template <typename GrantTokensT = Aws::Vector<Aws::String>>
86 DescribeKeyRequest& WithGrantTokens(GrantTokensT&& value) {
87 SetGrantTokens(std::forward<GrantTokensT>(value));
88 return *this;
89 }
90 template <typename GrantTokensT = Aws::String>
91 DescribeKeyRequest& AddGrantTokens(GrantTokensT&& value) {
92 m_grantTokensHasBeenSet = true;
93 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_keyId;
99
100 Aws::Vector<Aws::String> m_grantTokens;
101 bool m_keyIdHasBeenSet = false;
102 bool m_grantTokensHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace KMS
107} // namespace Aws
DescribeKeyRequest & WithKeyId(KeyIdT &&value)
DescribeKeyRequest & WithGrantTokens(GrantTokensT &&value)
void SetGrantTokens(GrantTokensT &&value)
AWS_KMS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetGrantTokens() const
DescribeKeyRequest & AddGrantTokens(GrantTokensT &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetKeyId() const
virtual const char * GetServiceRequestName() const override
AWS_KMS_API DescribeKeyRequest()=default
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