AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetObjectLockEnabled(const Aws::String& value) { m_objectLockEnabledHasBeenSet = true; m_objectLockEnabled = value; }
50 inline void SetObjectLockEnabled(Aws::String&& value) { m_objectLockEnabledHasBeenSet = true; m_objectLockEnabled = std::move(value); }
51 inline void SetObjectLockEnabled(const char* value) { m_objectLockEnabledHasBeenSet = true; m_objectLockEnabled.assign(value); }
54 inline AwsS3BucketObjectLockConfiguration& WithObjectLockEnabled(const char* value) { SetObjectLockEnabled(value); return *this;}
56
58
61 inline const AwsS3BucketObjectLockConfigurationRuleDetails& GetRule() const{ return m_rule; }
62 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
63 inline void SetRule(const AwsS3BucketObjectLockConfigurationRuleDetails& value) { m_ruleHasBeenSet = true; m_rule = value; }
64 inline void SetRule(AwsS3BucketObjectLockConfigurationRuleDetails&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
68 private:
69
70 Aws::String m_objectLockEnabled;
71 bool m_objectLockEnabledHasBeenSet = false;
72
74 bool m_ruleHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace SecurityHub
79} // namespace Aws
AwsS3BucketObjectLockConfiguration & WithObjectLockEnabled(Aws::String &&value)
AwsS3BucketObjectLockConfiguration & WithObjectLockEnabled(const char *value)
AWS_SECURITYHUB_API AwsS3BucketObjectLockConfiguration(Aws::Utils::Json::JsonView jsonValue)
AwsS3BucketObjectLockConfiguration & WithRule(const AwsS3BucketObjectLockConfigurationRuleDetails &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsS3BucketObjectLockConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsS3BucketObjectLockConfiguration & WithRule(AwsS3BucketObjectLockConfigurationRuleDetails &&value)
const AwsS3BucketObjectLockConfigurationRuleDetails & GetRule() const
AwsS3BucketObjectLockConfiguration & WithObjectLockEnabled(const Aws::String &value)
void SetRule(const AwsS3BucketObjectLockConfigurationRuleDetails &value)
void SetRule(AwsS3BucketObjectLockConfigurationRuleDetails &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue