AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
56 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
57 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
58 inline GetPublicKeyRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
59 inline GetPublicKeyRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
60 inline GetPublicKeyRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
62
64
73 inline const Aws::Vector<Aws::String>& GetGrantTokens() const{ return m_grantTokens; }
74 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
75 inline void SetGrantTokens(const Aws::Vector<Aws::String>& value) { m_grantTokensHasBeenSet = true; m_grantTokens = value; }
76 inline void SetGrantTokens(Aws::Vector<Aws::String>&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::move(value); }
77 inline GetPublicKeyRequest& WithGrantTokens(const Aws::Vector<Aws::String>& value) { SetGrantTokens(value); return *this;}
78 inline GetPublicKeyRequest& WithGrantTokens(Aws::Vector<Aws::String>&& value) { SetGrantTokens(std::move(value)); return *this;}
79 inline GetPublicKeyRequest& AddGrantTokens(const Aws::String& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
80 inline GetPublicKeyRequest& AddGrantTokens(Aws::String&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(std::move(value)); return *this; }
81 inline GetPublicKeyRequest& AddGrantTokens(const char* value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
83 private:
84
85 Aws::String m_keyId;
86 bool m_keyIdHasBeenSet = false;
87
88 Aws::Vector<Aws::String> m_grantTokens;
89 bool m_grantTokensHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace KMS
94} // namespace Aws
GetPublicKeyRequest & WithKeyId(Aws::String &&value)
void SetGrantTokens(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
AWS_KMS_API Aws::String SerializePayload() const override
GetPublicKeyRequest & WithKeyId(const Aws::String &value)
GetPublicKeyRequest & WithKeyId(const char *value)
const Aws::String & GetKeyId() const
void SetKeyId(const Aws::String &value)
void SetGrantTokens(Aws::Vector< Aws::String > &&value)
GetPublicKeyRequest & AddGrantTokens(const char *value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetPublicKeyRequest & WithGrantTokens(Aws::Vector< Aws::String > &&value)
GetPublicKeyRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
GetPublicKeyRequest & AddGrantTokens(Aws::String &&value)
GetPublicKeyRequest & AddGrantTokens(const Aws::String &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