AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeLoggingStatusResult.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/redshift/model/LogDestinationType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/redshift/model/ResponseMetadata.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Xml
23{
24 class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace Redshift
28{
29namespace Model
30{
37 {
38 public:
39 AWS_REDSHIFT_API DescribeLoggingStatusResult();
42
43
45
49 inline bool GetLoggingEnabled() const{ return m_loggingEnabled; }
50 inline void SetLoggingEnabled(bool value) { m_loggingEnabled = value; }
51 inline DescribeLoggingStatusResult& WithLoggingEnabled(bool value) { SetLoggingEnabled(value); return *this;}
53
55
58 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
59 inline void SetBucketName(const Aws::String& value) { m_bucketName = value; }
60 inline void SetBucketName(Aws::String&& value) { m_bucketName = std::move(value); }
61 inline void SetBucketName(const char* value) { m_bucketName.assign(value); }
62 inline DescribeLoggingStatusResult& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
63 inline DescribeLoggingStatusResult& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
64 inline DescribeLoggingStatusResult& WithBucketName(const char* value) { SetBucketName(value); return *this;}
66
68
71 inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
72 inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefix = value; }
73 inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefix = std::move(value); }
74 inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefix.assign(value); }
75 inline DescribeLoggingStatusResult& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
76 inline DescribeLoggingStatusResult& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;}
77 inline DescribeLoggingStatusResult& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetLastSuccessfulDeliveryTime() const{ return m_lastSuccessfulDeliveryTime; }
85 inline void SetLastSuccessfulDeliveryTime(const Aws::Utils::DateTime& value) { m_lastSuccessfulDeliveryTime = value; }
86 inline void SetLastSuccessfulDeliveryTime(Aws::Utils::DateTime&& value) { m_lastSuccessfulDeliveryTime = std::move(value); }
90
92
95 inline const Aws::Utils::DateTime& GetLastFailureTime() const{ return m_lastFailureTime; }
96 inline void SetLastFailureTime(const Aws::Utils::DateTime& value) { m_lastFailureTime = value; }
97 inline void SetLastFailureTime(Aws::Utils::DateTime&& value) { m_lastFailureTime = std::move(value); }
101
103
106 inline const Aws::String& GetLastFailureMessage() const{ return m_lastFailureMessage; }
107 inline void SetLastFailureMessage(const Aws::String& value) { m_lastFailureMessage = value; }
108 inline void SetLastFailureMessage(Aws::String&& value) { m_lastFailureMessage = std::move(value); }
109 inline void SetLastFailureMessage(const char* value) { m_lastFailureMessage.assign(value); }
111 inline DescribeLoggingStatusResult& WithLastFailureMessage(Aws::String&& value) { SetLastFailureMessage(std::move(value)); return *this;}
112 inline DescribeLoggingStatusResult& WithLastFailureMessage(const char* value) { SetLastFailureMessage(value); return *this;}
114
116
120 inline const LogDestinationType& GetLogDestinationType() const{ return m_logDestinationType; }
121 inline void SetLogDestinationType(const LogDestinationType& value) { m_logDestinationType = value; }
122 inline void SetLogDestinationType(LogDestinationType&& value) { m_logDestinationType = std::move(value); }
126
128
133 inline const Aws::Vector<Aws::String>& GetLogExports() const{ return m_logExports; }
134 inline void SetLogExports(const Aws::Vector<Aws::String>& value) { m_logExports = value; }
135 inline void SetLogExports(Aws::Vector<Aws::String>&& value) { m_logExports = std::move(value); }
137 inline DescribeLoggingStatusResult& WithLogExports(Aws::Vector<Aws::String>&& value) { SetLogExports(std::move(value)); return *this;}
138 inline DescribeLoggingStatusResult& AddLogExports(const Aws::String& value) { m_logExports.push_back(value); return *this; }
139 inline DescribeLoggingStatusResult& AddLogExports(Aws::String&& value) { m_logExports.push_back(std::move(value)); return *this; }
140 inline DescribeLoggingStatusResult& AddLogExports(const char* value) { m_logExports.push_back(value); return *this; }
142
144
145 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
146 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
147 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
151 private:
152
153 bool m_loggingEnabled;
154
155 Aws::String m_bucketName;
156
157 Aws::String m_s3KeyPrefix;
158
159 Aws::Utils::DateTime m_lastSuccessfulDeliveryTime;
160
161 Aws::Utils::DateTime m_lastFailureTime;
162
163 Aws::String m_lastFailureMessage;
164
165 LogDestinationType m_logDestinationType;
166
167 Aws::Vector<Aws::String> m_logExports;
168
169 ResponseMetadata m_responseMetadata;
170 };
171
172} // namespace Model
173} // namespace Redshift
174} // namespace Aws
void SetLogDestinationType(const LogDestinationType &value)
void SetLogExports(Aws::Vector< Aws::String > &&value)
AWS_REDSHIFT_API DescribeLoggingStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeLoggingStatusResult & WithLogExports(const Aws::Vector< Aws::String > &value)
void SetLastSuccessfulDeliveryTime(const Aws::Utils::DateTime &value)
DescribeLoggingStatusResult & WithLastFailureTime(Aws::Utils::DateTime &&value)
DescribeLoggingStatusResult & WithBucketName(const char *value)
DescribeLoggingStatusResult & WithLastSuccessfulDeliveryTime(Aws::Utils::DateTime &&value)
DescribeLoggingStatusResult & WithLastSuccessfulDeliveryTime(const Aws::Utils::DateTime &value)
DescribeLoggingStatusResult & WithLogDestinationType(const LogDestinationType &value)
DescribeLoggingStatusResult & WithLogExports(Aws::Vector< Aws::String > &&value)
DescribeLoggingStatusResult & WithLogDestinationType(LogDestinationType &&value)
DescribeLoggingStatusResult & WithLoggingEnabled(bool value)
DescribeLoggingStatusResult & WithLastFailureMessage(const Aws::String &value)
void SetLastSuccessfulDeliveryTime(Aws::Utils::DateTime &&value)
DescribeLoggingStatusResult & AddLogExports(const Aws::String &value)
void SetLogExports(const Aws::Vector< Aws::String > &value)
DescribeLoggingStatusResult & WithResponseMetadata(ResponseMetadata &&value)
const Aws::Vector< Aws::String > & GetLogExports() const
void SetLastFailureTime(const Aws::Utils::DateTime &value)
DescribeLoggingStatusResult & WithBucketName(Aws::String &&value)
DescribeLoggingStatusResult & WithS3KeyPrefix(Aws::String &&value)
DescribeLoggingStatusResult & WithS3KeyPrefix(const Aws::String &value)
DescribeLoggingStatusResult & WithLastFailureTime(const Aws::Utils::DateTime &value)
DescribeLoggingStatusResult & WithBucketName(const Aws::String &value)
DescribeLoggingStatusResult & WithResponseMetadata(const ResponseMetadata &value)
DescribeLoggingStatusResult & WithLastFailureMessage(const char *value)
AWS_REDSHIFT_API DescribeLoggingStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeLoggingStatusResult & AddLogExports(const char *value)
const Aws::Utils::DateTime & GetLastSuccessfulDeliveryTime() const
DescribeLoggingStatusResult & WithS3KeyPrefix(const char *value)
DescribeLoggingStatusResult & AddLogExports(Aws::String &&value)
DescribeLoggingStatusResult & WithLastFailureMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument