AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
KeyListEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kms/KMS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace KMS {
20namespace Model {
21
29 public:
30 AWS_KMS_API KeyListEntry() = default;
34
36
39 inline const Aws::String& GetKeyId() const { return m_keyId; }
40 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
41 template <typename KeyIdT = Aws::String>
42 void SetKeyId(KeyIdT&& value) {
43 m_keyIdHasBeenSet = true;
44 m_keyId = std::forward<KeyIdT>(value);
45 }
46 template <typename KeyIdT = Aws::String>
47 KeyListEntry& WithKeyId(KeyIdT&& value) {
48 SetKeyId(std::forward<KeyIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetKeyArn() const { return m_keyArn; }
58 inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; }
59 template <typename KeyArnT = Aws::String>
60 void SetKeyArn(KeyArnT&& value) {
61 m_keyArnHasBeenSet = true;
62 m_keyArn = std::forward<KeyArnT>(value);
63 }
64 template <typename KeyArnT = Aws::String>
65 KeyListEntry& WithKeyArn(KeyArnT&& value) {
66 SetKeyArn(std::forward<KeyArnT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_keyId;
72
73 Aws::String m_keyArn;
74 bool m_keyIdHasBeenSet = false;
75 bool m_keyArnHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace KMS
80} // namespace Aws
void SetKeyId(KeyIdT &&value)
bool KeyArnHasBeenSet() const
const Aws::String & GetKeyId() const
const Aws::String & GetKeyArn() const
bool KeyIdHasBeenSet() const
KeyListEntry & WithKeyArn(KeyArnT &&value)
KeyListEntry & WithKeyId(KeyIdT &&value)
AWS_KMS_API KeyListEntry(Aws::Utils::Json::JsonView jsonValue)
void SetKeyArn(KeyArnT &&value)
AWS_KMS_API KeyListEntry()=default
AWS_KMS_API KeyListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue