/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about the default server-side encryption settings for an
* S3 bucket or the encryption settings for an S3 object.See Also:
* AWS
* API Reference
The server-side encryption algorithm that's used when storing data in the * bucket or object. If default encryption settings aren't configured for the * bucket or the object isn't encrypted using server-side encryption, this value is * NONE.
*/ inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; } /** *The server-side encryption algorithm that's used when storing data in the * bucket or object. If default encryption settings aren't configured for the * bucket or the object isn't encrypted using server-side encryption, this value is * NONE.
*/ inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; } /** *The server-side encryption algorithm that's used when storing data in the * bucket or object. If default encryption settings aren't configured for the * bucket or the object isn't encrypted using server-side encryption, this value is * NONE.
*/ inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; } /** *The server-side encryption algorithm that's used when storing data in the * bucket or object. If default encryption settings aren't configured for the * bucket or the object isn't encrypted using server-side encryption, this value is * NONE.
*/ inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); } /** *The server-side encryption algorithm that's used when storing data in the * bucket or object. If default encryption settings aren't configured for the * bucket or the object isn't encrypted using server-side encryption, this value is * NONE.
*/ inline ServerSideEncryption& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;} /** *The server-side encryption algorithm that's used when storing data in the * bucket or object. If default encryption settings aren't configured for the * bucket or the object isn't encrypted using server-side encryption, this value is * NONE.
*/ inline ServerSideEncryption& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key * that's used to encrypt data in the bucket or the object. This value is null if * an KMS key isn't used to encrypt the data.
*/ inline const Aws::String& GetKmsMasterKeyId() const{ return m_kmsMasterKeyId; } /** *The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key * that's used to encrypt data in the bucket or the object. This value is null if * an KMS key isn't used to encrypt the data.
*/ inline bool KmsMasterKeyIdHasBeenSet() const { return m_kmsMasterKeyIdHasBeenSet; } /** *The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key * that's used to encrypt data in the bucket or the object. This value is null if * an KMS key isn't used to encrypt the data.
*/ inline void SetKmsMasterKeyId(const Aws::String& value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId = value; } /** *The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key * that's used to encrypt data in the bucket or the object. This value is null if * an KMS key isn't used to encrypt the data.
*/ inline void SetKmsMasterKeyId(Aws::String&& value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId = std::move(value); } /** *The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key * that's used to encrypt data in the bucket or the object. This value is null if * an KMS key isn't used to encrypt the data.
*/ inline void SetKmsMasterKeyId(const char* value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId.assign(value); } /** *The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key * that's used to encrypt data in the bucket or the object. This value is null if * an KMS key isn't used to encrypt the data.
*/ inline ServerSideEncryption& WithKmsMasterKeyId(const Aws::String& value) { SetKmsMasterKeyId(value); return *this;} /** *The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key * that's used to encrypt data in the bucket or the object. This value is null if * an KMS key isn't used to encrypt the data.
*/ inline ServerSideEncryption& WithKmsMasterKeyId(Aws::String&& value) { SetKmsMasterKeyId(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key * that's used to encrypt data in the bucket or the object. This value is null if * an KMS key isn't used to encrypt the data.
*/ inline ServerSideEncryption& WithKmsMasterKeyId(const char* value) { SetKmsMasterKeyId(value); return *this;} private: EncryptionType m_encryptionType; bool m_encryptionTypeHasBeenSet = false; Aws::String m_kmsMasterKeyId; bool m_kmsMasterKeyIdHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws