AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnableLoggingResult.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 EnableLoggingResult();
42
43
45
49 inline bool GetLoggingEnabled() const{ return m_loggingEnabled; }
50 inline void SetLoggingEnabled(bool value) { m_loggingEnabled = value; }
51 inline EnableLoggingResult& 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 EnableLoggingResult& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
63 inline EnableLoggingResult& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
64 inline EnableLoggingResult& 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 EnableLoggingResult& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
76 inline EnableLoggingResult& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;}
77 inline EnableLoggingResult& 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); }
99 inline EnableLoggingResult& WithLastFailureTime(Aws::Utils::DateTime&& value) { SetLastFailureTime(std::move(value)); return *this;}
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 EnableLoggingResult& WithLastFailureMessage(Aws::String&& value) { SetLastFailureMessage(std::move(value)); return *this;}
112 inline EnableLoggingResult& 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); }
124 inline EnableLoggingResult& WithLogDestinationType(LogDestinationType&& value) { SetLogDestinationType(std::move(value)); return *this;}
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); }
136 inline EnableLoggingResult& WithLogExports(const Aws::Vector<Aws::String>& value) { SetLogExports(value); return *this;}
137 inline EnableLoggingResult& WithLogExports(Aws::Vector<Aws::String>&& value) { SetLogExports(std::move(value)); return *this;}
138 inline EnableLoggingResult& AddLogExports(const Aws::String& value) { m_logExports.push_back(value); return *this; }
139 inline EnableLoggingResult& AddLogExports(Aws::String&& value) { m_logExports.push_back(std::move(value)); return *this; }
140 inline EnableLoggingResult& 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); }
149 inline EnableLoggingResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
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
EnableLoggingResult & WithLogExports(Aws::Vector< Aws::String > &&value)
void SetLogDestinationType(const LogDestinationType &value)
void SetLastFailureTime(Aws::Utils::DateTime &&value)
AWS_REDSHIFT_API EnableLoggingResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Utils::DateTime & GetLastFailureTime() const
const ResponseMetadata & GetResponseMetadata() const
EnableLoggingResult & WithBucketName(Aws::String &&value)
EnableLoggingResult & AddLogExports(const Aws::String &value)
void SetS3KeyPrefix(const Aws::String &value)
EnableLoggingResult & WithLastFailureTime(const Aws::Utils::DateTime &value)
EnableLoggingResult & AddLogExports(const char *value)
EnableLoggingResult & WithLastFailureMessage(const char *value)
void SetResponseMetadata(const ResponseMetadata &value)
void SetLastFailureMessage(const Aws::String &value)
AWS_REDSHIFT_API EnableLoggingResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
EnableLoggingResult & WithLogDestinationType(LogDestinationType &&value)
EnableLoggingResult & WithLogDestinationType(const LogDestinationType &value)
EnableLoggingResult & WithLoggingEnabled(bool value)
EnableLoggingResult & WithLastFailureMessage(Aws::String &&value)
EnableLoggingResult & WithLastFailureTime(Aws::Utils::DateTime &&value)
const Aws::Vector< Aws::String > & GetLogExports() const
void SetBucketName(const Aws::String &value)
EnableLoggingResult & WithLogExports(const Aws::Vector< Aws::String > &value)
EnableLoggingResult & WithS3KeyPrefix(const char *value)
void SetLastSuccessfulDeliveryTime(Aws::Utils::DateTime &&value)
EnableLoggingResult & WithS3KeyPrefix(const Aws::String &value)
void SetLogExports(Aws::Vector< Aws::String > &&value)
void SetLastSuccessfulDeliveryTime(const Aws::Utils::DateTime &value)
EnableLoggingResult & WithBucketName(const char *value)
const Aws::String & GetLastFailureMessage() const
EnableLoggingResult & AddLogExports(Aws::String &&value)
void SetLogDestinationType(LogDestinationType &&value)
void SetLastFailureTime(const Aws::Utils::DateTime &value)
EnableLoggingResult & WithResponseMetadata(ResponseMetadata &&value)
EnableLoggingResult & WithLastSuccessfulDeliveryTime(const Aws::Utils::DateTime &value)
EnableLoggingResult & WithResponseMetadata(const ResponseMetadata &value)
EnableLoggingResult & WithBucketName(const Aws::String &value)
const Aws::Utils::DateTime & GetLastSuccessfulDeliveryTime() const
EnableLoggingResult & WithS3KeyPrefix(Aws::String &&value)
void SetLogExports(const Aws::Vector< Aws::String > &value)
EnableLoggingResult & WithLastSuccessfulDeliveryTime(Aws::Utils::DateTime &&value)
void SetResponseMetadata(ResponseMetadata &&value)
const LogDestinationType & GetLogDestinationType() const
EnableLoggingResult & WithLastFailureMessage(const 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