This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-guardduty/include/aws/guardduty/model/DefaultServerSideEncryption.h

144 lines
5.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/guardduty/GuardDuty_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace GuardDuty
{
namespace Model
{
/**
* <p>Contains information on the server side encryption method used in the S3
* bucket. See <a
* href="https://docs.aws.amazon.com/AmazonS3/atest/dev/serv-side-encryption.html">S3
* Server-Side Encryption</a> for more information.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DefaultServerSideEncryption">AWS
* API Reference</a></p>
*/
class AWS_GUARDDUTY_API DefaultServerSideEncryption
{
public:
DefaultServerSideEncryption();
DefaultServerSideEncryption(Aws::Utils::Json::JsonView jsonValue);
DefaultServerSideEncryption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of encryption used for objects within the S3 bucket.</p>
*/
inline const Aws::String& GetEncryptionType() const{ return m_encryptionType; }
/**
* <p>The type of encryption used for objects within the S3 bucket.</p>
*/
inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
/**
* <p>The type of encryption used for objects within the S3 bucket.</p>
*/
inline void SetEncryptionType(const Aws::String& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
/**
* <p>The type of encryption used for objects within the S3 bucket.</p>
*/
inline void SetEncryptionType(Aws::String&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
/**
* <p>The type of encryption used for objects within the S3 bucket.</p>
*/
inline void SetEncryptionType(const char* value) { m_encryptionTypeHasBeenSet = true; m_encryptionType.assign(value); }
/**
* <p>The type of encryption used for objects within the S3 bucket.</p>
*/
inline DefaultServerSideEncryption& WithEncryptionType(const Aws::String& value) { SetEncryptionType(value); return *this;}
/**
* <p>The type of encryption used for objects within the S3 bucket.</p>
*/
inline DefaultServerSideEncryption& WithEncryptionType(Aws::String&& value) { SetEncryptionType(std::move(value)); return *this;}
/**
* <p>The type of encryption used for objects within the S3 bucket.</p>
*/
inline DefaultServerSideEncryption& WithEncryptionType(const char* value) { SetEncryptionType(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the KMS encryption key. Only available if
* the bucket <code>EncryptionType</code> is <code>aws:kms</code>.</p>
*/
inline const Aws::String& GetKmsMasterKeyArn() const{ return m_kmsMasterKeyArn; }
/**
* <p>The Amazon Resource Name (ARN) of the KMS encryption key. Only available if
* the bucket <code>EncryptionType</code> is <code>aws:kms</code>.</p>
*/
inline bool KmsMasterKeyArnHasBeenSet() const { return m_kmsMasterKeyArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the KMS encryption key. Only available if
* the bucket <code>EncryptionType</code> is <code>aws:kms</code>.</p>
*/
inline void SetKmsMasterKeyArn(const Aws::String& value) { m_kmsMasterKeyArnHasBeenSet = true; m_kmsMasterKeyArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the KMS encryption key. Only available if
* the bucket <code>EncryptionType</code> is <code>aws:kms</code>.</p>
*/
inline void SetKmsMasterKeyArn(Aws::String&& value) { m_kmsMasterKeyArnHasBeenSet = true; m_kmsMasterKeyArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the KMS encryption key. Only available if
* the bucket <code>EncryptionType</code> is <code>aws:kms</code>.</p>
*/
inline void SetKmsMasterKeyArn(const char* value) { m_kmsMasterKeyArnHasBeenSet = true; m_kmsMasterKeyArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the KMS encryption key. Only available if
* the bucket <code>EncryptionType</code> is <code>aws:kms</code>.</p>
*/
inline DefaultServerSideEncryption& WithKmsMasterKeyArn(const Aws::String& value) { SetKmsMasterKeyArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the KMS encryption key. Only available if
* the bucket <code>EncryptionType</code> is <code>aws:kms</code>.</p>
*/
inline DefaultServerSideEncryption& WithKmsMasterKeyArn(Aws::String&& value) { SetKmsMasterKeyArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the KMS encryption key. Only available if
* the bucket <code>EncryptionType</code> is <code>aws:kms</code>.</p>
*/
inline DefaultServerSideEncryption& WithKmsMasterKeyArn(const char* value) { SetKmsMasterKeyArn(value); return *this;}
private:
Aws::String m_encryptionType;
bool m_encryptionTypeHasBeenSet;
Aws::String m_kmsMasterKeyArn;
bool m_kmsMasterKeyArnHasBeenSet;
};
} // namespace Model
} // namespace GuardDuty
} // namespace Aws