AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServerSideEncryptionRule.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/ServerSideEncryptionByDefault.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Crt
21{
22namespace Model
23{
24
41 {
42 public:
43 AWS_S3CRT_API ServerSideEncryptionRule();
46
47 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
48
49
51
56 inline const ServerSideEncryptionByDefault& GetApplyServerSideEncryptionByDefault() const{ return m_applyServerSideEncryptionByDefault; }
57 inline bool ApplyServerSideEncryptionByDefaultHasBeenSet() const { return m_applyServerSideEncryptionByDefaultHasBeenSet; }
58 inline void SetApplyServerSideEncryptionByDefault(const ServerSideEncryptionByDefault& value) { m_applyServerSideEncryptionByDefaultHasBeenSet = true; m_applyServerSideEncryptionByDefault = value; }
59 inline void SetApplyServerSideEncryptionByDefault(ServerSideEncryptionByDefault&& value) { m_applyServerSideEncryptionByDefaultHasBeenSet = true; m_applyServerSideEncryptionByDefault = std::move(value); }
63
65
89 inline bool GetBucketKeyEnabled() const{ return m_bucketKeyEnabled; }
90 inline bool BucketKeyEnabledHasBeenSet() const { return m_bucketKeyEnabledHasBeenSet; }
91 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; }
92 inline ServerSideEncryptionRule& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
94 private:
95
96 ServerSideEncryptionByDefault m_applyServerSideEncryptionByDefault;
97 bool m_applyServerSideEncryptionByDefaultHasBeenSet = false;
98
99 bool m_bucketKeyEnabled;
100 bool m_bucketKeyEnabledHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace S3Crt
105} // namespace Aws
ServerSideEncryptionRule & WithApplyServerSideEncryptionByDefault(ServerSideEncryptionByDefault &&value)
AWS_S3CRT_API ServerSideEncryptionRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const ServerSideEncryptionByDefault & GetApplyServerSideEncryptionByDefault() const
void SetApplyServerSideEncryptionByDefault(ServerSideEncryptionByDefault &&value)
ServerSideEncryptionRule & WithBucketKeyEnabled(bool value)
AWS_S3CRT_API ServerSideEncryptionRule(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerSideEncryptionRule & WithApplyServerSideEncryptionByDefault(const ServerSideEncryptionByDefault &value)
void SetApplyServerSideEncryptionByDefault(const ServerSideEncryptionByDefault &value)