AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeKeyRequest.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace KMS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_KMS_API DescribeKeyRequest() = 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 "DescribeKey"; }
32
33 AWS_KMS_API Aws::String SerializePayload() const override;
34
36
37
39
58 inline const Aws::String& GetKeyId() const { return m_keyId; }
59 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
60 template<typename KeyIdT = Aws::String>
61 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
62 template<typename KeyIdT = Aws::String>
63 DescribeKeyRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
65
67
76 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
77 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
78 template<typename GrantTokensT = Aws::Vector<Aws::String>>
79 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::forward<GrantTokensT>(value); }
80 template<typename GrantTokensT = Aws::Vector<Aws::String>>
81 DescribeKeyRequest& WithGrantTokens(GrantTokensT&& value) { SetGrantTokens(std::forward<GrantTokensT>(value)); return *this;}
82 template<typename GrantTokensT = Aws::String>
83 DescribeKeyRequest& AddGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.emplace_back(std::forward<GrantTokensT>(value)); return *this; }
85 private:
86
87 Aws::String m_keyId;
88 bool m_keyIdHasBeenSet = false;
89
90 Aws::Vector<Aws::String> m_grantTokens;
91 bool m_grantTokensHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace KMS
96} // 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