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