AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
KeyListEntry.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace KMS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_KMS_API KeyListEntry() = default;
39
40
42
45 inline const Aws::String& GetKeyId() const { return m_keyId; }
46 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
47 template<typename KeyIdT = Aws::String>
48 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
49 template<typename KeyIdT = Aws::String>
50 KeyListEntry& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
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) { m_keyArnHasBeenSet = true; m_keyArn = std::forward<KeyArnT>(value); }
61 template<typename KeyArnT = Aws::String>
62 KeyListEntry& WithKeyArn(KeyArnT&& value) { SetKeyArn(std::forward<KeyArnT>(value)); return *this;}
64 private:
65
66 Aws::String m_keyId;
67 bool m_keyIdHasBeenSet = false;
68
69 Aws::String m_keyArn;
70 bool m_keyArnHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace KMS
75} // 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