/** * 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 RDS { namespace Model { /** *

This data type is used as a response element to * DescribeDBLogFiles.

See Also:

AWS * API Reference

*/ class DescribeDBLogFilesDetails { public: AWS_RDS_API DescribeDBLogFilesDetails(); AWS_RDS_API DescribeDBLogFilesDetails(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API DescribeDBLogFilesDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the log file for the specified DB instance.

*/ inline const Aws::String& GetLogFileName() const{ return m_logFileName; } /** *

The name of the log file for the specified DB instance.

*/ inline bool LogFileNameHasBeenSet() const { return m_logFileNameHasBeenSet; } /** *

The name of the log file for the specified DB instance.

*/ inline void SetLogFileName(const Aws::String& value) { m_logFileNameHasBeenSet = true; m_logFileName = value; } /** *

The name of the log file for the specified DB instance.

*/ inline void SetLogFileName(Aws::String&& value) { m_logFileNameHasBeenSet = true; m_logFileName = std::move(value); } /** *

The name of the log file for the specified DB instance.

*/ inline void SetLogFileName(const char* value) { m_logFileNameHasBeenSet = true; m_logFileName.assign(value); } /** *

The name of the log file for the specified DB instance.

*/ inline DescribeDBLogFilesDetails& WithLogFileName(const Aws::String& value) { SetLogFileName(value); return *this;} /** *

The name of the log file for the specified DB instance.

*/ inline DescribeDBLogFilesDetails& WithLogFileName(Aws::String&& value) { SetLogFileName(std::move(value)); return *this;} /** *

The name of the log file for the specified DB instance.

*/ inline DescribeDBLogFilesDetails& WithLogFileName(const char* value) { SetLogFileName(value); return *this;} /** *

A POSIX timestamp when the last log entry was written.

*/ inline long long GetLastWritten() const{ return m_lastWritten; } /** *

A POSIX timestamp when the last log entry was written.

*/ inline bool LastWrittenHasBeenSet() const { return m_lastWrittenHasBeenSet; } /** *

A POSIX timestamp when the last log entry was written.

*/ inline void SetLastWritten(long long value) { m_lastWrittenHasBeenSet = true; m_lastWritten = value; } /** *

A POSIX timestamp when the last log entry was written.

*/ inline DescribeDBLogFilesDetails& WithLastWritten(long long value) { SetLastWritten(value); return *this;} /** *

The size, in bytes, of the log file for the specified DB instance.

*/ inline long long GetSize() const{ return m_size; } /** *

The size, in bytes, of the log file for the specified DB instance.

*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *

The size, in bytes, of the log file for the specified DB instance.

*/ inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; } /** *

The size, in bytes, of the log file for the specified DB instance.

*/ inline DescribeDBLogFilesDetails& WithSize(long long value) { SetSize(value); return *this;} private: Aws::String m_logFileName; bool m_logFileNameHasBeenSet = false; long long m_lastWritten; bool m_lastWrittenHasBeenSet = false; long long m_size; bool m_sizeHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws