AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetPublicKeyRequest.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 GetPublicKeyRequest() = 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 "GetPublicKey"; }
32
33 AWS_KMS_API Aws::String SerializePayload() const override;
34
36
37
39
53 inline const Aws::String& GetKeyId() const { return m_keyId; }
54 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
55 template<typename KeyIdT = Aws::String>
56 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
57 template<typename KeyIdT = Aws::String>
58 GetPublicKeyRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
60
62
71 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
72 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
73 template<typename GrantTokensT = Aws::Vector<Aws::String>>
74 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::forward<GrantTokensT>(value); }
75 template<typename GrantTokensT = Aws::Vector<Aws::String>>
76 GetPublicKeyRequest& WithGrantTokens(GrantTokensT&& value) { SetGrantTokens(std::forward<GrantTokensT>(value)); return *this;}
77 template<typename GrantTokensT = Aws::String>
78 GetPublicKeyRequest& AddGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.emplace_back(std::forward<GrantTokensT>(value)); return *this; }
80 private:
81
82 Aws::String m_keyId;
83 bool m_keyIdHasBeenSet = false;
84
85 Aws::Vector<Aws::String> m_grantTokens;
86 bool m_grantTokensHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace KMS
91} // 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