AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ClusterIdentifierT = Aws::String>
52 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
53 template<typename ClusterIdentifierT = Aws::String>
54 EnableLoggingRequest& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
56
58
64 inline const Aws::String& GetBucketName() const { return m_bucketName; }
65 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
66 template<typename BucketNameT = Aws::String>
67 void SetBucketName(BucketNameT&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::forward<BucketNameT>(value); }
68 template<typename BucketNameT = Aws::String>
69 EnableLoggingRequest& WithBucketName(BucketNameT&& value) { SetBucketName(std::forward<BucketNameT>(value)); return *this;}
71
73
81 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
82 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
83 template<typename S3KeyPrefixT = Aws::String>
84 void SetS3KeyPrefix(S3KeyPrefixT&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value); }
85 template<typename S3KeyPrefixT = Aws::String>
86 EnableLoggingRequest& WithS3KeyPrefix(S3KeyPrefixT&& value) { SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value)); return *this;}
88
90
94 inline LogDestinationType GetLogDestinationType() const { return m_logDestinationType; }
95 inline bool LogDestinationTypeHasBeenSet() const { return m_logDestinationTypeHasBeenSet; }
96 inline void SetLogDestinationType(LogDestinationType value) { m_logDestinationTypeHasBeenSet = true; m_logDestinationType = value; }
99
101
106 inline const Aws::Vector<Aws::String>& GetLogExports() const { return m_logExports; }
107 inline bool LogExportsHasBeenSet() const { return m_logExportsHasBeenSet; }
108 template<typename LogExportsT = Aws::Vector<Aws::String>>
109 void SetLogExports(LogExportsT&& value) { m_logExportsHasBeenSet = true; m_logExports = std::forward<LogExportsT>(value); }
110 template<typename LogExportsT = Aws::Vector<Aws::String>>
111 EnableLoggingRequest& WithLogExports(LogExportsT&& value) { SetLogExports(std::forward<LogExportsT>(value)); return *this;}
112 template<typename LogExportsT = Aws::String>
113 EnableLoggingRequest& AddLogExports(LogExportsT&& value) { m_logExportsHasBeenSet = true; m_logExports.emplace_back(std::forward<LogExportsT>(value)); return *this; }
115 private:
116
117 Aws::String m_clusterIdentifier;
118 bool m_clusterIdentifierHasBeenSet = false;
119
120 Aws::String m_bucketName;
121 bool m_bucketNameHasBeenSet = false;
122
123 Aws::String m_s3KeyPrefix;
124 bool m_s3KeyPrefixHasBeenSet = false;
125
127 bool m_logDestinationTypeHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_logExports;
130 bool m_logExportsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Redshift
135} // namespace Aws
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
EnableLoggingRequest & WithLogDestinationType(LogDestinationType value)
EnableLoggingRequest & WithBucketName(BucketNameT &&value)
EnableLoggingRequest & WithLogExports(LogExportsT &&value)
EnableLoggingRequest & AddLogExports(LogExportsT &&value)
void SetLogDestinationType(LogDestinationType value)
EnableLoggingRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
void SetClusterIdentifier(ClusterIdentifierT &&value)
EnableLoggingRequest & WithS3KeyPrefix(S3KeyPrefixT &&value)
const Aws::Vector< Aws::String > & GetLogExports() const
AWS_REDSHIFT_API EnableLoggingRequest()=default
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