AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
EnableLoggingRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "EnableLogging"; }
36
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
48 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
49
54 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
55
60 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
61
66 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
67
72 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
73
78 inline EnableLoggingRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
79
84 inline EnableLoggingRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
85
90 inline EnableLoggingRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
91
92
99 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
100
107 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
108
115 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
116
123 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
124
131 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
132
139 inline EnableLoggingRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
140
147 inline EnableLoggingRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
148
155 inline EnableLoggingRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
156
157
166 inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
167
176 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
177
186 inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
187
196 inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); }
197
206 inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
207
216 inline EnableLoggingRequest& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
217
226 inline EnableLoggingRequest& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;}
227
236 inline EnableLoggingRequest& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
237
238
243 inline const LogDestinationType& GetLogDestinationType() const{ return m_logDestinationType; }
244
249 inline bool LogDestinationTypeHasBeenSet() const { return m_logDestinationTypeHasBeenSet; }
250
255 inline void SetLogDestinationType(const LogDestinationType& value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = value; }
256
261 inline void SetLogDestinationType(LogDestinationType&& value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = std::move(value); }
262
268
273 inline EnableLoggingRequest& WithLogDestinationType(LogDestinationType&& value) { SetLogDestinationType(std::move(value)); return *this;}
274
275
280 inline const Aws::Vector<Aws::String>& GetLogExports() const{ return m_logExports; }
281
286 inline bool LogExportsHasBeenSet() const { return m_logExportsHasBeenSet; }
287
292 inline void SetLogExports(const Aws::Vector<Aws::String>& value) { m_logExportsHasBeenSet = true; m_logExports = value; }
293
298 inline void SetLogExports(Aws::Vector<Aws::String>&& value) { m_logExportsHasBeenSet = true; m_logExports = std::move(value); }
299
304 inline EnableLoggingRequest& WithLogExports(const Aws::Vector<Aws::String>& value) { SetLogExports(value); return *this;}
305
310 inline EnableLoggingRequest& WithLogExports(Aws::Vector<Aws::String>&& value) { SetLogExports(std::move(value)); return *this;}
311
316 inline EnableLoggingRequest& AddLogExports(const Aws::String& value) { m_logExportsHasBeenSet = true; m_logExports.push_back(value); return *this; }
317
322 inline EnableLoggingRequest& AddLogExports(Aws::String&& value) { m_logExportsHasBeenSet = true; m_logExports.push_back(std::move(value)); return *this; }
323
328 inline EnableLoggingRequest& AddLogExports(const char* value) { m_logExportsHasBeenSet = true; m_logExports.push_back(value); return *this; }
329
330 private:
331
332 Aws::String m_clusterIdentifier;
333 bool m_clusterIdentifierHasBeenSet = false;
334
335 Aws::String m_bucketName;
336 bool m_bucketNameHasBeenSet = false;
337
338 Aws::String m_s3KeyPrefix;
339 bool m_s3KeyPrefixHasBeenSet = false;
340
341 LogDestinationType m_logDestinationType;
342 bool m_logDestinationTypeHasBeenSet = false;
343
344 Aws::Vector<Aws::String> m_logExports;
345 bool m_logExportsHasBeenSet = false;
346 };
347
348} // namespace Model
349} // namespace Redshift
350} // namespace Aws
#define AWS_REDSHIFT_API
EnableLoggingRequest & WithLogExports(const Aws::Vector< Aws::String > &value)
void SetLogDestinationType(LogDestinationType &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
EnableLoggingRequest & WithLogDestinationType(const LogDestinationType &value)
EnableLoggingRequest & WithLogDestinationType(LogDestinationType &&value)
void SetClusterIdentifier(const Aws::String &value)
EnableLoggingRequest & WithS3KeyPrefix(const Aws::String &value)
EnableLoggingRequest & WithClusterIdentifier(const Aws::String &value)
const Aws::String & GetClusterIdentifier() const
EnableLoggingRequest & WithClusterIdentifier(Aws::String &&value)
const LogDestinationType & GetLogDestinationType() const
EnableLoggingRequest & AddLogExports(Aws::String &&value)
EnableLoggingRequest & WithS3KeyPrefix(Aws::String &&value)
EnableLoggingRequest & WithBucketName(const Aws::String &value)
EnableLoggingRequest & WithLogExports(Aws::Vector< Aws::String > &&value)
void SetLogExports(Aws::Vector< Aws::String > &&value)
void SetLogDestinationType(const LogDestinationType &value)
EnableLoggingRequest & WithClusterIdentifier(const char *value)
virtual const char * GetServiceRequestName() const override
EnableLoggingRequest & AddLogExports(const Aws::String &value)
EnableLoggingRequest & WithBucketName(const char *value)
const Aws::Vector< Aws::String > & GetLogExports() const
void SetBucketName(const Aws::String &value)
void SetLogExports(const Aws::Vector< Aws::String > &value)
EnableLoggingRequest & WithBucketName(Aws::String &&value)
EnableLoggingRequest & AddLogExports(const char *value)
EnableLoggingRequest & WithS3KeyPrefix(const char *value)
void SetS3KeyPrefix(const Aws::String &value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector