70 lines
2.7 KiB
C
70 lines
2.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/PartitionDateSource.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Xml
|
|||
|
|
{
|
|||
|
|
class XmlNode;
|
|||
|
|
} // namespace Xml
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace S3
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Amazon S3 keys for log objects are partitioned in the following format:</p>
|
|||
|
|
* <p>
|
|||
|
|
* <code>[DestinationPrefix][SourceAccountId]/[SourceRegion]/[SourceBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]</code>
|
|||
|
|
* </p> <p>PartitionedPrefix defaults to EventTime delivery when server access logs
|
|||
|
|
* are delivered.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PartitionedPrefix">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class PartitionedPrefix
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
AWS_S3_API PartitionedPrefix();
|
|||
|
|
AWS_S3_API PartitionedPrefix(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
AWS_S3_API PartitionedPrefix& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
|
|||
|
|
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the partition date source for the partitioned prefix.
|
|||
|
|
* <code>PartitionDateSource</code> can be <code>EventTime</code> or
|
|||
|
|
* <code>DeliveryTime</code>.</p> <p>For <code>DeliveryTime</code>, the time in the
|
|||
|
|
* log file names corresponds to the delivery time for the log files. </p> <p> For
|
|||
|
|
* <code>EventTime</code>, The logs delivered are for a specific day only. The
|
|||
|
|
* year, month, and day correspond to the day on which the event occurred, and the
|
|||
|
|
* hour, minutes and seconds are set to 00 in the key.</p>
|
|||
|
|
*/
|
|||
|
|
inline const PartitionDateSource& GetPartitionDateSource() const{ return m_partitionDateSource; }
|
|||
|
|
inline bool PartitionDateSourceHasBeenSet() const { return m_partitionDateSourceHasBeenSet; }
|
|||
|
|
inline void SetPartitionDateSource(const PartitionDateSource& value) { m_partitionDateSourceHasBeenSet = true; m_partitionDateSource = value; }
|
|||
|
|
inline void SetPartitionDateSource(PartitionDateSource&& value) { m_partitionDateSourceHasBeenSet = true; m_partitionDateSource = std::move(value); }
|
|||
|
|
inline PartitionedPrefix& WithPartitionDateSource(const PartitionDateSource& value) { SetPartitionDateSource(value); return *this;}
|
|||
|
|
inline PartitionedPrefix& WithPartitionDateSource(PartitionDateSource&& value) { SetPartitionDateSource(std::move(value)); return *this;}
|
|||
|
|
///@}
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
PartitionDateSource m_partitionDateSource;
|
|||
|
|
bool m_partitionDateSourceHasBeenSet = false;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace S3
|
|||
|
|
} // namespace Aws
|