AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
61 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
62 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
63 inline DescribeKeyRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
64 inline DescribeKeyRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
65 inline DescribeKeyRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
67
69
78 inline const Aws::Vector<Aws::String>& GetGrantTokens() const{ return m_grantTokens; }
79 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
80 inline void SetGrantTokens(const Aws::Vector<Aws::String>& value) { m_grantTokensHasBeenSet = true; m_grantTokens = value; }
81 inline void SetGrantTokens(Aws::Vector<Aws::String>&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::move(value); }
82 inline DescribeKeyRequest& WithGrantTokens(const Aws::Vector<Aws::String>& value) { SetGrantTokens(value); return *this;}
83 inline DescribeKeyRequest& WithGrantTokens(Aws::Vector<Aws::String>&& value) { SetGrantTokens(std::move(value)); return *this;}
84 inline DescribeKeyRequest& AddGrantTokens(const Aws::String& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
85 inline DescribeKeyRequest& AddGrantTokens(Aws::String&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(std::move(value)); return *this; }
86 inline DescribeKeyRequest& AddGrantTokens(const char* value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
88 private:
89
90 Aws::String m_keyId;
91 bool m_keyIdHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_grantTokens;
94 bool m_grantTokensHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace KMS
99} // namespace Aws
DescribeKeyRequest & WithKeyId(const char *value)
DescribeKeyRequest & WithGrantTokens(Aws::Vector< Aws::String > &&value)
DescribeKeyRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
DescribeKeyRequest & WithKeyId(Aws::String &&value)
DescribeKeyRequest & AddGrantTokens(Aws::String &&value)
AWS_KMS_API Aws::String SerializePayload() const override
void SetGrantTokens(Aws::Vector< Aws::String > &&value)
DescribeKeyRequest & AddGrantTokens(const Aws::String &value)
DescribeKeyRequest & WithKeyId(const Aws::String &value)
void SetGrantTokens(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
DescribeKeyRequest & AddGrantTokens(const char *value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetKeyId(const Aws::String &value)
const Aws::String & GetKeyId() const
virtual const char * GetServiceRequestName() const override
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