1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18   class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace RDS
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>This data type is used as a response element to
28    * <code>DescribeDBLogFiles</code>.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBLogFilesDetails">AWS
30    * API Reference</a></p>
31    */
32   class AWS_RDS_API DescribeDBLogFilesDetails
33   {
34   public:
35     DescribeDBLogFilesDetails();
36     DescribeDBLogFilesDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
37     DescribeDBLogFilesDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38 
39     void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40     void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
43     /**
44      * <p>The name of the log file for the specified DB instance.</p>
45      */
GetLogFileName()46     inline const Aws::String& GetLogFileName() const{ return m_logFileName; }
47 
48     /**
49      * <p>The name of the log file for the specified DB instance.</p>
50      */
LogFileNameHasBeenSet()51     inline bool LogFileNameHasBeenSet() const { return m_logFileNameHasBeenSet; }
52 
53     /**
54      * <p>The name of the log file for the specified DB instance.</p>
55      */
SetLogFileName(const Aws::String & value)56     inline void SetLogFileName(const Aws::String& value) { m_logFileNameHasBeenSet = true; m_logFileName = value; }
57 
58     /**
59      * <p>The name of the log file for the specified DB instance.</p>
60      */
SetLogFileName(Aws::String && value)61     inline void SetLogFileName(Aws::String&& value) { m_logFileNameHasBeenSet = true; m_logFileName = std::move(value); }
62 
63     /**
64      * <p>The name of the log file for the specified DB instance.</p>
65      */
SetLogFileName(const char * value)66     inline void SetLogFileName(const char* value) { m_logFileNameHasBeenSet = true; m_logFileName.assign(value); }
67 
68     /**
69      * <p>The name of the log file for the specified DB instance.</p>
70      */
WithLogFileName(const Aws::String & value)71     inline DescribeDBLogFilesDetails& WithLogFileName(const Aws::String& value) { SetLogFileName(value); return *this;}
72 
73     /**
74      * <p>The name of the log file for the specified DB instance.</p>
75      */
WithLogFileName(Aws::String && value)76     inline DescribeDBLogFilesDetails& WithLogFileName(Aws::String&& value) { SetLogFileName(std::move(value)); return *this;}
77 
78     /**
79      * <p>The name of the log file for the specified DB instance.</p>
80      */
WithLogFileName(const char * value)81     inline DescribeDBLogFilesDetails& WithLogFileName(const char* value) { SetLogFileName(value); return *this;}
82 
83 
84     /**
85      * <p>A POSIX timestamp when the last log entry was written.</p>
86      */
GetLastWritten()87     inline long long GetLastWritten() const{ return m_lastWritten; }
88 
89     /**
90      * <p>A POSIX timestamp when the last log entry was written.</p>
91      */
LastWrittenHasBeenSet()92     inline bool LastWrittenHasBeenSet() const { return m_lastWrittenHasBeenSet; }
93 
94     /**
95      * <p>A POSIX timestamp when the last log entry was written.</p>
96      */
SetLastWritten(long long value)97     inline void SetLastWritten(long long value) { m_lastWrittenHasBeenSet = true; m_lastWritten = value; }
98 
99     /**
100      * <p>A POSIX timestamp when the last log entry was written.</p>
101      */
WithLastWritten(long long value)102     inline DescribeDBLogFilesDetails& WithLastWritten(long long value) { SetLastWritten(value); return *this;}
103 
104 
105     /**
106      * <p>The size, in bytes, of the log file for the specified DB instance.</p>
107      */
GetSize()108     inline long long GetSize() const{ return m_size; }
109 
110     /**
111      * <p>The size, in bytes, of the log file for the specified DB instance.</p>
112      */
SizeHasBeenSet()113     inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
114 
115     /**
116      * <p>The size, in bytes, of the log file for the specified DB instance.</p>
117      */
SetSize(long long value)118     inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
119 
120     /**
121      * <p>The size, in bytes, of the log file for the specified DB instance.</p>
122      */
WithSize(long long value)123     inline DescribeDBLogFilesDetails& WithSize(long long value) { SetSize(value); return *this;}
124 
125   private:
126 
127     Aws::String m_logFileName;
128     bool m_logFileNameHasBeenSet;
129 
130     long long m_lastWritten;
131     bool m_lastWrittenHasBeenSet;
132 
133     long long m_size;
134     bool m_sizeHasBeenSet;
135   };
136 
137 } // namespace Model
138 } // namespace RDS
139 } // namespace Aws
140