AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
EncryptionConfigurationDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
9#include <aws/sso-admin/model/KmsKeyStatus.h>
10#include <aws/sso-admin/model/KmsKeyType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSOAdmin {
22namespace Model {
23
32 public:
33 AWS_SSOADMIN_API EncryptionConfigurationDetails() = default;
36 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline KmsKeyType GetKeyType() const { return m_keyType; }
43 inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
44 inline void SetKeyType(KmsKeyType value) {
45 m_keyTypeHasBeenSet = true;
46 m_keyType = value;
47 }
49 SetKeyType(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
60 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
61 template <typename KmsKeyArnT = Aws::String>
62 void SetKmsKeyArn(KmsKeyArnT&& value) {
63 m_kmsKeyArnHasBeenSet = true;
64 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
65 }
66 template <typename KmsKeyArnT = Aws::String>
68 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
69 return *this;
70 }
72
74
77 inline KmsKeyStatus GetEncryptionStatus() const { return m_encryptionStatus; }
78 inline bool EncryptionStatusHasBeenSet() const { return m_encryptionStatusHasBeenSet; }
79 inline void SetEncryptionStatus(KmsKeyStatus value) {
80 m_encryptionStatusHasBeenSet = true;
81 m_encryptionStatus = value;
82 }
88
90
97 inline const Aws::String& GetEncryptionStatusReason() const { return m_encryptionStatusReason; }
98 inline bool EncryptionStatusReasonHasBeenSet() const { return m_encryptionStatusReasonHasBeenSet; }
99 template <typename EncryptionStatusReasonT = Aws::String>
100 void SetEncryptionStatusReason(EncryptionStatusReasonT&& value) {
101 m_encryptionStatusReasonHasBeenSet = true;
102 m_encryptionStatusReason = std::forward<EncryptionStatusReasonT>(value);
103 }
104 template <typename EncryptionStatusReasonT = Aws::String>
106 SetEncryptionStatusReason(std::forward<EncryptionStatusReasonT>(value));
107 return *this;
108 }
110 private:
112
113 Aws::String m_kmsKeyArn;
114
115 KmsKeyStatus m_encryptionStatus{KmsKeyStatus::NOT_SET};
116
117 Aws::String m_encryptionStatusReason;
118 bool m_keyTypeHasBeenSet = false;
119 bool m_kmsKeyArnHasBeenSet = false;
120 bool m_encryptionStatusHasBeenSet = false;
121 bool m_encryptionStatusReasonHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace SSOAdmin
126} // namespace Aws
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSOADMIN_API EncryptionConfigurationDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSOADMIN_API EncryptionConfigurationDetails()=default
AWS_SSOADMIN_API EncryptionConfigurationDetails(Aws::Utils::Json::JsonView jsonValue)
EncryptionConfigurationDetails & WithKmsKeyArn(KmsKeyArnT &&value)
EncryptionConfigurationDetails & WithEncryptionStatus(KmsKeyStatus value)
EncryptionConfigurationDetails & WithEncryptionStatusReason(EncryptionStatusReasonT &&value)
EncryptionConfigurationDetails & WithKeyType(KmsKeyType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue