AWS SDK for C++  1.9.104
AWS SDK for C++
EnableLoggingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "EnableLogging"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
46  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
47 
52  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
53 
58  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
59 
64  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
65 
70  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
71 
76  inline EnableLoggingRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
77 
82  inline EnableLoggingRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
83 
88  inline EnableLoggingRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
89 
90 
97  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
98 
105  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
106 
113  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
114 
121  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
122 
129  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
130 
137  inline EnableLoggingRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
138 
145  inline EnableLoggingRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
146 
153  inline EnableLoggingRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
154 
155 
164  inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
165 
174  inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
175 
184  inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
185 
194  inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); }
195 
204  inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
205 
214  inline EnableLoggingRequest& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
215 
224  inline EnableLoggingRequest& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;}
225 
234  inline EnableLoggingRequest& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
235 
236  private:
237 
238  Aws::String m_clusterIdentifier;
239  bool m_clusterIdentifierHasBeenSet;
240 
241  Aws::String m_bucketName;
242  bool m_bucketNameHasBeenSet;
243 
244  Aws::String m_s3KeyPrefix;
245  bool m_s3KeyPrefixHasBeenSet;
246  };
247 
248 } // namespace Model
249 } // namespace Redshift
250 } // namespace Aws
Aws::Redshift::Model::EnableLoggingRequest::WithS3KeyPrefix
EnableLoggingRequest & WithS3KeyPrefix(Aws::String &&value)
Definition: EnableLoggingRequest.h:224
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::EnableLoggingRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: EnableLoggingRequest.h:46
Aws::Redshift::Model::EnableLoggingRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: EnableLoggingRequest.h:64
Aws::Redshift::Model::EnableLoggingRequest::S3KeyPrefixHasBeenSet
bool S3KeyPrefixHasBeenSet() const
Definition: EnableLoggingRequest.h:174
Aws::Redshift::Model::EnableLoggingRequest::SetS3KeyPrefix
void SetS3KeyPrefix(const Aws::String &value)
Definition: EnableLoggingRequest.h:184
Aws::Redshift::Model::EnableLoggingRequest::WithBucketName
EnableLoggingRequest & WithBucketName(Aws::String &&value)
Definition: EnableLoggingRequest.h:145
Aws::Redshift::Model::EnableLoggingRequest::WithClusterIdentifier
EnableLoggingRequest & WithClusterIdentifier(const Aws::String &value)
Definition: EnableLoggingRequest.h:76
RedshiftRequest.h
Aws::Redshift::Model::EnableLoggingRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: EnableLoggingRequest.h:52
Aws::Redshift::Model::EnableLoggingRequest::SetS3KeyPrefix
void SetS3KeyPrefix(const char *value)
Definition: EnableLoggingRequest.h:204
Aws::Redshift::Model::EnableLoggingRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::EnableLoggingRequest
Definition: EnableLoggingRequest.h:25
Aws::Redshift::Model::EnableLoggingRequest::WithBucketName
EnableLoggingRequest & WithBucketName(const char *value)
Definition: EnableLoggingRequest.h:153
Aws::Redshift::Model::EnableLoggingRequest::GetBucketName
const Aws::String & GetBucketName() const
Definition: EnableLoggingRequest.h:97
Aws::Redshift::Model::EnableLoggingRequest::GetS3KeyPrefix
const Aws::String & GetS3KeyPrefix() const
Definition: EnableLoggingRequest.h:164
Aws::Redshift::Model::EnableLoggingRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: EnableLoggingRequest.h:58
Aws::Redshift::Model::EnableLoggingRequest::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: EnableLoggingRequest.h:105
Aws::Redshift::Model::EnableLoggingRequest::WithClusterIdentifier
EnableLoggingRequest & WithClusterIdentifier(const char *value)
Definition: EnableLoggingRequest.h:88
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::EnableLoggingRequest::SetBucketName
void SetBucketName(const char *value)
Definition: EnableLoggingRequest.h:129
Aws::Redshift::Model::EnableLoggingRequest::WithS3KeyPrefix
EnableLoggingRequest & WithS3KeyPrefix(const char *value)
Definition: EnableLoggingRequest.h:234
Aws::Redshift::Model::EnableLoggingRequest::WithS3KeyPrefix
EnableLoggingRequest & WithS3KeyPrefix(const Aws::String &value)
Definition: EnableLoggingRequest.h:214
Aws::Redshift::Model::EnableLoggingRequest::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: EnableLoggingRequest.h:121
Aws::Redshift::Model::EnableLoggingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnableLoggingRequest.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::EnableLoggingRequest::WithClusterIdentifier
EnableLoggingRequest & WithClusterIdentifier(Aws::String &&value)
Definition: EnableLoggingRequest.h:82
Redshift_EXPORTS.h
Aws::Redshift::Model::EnableLoggingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::EnableLoggingRequest::EnableLoggingRequest
EnableLoggingRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::EnableLoggingRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: EnableLoggingRequest.h:70
Aws::Redshift::Model::EnableLoggingRequest::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: EnableLoggingRequest.h:113
Aws::Redshift::Model::EnableLoggingRequest::WithBucketName
EnableLoggingRequest & WithBucketName(const Aws::String &value)
Definition: EnableLoggingRequest.h:137
Aws::Redshift::Model::EnableLoggingRequest::SetS3KeyPrefix
void SetS3KeyPrefix(Aws::String &&value)
Definition: EnableLoggingRequest.h:194