/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

The encryption configuration for the S3 bucket.

See Also:

AWS * API Reference

*/ class AwsS3BucketServerSideEncryptionConfiguration { public: AWS_SECURITYHUB_API AwsS3BucketServerSideEncryptionConfiguration(); AWS_SECURITYHUB_API AwsS3BucketServerSideEncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsS3BucketServerSideEncryptionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The encryption rules that are applied to the S3 bucket.

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

The encryption rules that are applied to the S3 bucket.

*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *

The encryption rules that are applied to the S3 bucket.

*/ inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } /** *

The encryption rules that are applied to the S3 bucket.

*/ inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } /** *

The encryption rules that are applied to the S3 bucket.

*/ inline AwsS3BucketServerSideEncryptionConfiguration& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

The encryption rules that are applied to the S3 bucket.

*/ inline AwsS3BucketServerSideEncryptionConfiguration& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

The encryption rules that are applied to the S3 bucket.

*/ inline AwsS3BucketServerSideEncryptionConfiguration& AddRules(const AwsS3BucketServerSideEncryptionRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *

The encryption rules that are applied to the S3 bucket.

*/ inline AwsS3BucketServerSideEncryptionConfiguration& AddRules(AwsS3BucketServerSideEncryptionRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } private: Aws::Vector m_rules; bool m_rulesHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws