AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsS3BucketObjectLockConfiguration.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/AwsS3BucketObjectLockConfigurationRuleDetails.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 SecurityHub
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_SECURITYHUB_API AwsS3BucketObjectLockConfiguration() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetObjectLockEnabled() const { return m_objectLockEnabled; }
48 inline bool ObjectLockEnabledHasBeenSet() const { return m_objectLockEnabledHasBeenSet; }
49 template<typename ObjectLockEnabledT = Aws::String>
50 void SetObjectLockEnabled(ObjectLockEnabledT&& value) { m_objectLockEnabledHasBeenSet = true; m_objectLockEnabled = std::forward<ObjectLockEnabledT>(value); }
51 template<typename ObjectLockEnabledT = Aws::String>
52 AwsS3BucketObjectLockConfiguration& WithObjectLockEnabled(ObjectLockEnabledT&& value) { SetObjectLockEnabled(std::forward<ObjectLockEnabledT>(value)); return *this;}
54
56
59 inline const AwsS3BucketObjectLockConfigurationRuleDetails& GetRule() const { return m_rule; }
60 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
61 template<typename RuleT = AwsS3BucketObjectLockConfigurationRuleDetails>
62 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
63 template<typename RuleT = AwsS3BucketObjectLockConfigurationRuleDetails>
64 AwsS3BucketObjectLockConfiguration& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
66 private:
67
68 Aws::String m_objectLockEnabled;
69 bool m_objectLockEnabledHasBeenSet = false;
70
72 bool m_ruleHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace SecurityHub
77} // namespace Aws
AWS_SECURITYHUB_API AwsS3BucketObjectLockConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsS3BucketObjectLockConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsS3BucketObjectLockConfiguration & WithObjectLockEnabled(ObjectLockEnabledT &&value)
const AwsS3BucketObjectLockConfigurationRuleDetails & GetRule() const
AWS_SECURITYHUB_API AwsS3BucketObjectLockConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue