AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38
39
41
46 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
47 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
48 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
49 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
50 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
51 inline EncryptionOptions& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
52 inline EncryptionOptions& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
53 inline EncryptionOptions& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
55
57
61 inline bool GetUseAwsOwnedKey() const{ return m_useAwsOwnedKey; }
62 inline bool UseAwsOwnedKeyHasBeenSet() const { return m_useAwsOwnedKeyHasBeenSet; }
63 inline void SetUseAwsOwnedKey(bool value) { m_useAwsOwnedKeyHasBeenSet = true; m_useAwsOwnedKey = value; }
64 inline EncryptionOptions& WithUseAwsOwnedKey(bool value) { SetUseAwsOwnedKey(value); return *this;}
66 private:
67
68 Aws::String m_kmsKeyId;
69 bool m_kmsKeyIdHasBeenSet = false;
70
71 bool m_useAwsOwnedKey;
72 bool m_useAwsOwnedKeyHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace MQ
77} // namespace Aws
void SetKmsKeyId(const Aws::String &value)
const Aws::String & GetKmsKeyId() const
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MQ_API EncryptionOptions(Aws::Utils::Json::JsonView jsonValue)
EncryptionOptions & WithUseAwsOwnedKey(bool value)
AWS_MQ_API EncryptionOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKmsKeyId(const char *value)
EncryptionOptions & WithKmsKeyId(const char *value)
void SetKmsKeyId(Aws::String &&value)
EncryptionOptions & WithKmsKeyId(const Aws::String &value)
EncryptionOptions & WithKmsKeyId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue