AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnableLoggingRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/LogDestinationType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_REDSHIFT_API EnableLoggingRequest();
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
37 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
49 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
50 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
51 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
52 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
53 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
54 inline EnableLoggingRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
55 inline EnableLoggingRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
56 inline EnableLoggingRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
58
60
66 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
67 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
68 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
69 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
70 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
71 inline EnableLoggingRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
72 inline EnableLoggingRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
73 inline EnableLoggingRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
75
77
85 inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
86 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
87 inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
88 inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); }
89 inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
90 inline EnableLoggingRequest& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
91 inline EnableLoggingRequest& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;}
92 inline EnableLoggingRequest& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
94
96
100 inline const LogDestinationType& GetLogDestinationType() const{ return m_logDestinationType; }
101 inline bool LogDestinationTypeHasBeenSet() const { return m_logDestinationTypeHasBeenSet; }
102 inline void SetLogDestinationType(const LogDestinationType& value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = value; }
103 inline void SetLogDestinationType(LogDestinationType&& value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = std::move(value); }
105 inline EnableLoggingRequest& WithLogDestinationType(LogDestinationType&& value) { SetLogDestinationType(std::move(value)); return *this;}
107
109
114 inline const Aws::Vector<Aws::String>& GetLogExports() const{ return m_logExports; }
115 inline bool LogExportsHasBeenSet() const { return m_logExportsHasBeenSet; }
116 inline void SetLogExports(const Aws::Vector<Aws::String>& value) { m_logExportsHasBeenSet = true; m_logExports = value; }
117 inline void SetLogExports(Aws::Vector<Aws::String>&& value) { m_logExportsHasBeenSet = true; m_logExports = std::move(value); }
118 inline EnableLoggingRequest& WithLogExports(const Aws::Vector<Aws::String>& value) { SetLogExports(value); return *this;}
119 inline EnableLoggingRequest& WithLogExports(Aws::Vector<Aws::String>&& value) { SetLogExports(std::move(value)); return *this;}
120 inline EnableLoggingRequest& AddLogExports(const Aws::String& value) { m_logExportsHasBeenSet = true; m_logExports.push_back(value); return *this; }
121 inline EnableLoggingRequest& AddLogExports(Aws::String&& value) { m_logExportsHasBeenSet = true; m_logExports.push_back(std::move(value)); return *this; }
122 inline EnableLoggingRequest& AddLogExports(const char* value) { m_logExportsHasBeenSet = true; m_logExports.push_back(value); return *this; }
124 private:
125
126 Aws::String m_clusterIdentifier;
127 bool m_clusterIdentifierHasBeenSet = false;
128
129 Aws::String m_bucketName;
130 bool m_bucketNameHasBeenSet = false;
131
132 Aws::String m_s3KeyPrefix;
133 bool m_s3KeyPrefixHasBeenSet = false;
134
135 LogDestinationType m_logDestinationType;
136 bool m_logDestinationTypeHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_logExports;
139 bool m_logExportsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Redshift
144} // namespace Aws
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)
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