AWS SDK for C++

AWS SDK for C++ Version 1.11.874

Loading...
Searching...
No Matches
DisableLoggingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/LogDestinationType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Redshift {
17namespace Model {
18
25 public:
26 AWS_REDSHIFT_API DisableLoggingRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DisableLogging"; }
33
34 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
45 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
46 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
47 template <typename ClusterIdentifierT = Aws::String>
48 void SetClusterIdentifier(ClusterIdentifierT&& value) {
49 m_clusterIdentifierHasBeenSet = true;
50 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
51 }
52 template <typename ClusterIdentifierT = Aws::String>
53 DisableLoggingRequest& WithClusterIdentifier(ClusterIdentifierT&& value) {
54 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
55 return *this;
56 }
58
60
66 inline LogDestinationType GetLogDestinationType() const { return m_logDestinationType; }
67 inline bool LogDestinationTypeHasBeenSet() const { return m_logDestinationTypeHasBeenSet; }
69 m_logDestinationTypeHasBeenSet = true;
70 m_logDestinationType = value;
71 }
74 return *this;
75 }
77
79
85 inline const Aws::Vector<Aws::String>& GetLogExports() const { return m_logExports; }
86 inline bool LogExportsHasBeenSet() const { return m_logExportsHasBeenSet; }
87 template <typename LogExportsT = Aws::Vector<Aws::String>>
88 void SetLogExports(LogExportsT&& value) {
89 m_logExportsHasBeenSet = true;
90 m_logExports = std::forward<LogExportsT>(value);
91 }
92 template <typename LogExportsT = Aws::Vector<Aws::String>>
93 DisableLoggingRequest& WithLogExports(LogExportsT&& value) {
94 SetLogExports(std::forward<LogExportsT>(value));
95 return *this;
96 }
97 template <typename LogExportsT = Aws::String>
98 DisableLoggingRequest& AddLogExports(LogExportsT&& value) {
99 m_logExportsHasBeenSet = true;
100 m_logExports.emplace_back(std::forward<LogExportsT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_clusterIdentifier;
106
108
109 Aws::Vector<Aws::String> m_logExports;
110 bool m_clusterIdentifierHasBeenSet = false;
111 bool m_logDestinationTypeHasBeenSet = false;
112 bool m_logExportsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Redshift
117} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_REDSHIFT_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetLogExports() const
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DisableLoggingRequest & WithLogExports(LogExportsT &&value)
AWS_REDSHIFT_API DisableLoggingRequest()=default
void SetClusterIdentifier(ClusterIdentifierT &&value)
DisableLoggingRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
void SetLogDestinationType(LogDestinationType value)
DisableLoggingRequest & AddLogExports(LogExportsT &&value)
DisableLoggingRequest & WithLogDestinationType(LogDestinationType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector