7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/AwsS3BucketObjectLockConfigurationRuleDetails.h>
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>
61 template<
typename RuleT = AwsS3BucketObjectLockConfigurationRuleDetails>
62 void SetRule(RuleT&& value) { m_ruleHasBeenSet =
true; m_rule = std::forward<RuleT>(value); }
63 template<
typename RuleT = AwsS3BucketObjectLockConfigurationRuleDetails>
69 bool m_objectLockEnabledHasBeenSet =
false;
72 bool m_ruleHasBeenSet =
false;
AwsS3BucketObjectLockConfiguration & WithRule(RuleT &&value)
AWS_SECURITYHUB_API AwsS3BucketObjectLockConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
bool RuleHasBeenSet() const
AWS_SECURITYHUB_API AwsS3BucketObjectLockConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsS3BucketObjectLockConfiguration & WithObjectLockEnabled(ObjectLockEnabledT &&value)
const AwsS3BucketObjectLockConfigurationRuleDetails & GetRule() const
void SetObjectLockEnabled(ObjectLockEnabledT &&value)
void SetRule(RuleT &&value)
const Aws::String & GetObjectLockEnabled() const
bool ObjectLockEnabledHasBeenSet() const
AWS_SECURITYHUB_API AwsS3BucketObjectLockConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue