AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EncryptionOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mq/MQ_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MQ {
20namespace Model {
21
28 public:
29 AWS_MQ_API EncryptionOptions() = default;
33
35
40 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
41 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
42 template <typename KmsKeyIdT = Aws::String>
43 void SetKmsKeyId(KmsKeyIdT&& value) {
44 m_kmsKeyIdHasBeenSet = true;
45 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
46 }
47 template <typename KmsKeyIdT = Aws::String>
48 EncryptionOptions& WithKmsKeyId(KmsKeyIdT&& value) {
49 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
50 return *this;
51 }
53
55
59 inline bool GetUseAwsOwnedKey() const { return m_useAwsOwnedKey; }
60 inline bool UseAwsOwnedKeyHasBeenSet() const { return m_useAwsOwnedKeyHasBeenSet; }
61 inline void SetUseAwsOwnedKey(bool value) {
62 m_useAwsOwnedKeyHasBeenSet = true;
63 m_useAwsOwnedKey = value;
64 }
66 SetUseAwsOwnedKey(value);
67 return *this;
68 }
70 private:
71 Aws::String m_kmsKeyId;
72
73 bool m_useAwsOwnedKey{false};
74 bool m_kmsKeyIdHasBeenSet = false;
75 bool m_useAwsOwnedKeyHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace MQ
80} // namespace Aws
EncryptionOptions & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetKmsKeyId() const
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MQ_API EncryptionOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_MQ_API EncryptionOptions()=default
EncryptionOptions & WithUseAwsOwnedKey(bool value)
void SetKmsKeyId(KmsKeyIdT &&value)
AWS_MQ_API EncryptionOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue