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-s3/include/aws/s3/model/SourceSelectionCriteria.h

96 lines
3.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/s3/S3_EXPORTS.h>
#include <aws/s3/model/SseKmsEncryptedObjects.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace S3
{
namespace Model
{
/**
* <p>A container that describes additional filters for identifying the source
* objects that you want to replicate. You can choose to enable or disable the
* replication of these objects. Currently, Amazon S3 supports only the filter that
* you can specify for objects created with server-side encryption using a customer
* master key (CMK) stored in AWS Key Management Service (SSE-KMS).</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/SourceSelectionCriteria">AWS
* API Reference</a></p>
*/
class AWS_S3_API SourceSelectionCriteria
{
public:
SourceSelectionCriteria();
SourceSelectionCriteria(const Aws::Utils::Xml::XmlNode& xmlNode);
SourceSelectionCriteria& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with AWS KMS. If you include <code>SourceSelectionCriteria</code> in
* the replication configuration, this element is required. </p>
*/
inline const SseKmsEncryptedObjects& GetSseKmsEncryptedObjects() const{ return m_sseKmsEncryptedObjects; }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with AWS KMS. If you include <code>SourceSelectionCriteria</code> in
* the replication configuration, this element is required. </p>
*/
inline bool SseKmsEncryptedObjectsHasBeenSet() const { return m_sseKmsEncryptedObjectsHasBeenSet; }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with AWS KMS. If you include <code>SourceSelectionCriteria</code> in
* the replication configuration, this element is required. </p>
*/
inline void SetSseKmsEncryptedObjects(const SseKmsEncryptedObjects& value) { m_sseKmsEncryptedObjectsHasBeenSet = true; m_sseKmsEncryptedObjects = value; }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with AWS KMS. If you include <code>SourceSelectionCriteria</code> in
* the replication configuration, this element is required. </p>
*/
inline void SetSseKmsEncryptedObjects(SseKmsEncryptedObjects&& value) { m_sseKmsEncryptedObjectsHasBeenSet = true; m_sseKmsEncryptedObjects = std::move(value); }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with AWS KMS. If you include <code>SourceSelectionCriteria</code> in
* the replication configuration, this element is required. </p>
*/
inline SourceSelectionCriteria& WithSseKmsEncryptedObjects(const SseKmsEncryptedObjects& value) { SetSseKmsEncryptedObjects(value); return *this;}
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with AWS KMS. If you include <code>SourceSelectionCriteria</code> in
* the replication configuration, this element is required. </p>
*/
inline SourceSelectionCriteria& WithSseKmsEncryptedObjects(SseKmsEncryptedObjects&& value) { SetSseKmsEncryptedObjects(std::move(value)); return *this;}
private:
SseKmsEncryptedObjects m_sseKmsEncryptedObjects;
bool m_sseKmsEncryptedObjectsHasBeenSet;
};
} // namespace Model
} // namespace S3
} // namespace Aws