/** * 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 GuardDuty { namespace Model { /** *

Contains information on the server side encryption method used in the S3 * bucket. See S3 * Server-Side Encryption for more information.

See Also:

AWS * API Reference

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

The type of encryption used for objects within the S3 bucket.

*/ inline const Aws::String& GetEncryptionType() const{ return m_encryptionType; } /** *

The type of encryption used for objects within the S3 bucket.

*/ inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; } /** *

The type of encryption used for objects within the S3 bucket.

*/ inline void SetEncryptionType(const Aws::String& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; } /** *

The type of encryption used for objects within the S3 bucket.

*/ inline void SetEncryptionType(Aws::String&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); } /** *

The type of encryption used for objects within the S3 bucket.

*/ inline void SetEncryptionType(const char* value) { m_encryptionTypeHasBeenSet = true; m_encryptionType.assign(value); } /** *

The type of encryption used for objects within the S3 bucket.

*/ inline DefaultServerSideEncryption& WithEncryptionType(const Aws::String& value) { SetEncryptionType(value); return *this;} /** *

The type of encryption used for objects within the S3 bucket.

*/ inline DefaultServerSideEncryption& WithEncryptionType(Aws::String&& value) { SetEncryptionType(std::move(value)); return *this;} /** *

The type of encryption used for objects within the S3 bucket.

*/ inline DefaultServerSideEncryption& WithEncryptionType(const char* value) { SetEncryptionType(value); return *this;} /** *

The Amazon Resource Name (ARN) of the KMS encryption key. Only available if * the bucket EncryptionType is aws:kms.

*/ inline const Aws::String& GetKmsMasterKeyArn() const{ return m_kmsMasterKeyArn; } /** *

The Amazon Resource Name (ARN) of the KMS encryption key. Only available if * the bucket EncryptionType is aws:kms.

*/ inline bool KmsMasterKeyArnHasBeenSet() const { return m_kmsMasterKeyArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the KMS encryption key. Only available if * the bucket EncryptionType is aws:kms.

*/ inline void SetKmsMasterKeyArn(const Aws::String& value) { m_kmsMasterKeyArnHasBeenSet = true; m_kmsMasterKeyArn = value; } /** *

The Amazon Resource Name (ARN) of the KMS encryption key. Only available if * the bucket EncryptionType is aws:kms.

*/ inline void SetKmsMasterKeyArn(Aws::String&& value) { m_kmsMasterKeyArnHasBeenSet = true; m_kmsMasterKeyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the KMS encryption key. Only available if * the bucket EncryptionType is aws:kms.

*/ inline void SetKmsMasterKeyArn(const char* value) { m_kmsMasterKeyArnHasBeenSet = true; m_kmsMasterKeyArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the KMS encryption key. Only available if * the bucket EncryptionType is aws:kms.

*/ inline DefaultServerSideEncryption& WithKmsMasterKeyArn(const Aws::String& value) { SetKmsMasterKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the KMS encryption key. Only available if * the bucket EncryptionType is aws:kms.

*/ inline DefaultServerSideEncryption& WithKmsMasterKeyArn(Aws::String&& value) { SetKmsMasterKeyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the KMS encryption key. Only available if * the bucket EncryptionType is aws:kms.

*/ inline DefaultServerSideEncryption& WithKmsMasterKeyArn(const char* value) { SetKmsMasterKeyArn(value); return *this;} private: Aws::String m_encryptionType; bool m_encryptionTypeHasBeenSet = false; Aws::String m_kmsMasterKeyArn; bool m_kmsMasterKeyArnHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws