AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServerSideEncryption.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/EncryptionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Macie2
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_MACIE2_API ServerSideEncryption();
40 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
51 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
52 inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
53 inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
54 inline ServerSideEncryption& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
55 inline ServerSideEncryption& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
57
59
64 inline const Aws::String& GetKmsMasterKeyId() const{ return m_kmsMasterKeyId; }
65 inline bool KmsMasterKeyIdHasBeenSet() const { return m_kmsMasterKeyIdHasBeenSet; }
66 inline void SetKmsMasterKeyId(const Aws::String& value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId = value; }
67 inline void SetKmsMasterKeyId(Aws::String&& value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId = std::move(value); }
68 inline void SetKmsMasterKeyId(const char* value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId.assign(value); }
69 inline ServerSideEncryption& WithKmsMasterKeyId(const Aws::String& value) { SetKmsMasterKeyId(value); return *this;}
70 inline ServerSideEncryption& WithKmsMasterKeyId(Aws::String&& value) { SetKmsMasterKeyId(std::move(value)); return *this;}
71 inline ServerSideEncryption& WithKmsMasterKeyId(const char* value) { SetKmsMasterKeyId(value); return *this;}
73 private:
74
75 EncryptionType m_encryptionType;
76 bool m_encryptionTypeHasBeenSet = false;
77
78 Aws::String m_kmsMasterKeyId;
79 bool m_kmsMasterKeyIdHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Macie2
84} // namespace Aws
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEncryptionType(const EncryptionType &value)
ServerSideEncryption & WithKmsMasterKeyId(const char *value)
ServerSideEncryption & WithEncryptionType(EncryptionType &&value)
ServerSideEncryption & WithEncryptionType(const EncryptionType &value)
ServerSideEncryption & WithKmsMasterKeyId(Aws::String &&value)
void SetKmsMasterKeyId(const Aws::String &value)
const Aws::String & GetKmsMasterKeyId() const
AWS_MACIE2_API ServerSideEncryption & operator=(Aws::Utils::Json::JsonView jsonValue)
const EncryptionType & GetEncryptionType() const
void SetEncryptionType(EncryptionType &&value)
AWS_MACIE2_API ServerSideEncryption(Aws::Utils::Json::JsonView jsonValue)
ServerSideEncryption & WithKmsMasterKeyId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue