AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EncryptionOptions.h
1
6#pragma once
7#include <aws/mq/MQ_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 MQ
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_MQ_API EncryptionOptions() = default;
38
39
41
46 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
47 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
48 template<typename KmsKeyIdT = Aws::String>
49 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
50 template<typename KmsKeyIdT = Aws::String>
51 EncryptionOptions& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
53
55
59 inline bool GetUseAwsOwnedKey() const { return m_useAwsOwnedKey; }
60 inline bool UseAwsOwnedKeyHasBeenSet() const { return m_useAwsOwnedKeyHasBeenSet; }
61 inline void SetUseAwsOwnedKey(bool value) { m_useAwsOwnedKeyHasBeenSet = true; m_useAwsOwnedKey = value; }
62 inline EncryptionOptions& WithUseAwsOwnedKey(bool value) { SetUseAwsOwnedKey(value); return *this;}
64 private:
65
66 Aws::String m_kmsKeyId;
67 bool m_kmsKeyIdHasBeenSet = false;
68
69 bool m_useAwsOwnedKey{false};
70 bool m_useAwsOwnedKeyHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace MQ
75} // 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