/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace EC2
{
namespace Model
{
/**
* Describes the destination options for a flow log.
See Also:
* AWS
* API Reference
*/
class DestinationOptionsRequest
{
public:
AWS_EC2_API DestinationOptionsRequest();
AWS_EC2_API DestinationOptionsRequest(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_EC2_API DestinationOptionsRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* The format for the flow log. The default is plain-text
.
*/
inline const DestinationFileFormat& GetFileFormat() const{ return m_fileFormat; }
/**
* The format for the flow log. The default is plain-text
.
*/
inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
/**
* The format for the flow log. The default is plain-text
.
*/
inline void SetFileFormat(const DestinationFileFormat& value) { m_fileFormatHasBeenSet = true; m_fileFormat = value; }
/**
* The format for the flow log. The default is plain-text
.
*/
inline void SetFileFormat(DestinationFileFormat&& value) { m_fileFormatHasBeenSet = true; m_fileFormat = std::move(value); }
/**
* The format for the flow log. The default is plain-text
.
*/
inline DestinationOptionsRequest& WithFileFormat(const DestinationFileFormat& value) { SetFileFormat(value); return *this;}
/**
* The format for the flow log. The default is plain-text
.
*/
inline DestinationOptionsRequest& WithFileFormat(DestinationFileFormat&& value) { SetFileFormat(std::move(value)); return *this;}
/**
* Indicates whether to use Hive-compatible prefixes for flow logs stored in
* Amazon S3. The default is false
.
*/
inline bool GetHiveCompatiblePartitions() const{ return m_hiveCompatiblePartitions; }
/**
* Indicates whether to use Hive-compatible prefixes for flow logs stored in
* Amazon S3. The default is false
.
*/
inline bool HiveCompatiblePartitionsHasBeenSet() const { return m_hiveCompatiblePartitionsHasBeenSet; }
/**
* Indicates whether to use Hive-compatible prefixes for flow logs stored in
* Amazon S3. The default is false
.
*/
inline void SetHiveCompatiblePartitions(bool value) { m_hiveCompatiblePartitionsHasBeenSet = true; m_hiveCompatiblePartitions = value; }
/**
* Indicates whether to use Hive-compatible prefixes for flow logs stored in
* Amazon S3. The default is false
.
*/
inline DestinationOptionsRequest& WithHiveCompatiblePartitions(bool value) { SetHiveCompatiblePartitions(value); return *this;}
/**
* Indicates whether to partition the flow log per hour. This reduces the cost
* and response time for queries. The default is false
.
*/
inline bool GetPerHourPartition() const{ return m_perHourPartition; }
/**
* Indicates whether to partition the flow log per hour. This reduces the cost
* and response time for queries. The default is false
.
*/
inline bool PerHourPartitionHasBeenSet() const { return m_perHourPartitionHasBeenSet; }
/**
* Indicates whether to partition the flow log per hour. This reduces the cost
* and response time for queries. The default is false
.
*/
inline void SetPerHourPartition(bool value) { m_perHourPartitionHasBeenSet = true; m_perHourPartition = value; }
/**
* Indicates whether to partition the flow log per hour. This reduces the cost
* and response time for queries. The default is false
.
*/
inline DestinationOptionsRequest& WithPerHourPartition(bool value) { SetPerHourPartition(value); return *this;}
private:
DestinationFileFormat m_fileFormat;
bool m_fileFormatHasBeenSet = false;
bool m_hiveCompatiblePartitions;
bool m_hiveCompatiblePartitionsHasBeenSet = false;
bool m_perHourPartition;
bool m_perHourPartitionHasBeenSet = false;
};
} // namespace Model
} // namespace EC2
} // namespace Aws