AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const Aws::String& GetKeyId() const{ return m_keyId; }
46 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
47 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
48 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
49 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
50 inline KeyListEntry& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
51 inline KeyListEntry& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
52 inline KeyListEntry& WithKeyId(const char* value) { SetKeyId(value); return *this;}
54
56
59 inline const Aws::String& GetKeyArn() const{ return m_keyArn; }
60 inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; }
61 inline void SetKeyArn(const Aws::String& value) { m_keyArnHasBeenSet = true; m_keyArn = value; }
62 inline void SetKeyArn(Aws::String&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::move(value); }
63 inline void SetKeyArn(const char* value) { m_keyArnHasBeenSet = true; m_keyArn.assign(value); }
64 inline KeyListEntry& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;}
65 inline KeyListEntry& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;}
66 inline KeyListEntry& WithKeyArn(const char* value) { SetKeyArn(value); return *this;}
68 private:
69
70 Aws::String m_keyId;
71 bool m_keyIdHasBeenSet = false;
72
73 Aws::String m_keyArn;
74 bool m_keyArnHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace KMS
79} // namespace Aws
AWS_KMS_API KeyListEntry()
void SetKeyId(const char *value)
KeyListEntry & WithKeyId(Aws::String &&value)
bool KeyArnHasBeenSet() const
KeyListEntry & WithKeyId(const Aws::String &value)
const Aws::String & GetKeyId() const
const Aws::String & GetKeyArn() const
bool KeyIdHasBeenSet() const
void SetKeyId(const Aws::String &value)
void SetKeyArn(const char *value)
AWS_KMS_API KeyListEntry(Aws::Utils::Json::JsonView jsonValue)
KeyListEntry & WithKeyArn(const char *value)
AWS_KMS_API KeyListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeyArn(Aws::String &&value)
KeyListEntry & WithKeyId(const char *value)
KeyListEntry & WithKeyArn(Aws::String &&value)
void SetKeyArn(const Aws::String &value)
void SetKeyId(Aws::String &&value)
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
KeyListEntry & WithKeyArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue