AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KeySummary.h
1
6#pragma once
7#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/payment-cryptography/model/KeyState.h>
10#include <aws/payment-cryptography/model/KeyAttributes.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PaymentCryptography
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PAYMENTCRYPTOGRAPHY_API KeySummary();
38 AWS_PAYMENTCRYPTOGRAPHY_API KeySummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PAYMENTCRYPTOGRAPHY_API KeySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetKeyArn() const{ return m_keyArn; }
48 inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; }
49 inline void SetKeyArn(const Aws::String& value) { m_keyArnHasBeenSet = true; m_keyArn = value; }
50 inline void SetKeyArn(Aws::String&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::move(value); }
51 inline void SetKeyArn(const char* value) { m_keyArnHasBeenSet = true; m_keyArn.assign(value); }
52 inline KeySummary& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;}
53 inline KeySummary& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;}
54 inline KeySummary& WithKeyArn(const char* value) { SetKeyArn(value); return *this;}
56
58
62 inline const KeyState& GetKeyState() const{ return m_keyState; }
63 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
64 inline void SetKeyState(const KeyState& value) { m_keyStateHasBeenSet = true; m_keyState = value; }
65 inline void SetKeyState(KeyState&& value) { m_keyStateHasBeenSet = true; m_keyState = std::move(value); }
66 inline KeySummary& WithKeyState(const KeyState& value) { SetKeyState(value); return *this;}
67 inline KeySummary& WithKeyState(KeyState&& value) { SetKeyState(std::move(value)); return *this;}
69
71
76 inline const KeyAttributes& GetKeyAttributes() const{ return m_keyAttributes; }
77 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
78 inline void SetKeyAttributes(const KeyAttributes& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; }
79 inline void SetKeyAttributes(KeyAttributes&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); }
80 inline KeySummary& WithKeyAttributes(const KeyAttributes& value) { SetKeyAttributes(value); return *this;}
81 inline KeySummary& WithKeyAttributes(KeyAttributes&& value) { SetKeyAttributes(std::move(value)); return *this;}
83
85
89 inline const Aws::String& GetKeyCheckValue() const{ return m_keyCheckValue; }
90 inline bool KeyCheckValueHasBeenSet() const { return m_keyCheckValueHasBeenSet; }
91 inline void SetKeyCheckValue(const Aws::String& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = value; }
92 inline void SetKeyCheckValue(Aws::String&& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = std::move(value); }
93 inline void SetKeyCheckValue(const char* value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue.assign(value); }
94 inline KeySummary& WithKeyCheckValue(const Aws::String& value) { SetKeyCheckValue(value); return *this;}
95 inline KeySummary& WithKeyCheckValue(Aws::String&& value) { SetKeyCheckValue(std::move(value)); return *this;}
96 inline KeySummary& WithKeyCheckValue(const char* value) { SetKeyCheckValue(value); return *this;}
98
100
104 inline bool GetExportable() const{ return m_exportable; }
105 inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; }
106 inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; }
107 inline KeySummary& WithExportable(bool value) { SetExportable(value); return *this;}
109
111
114 inline bool GetEnabled() const{ return m_enabled; }
115 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
116 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
117 inline KeySummary& WithEnabled(bool value) { SetEnabled(value); return *this;}
119 private:
120
121 Aws::String m_keyArn;
122 bool m_keyArnHasBeenSet = false;
123
124 KeyState m_keyState;
125 bool m_keyStateHasBeenSet = false;
126
127 KeyAttributes m_keyAttributes;
128 bool m_keyAttributesHasBeenSet = false;
129
130 Aws::String m_keyCheckValue;
131 bool m_keyCheckValueHasBeenSet = false;
132
133 bool m_exportable;
134 bool m_exportableHasBeenSet = false;
135
136 bool m_enabled;
137 bool m_enabledHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace PaymentCryptography
142} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary()
KeySummary & WithKeyAttributes(KeyAttributes &&value)
Definition KeySummary.h:81
void SetKeyArn(const Aws::String &value)
Definition KeySummary.h:49
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyArn(Aws::String &&value)
Definition KeySummary.h:50
const Aws::String & GetKeyCheckValue() const
Definition KeySummary.h:89
KeySummary & WithKeyArn(const char *value)
Definition KeySummary.h:54
KeySummary & WithKeyState(KeyState &&value)
Definition KeySummary.h:67
void SetKeyCheckValue(const Aws::String &value)
Definition KeySummary.h:91
KeySummary & WithKeyCheckValue(const char *value)
Definition KeySummary.h:96
void SetKeyCheckValue(Aws::String &&value)
Definition KeySummary.h:92
KeySummary & WithKeyArn(const Aws::String &value)
Definition KeySummary.h:52
KeySummary & WithKeyAttributes(const KeyAttributes &value)
Definition KeySummary.h:80
const KeyAttributes & GetKeyAttributes() const
Definition KeySummary.h:76
void SetKeyAttributes(KeyAttributes &&value)
Definition KeySummary.h:79
void SetKeyState(const KeyState &value)
Definition KeySummary.h:64
KeySummary & WithExportable(bool value)
Definition KeySummary.h:107
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
KeySummary & WithKeyCheckValue(Aws::String &&value)
Definition KeySummary.h:95
KeySummary & WithKeyCheckValue(const Aws::String &value)
Definition KeySummary.h:94
void SetKeyCheckValue(const char *value)
Definition KeySummary.h:93
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKeyArn() const
Definition KeySummary.h:47
KeySummary & WithKeyArn(Aws::String &&value)
Definition KeySummary.h:53
KeySummary & WithKeyState(const KeyState &value)
Definition KeySummary.h:66
void SetKeyAttributes(const KeyAttributes &value)
Definition KeySummary.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue