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

An encryption rule to apply to the S3 bucket.

See Also:

AWS * API Reference

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

Specifies the default server-side encryption to apply to new objects in the * bucket. If a PUT object request doesn't specify any server-side * encryption, this default encryption is applied.

*/ inline const AwsS3BucketServerSideEncryptionByDefault& GetApplyServerSideEncryptionByDefault() const{ return m_applyServerSideEncryptionByDefault; } /** *

Specifies the default server-side encryption to apply to new objects in the * bucket. If a PUT object request doesn't specify any server-side * encryption, this default encryption is applied.

*/ inline bool ApplyServerSideEncryptionByDefaultHasBeenSet() const { return m_applyServerSideEncryptionByDefaultHasBeenSet; } /** *

Specifies the default server-side encryption to apply to new objects in the * bucket. If a PUT object request doesn't specify any server-side * encryption, this default encryption is applied.

*/ inline void SetApplyServerSideEncryptionByDefault(const AwsS3BucketServerSideEncryptionByDefault& value) { m_applyServerSideEncryptionByDefaultHasBeenSet = true; m_applyServerSideEncryptionByDefault = value; } /** *

Specifies the default server-side encryption to apply to new objects in the * bucket. If a PUT object request doesn't specify any server-side * encryption, this default encryption is applied.

*/ inline void SetApplyServerSideEncryptionByDefault(AwsS3BucketServerSideEncryptionByDefault&& value) { m_applyServerSideEncryptionByDefaultHasBeenSet = true; m_applyServerSideEncryptionByDefault = std::move(value); } /** *

Specifies the default server-side encryption to apply to new objects in the * bucket. If a PUT object request doesn't specify any server-side * encryption, this default encryption is applied.

*/ inline AwsS3BucketServerSideEncryptionRule& WithApplyServerSideEncryptionByDefault(const AwsS3BucketServerSideEncryptionByDefault& value) { SetApplyServerSideEncryptionByDefault(value); return *this;} /** *

Specifies the default server-side encryption to apply to new objects in the * bucket. If a PUT object request doesn't specify any server-side * encryption, this default encryption is applied.

*/ inline AwsS3BucketServerSideEncryptionRule& WithApplyServerSideEncryptionByDefault(AwsS3BucketServerSideEncryptionByDefault&& value) { SetApplyServerSideEncryptionByDefault(std::move(value)); return *this;} private: AwsS3BucketServerSideEncryptionByDefault m_applyServerSideEncryptionByDefault; bool m_applyServerSideEncryptionByDefaultHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws