AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ServerSideEncryption.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9#include <aws/macie2/model/EncryptionType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Macie2 {
21namespace Model {
22
31 public:
32 AWS_MACIE2_API ServerSideEncryption() = default;
35 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline EncryptionType GetEncryptionType() const { return m_encryptionType; }
45 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
46 inline void SetEncryptionType(EncryptionType value) {
47 m_encryptionTypeHasBeenSet = true;
48 m_encryptionType = value;
49 }
51 SetEncryptionType(value);
52 return *this;
53 }
55
57
62 inline const Aws::String& GetKmsMasterKeyId() const { return m_kmsMasterKeyId; }
63 inline bool KmsMasterKeyIdHasBeenSet() const { return m_kmsMasterKeyIdHasBeenSet; }
64 template <typename KmsMasterKeyIdT = Aws::String>
65 void SetKmsMasterKeyId(KmsMasterKeyIdT&& value) {
66 m_kmsMasterKeyIdHasBeenSet = true;
67 m_kmsMasterKeyId = std::forward<KmsMasterKeyIdT>(value);
68 }
69 template <typename KmsMasterKeyIdT = Aws::String>
70 ServerSideEncryption& WithKmsMasterKeyId(KmsMasterKeyIdT&& value) {
71 SetKmsMasterKeyId(std::forward<KmsMasterKeyIdT>(value));
72 return *this;
73 }
75 private:
77
78 Aws::String m_kmsMasterKeyId;
79 bool m_encryptionTypeHasBeenSet = false;
80 bool m_kmsMasterKeyIdHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Macie2
85} // namespace Aws
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
ServerSideEncryption & WithKmsMasterKeyId(KmsMasterKeyIdT &&value)
void SetKmsMasterKeyId(KmsMasterKeyIdT &&value)
ServerSideEncryption & WithEncryptionType(EncryptionType value)
AWS_MACIE2_API ServerSideEncryption()=default
const Aws::String & GetKmsMasterKeyId() const
AWS_MACIE2_API ServerSideEncryption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API ServerSideEncryption(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue