/** * 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 DestinationOptionsResponse { public: AWS_EC2_API DestinationOptionsResponse(); AWS_EC2_API DestinationOptionsResponse(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API DestinationOptionsResponse& 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.

*/ inline const DestinationFileFormat& GetFileFormat() const{ return m_fileFormat; } /** *

The format for the flow log.

*/ inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; } /** *

The format for the flow log.

*/ inline void SetFileFormat(const DestinationFileFormat& value) { m_fileFormatHasBeenSet = true; m_fileFormat = value; } /** *

The format for the flow log.

*/ inline void SetFileFormat(DestinationFileFormat&& value) { m_fileFormatHasBeenSet = true; m_fileFormat = std::move(value); } /** *

The format for the flow log.

*/ inline DestinationOptionsResponse& WithFileFormat(const DestinationFileFormat& value) { SetFileFormat(value); return *this;} /** *

The format for the flow log.

*/ inline DestinationOptionsResponse& WithFileFormat(DestinationFileFormat&& value) { SetFileFormat(std::move(value)); return *this;} /** *

Indicates whether to use Hive-compatible prefixes for flow logs stored in * Amazon S3.

*/ inline bool GetHiveCompatiblePartitions() const{ return m_hiveCompatiblePartitions; } /** *

Indicates whether to use Hive-compatible prefixes for flow logs stored in * Amazon S3.

*/ inline bool HiveCompatiblePartitionsHasBeenSet() const { return m_hiveCompatiblePartitionsHasBeenSet; } /** *

Indicates whether to use Hive-compatible prefixes for flow logs stored in * Amazon S3.

*/ 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.

*/ inline DestinationOptionsResponse& WithHiveCompatiblePartitions(bool value) { SetHiveCompatiblePartitions(value); return *this;} /** *

Indicates whether to partition the flow log per hour.

*/ inline bool GetPerHourPartition() const{ return m_perHourPartition; } /** *

Indicates whether to partition the flow log per hour.

*/ inline bool PerHourPartitionHasBeenSet() const { return m_perHourPartitionHasBeenSet; } /** *

Indicates whether to partition the flow log per hour.

*/ inline void SetPerHourPartition(bool value) { m_perHourPartitionHasBeenSet = true; m_perHourPartition = value; } /** *

Indicates whether to partition the flow log per hour.

*/ inline DestinationOptionsResponse& 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