AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
S3TablePublishStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/Redshift_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift {
22namespace Model {
23
31 public:
32 AWS_REDSHIFT_API S3TablePublishStatus() = default;
33 AWS_REDSHIFT_API S3TablePublishStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_REDSHIFT_API S3TablePublishStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::Vector<Aws::String>& GetS3Tables() const { return m_s3Tables; }
44 inline bool S3TablesHasBeenSet() const { return m_s3TablesHasBeenSet; }
45 template <typename S3TablesT = Aws::Vector<Aws::String>>
46 void SetS3Tables(S3TablesT&& value) {
47 m_s3TablesHasBeenSet = true;
48 m_s3Tables = std::forward<S3TablesT>(value);
49 }
50 template <typename S3TablesT = Aws::Vector<Aws::String>>
51 S3TablePublishStatus& WithS3Tables(S3TablesT&& value) {
52 SetS3Tables(std::forward<S3TablesT>(value));
53 return *this;
54 }
55 template <typename S3TablesT = Aws::String>
56 S3TablePublishStatus& AddS3Tables(S3TablesT&& value) {
57 m_s3TablesHasBeenSet = true;
58 m_s3Tables.emplace_back(std::forward<S3TablesT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetS3TableNamespace() const { return m_s3TableNamespace; }
68 inline bool S3TableNamespaceHasBeenSet() const { return m_s3TableNamespaceHasBeenSet; }
69 template <typename S3TableNamespaceT = Aws::String>
70 void SetS3TableNamespace(S3TableNamespaceT&& value) {
71 m_s3TableNamespaceHasBeenSet = true;
72 m_s3TableNamespace = std::forward<S3TableNamespaceT>(value);
73 }
74 template <typename S3TableNamespaceT = Aws::String>
75 S3TablePublishStatus& WithS3TableNamespace(S3TableNamespaceT&& value) {
76 SetS3TableNamespace(std::forward<S3TableNamespaceT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetS3TableGranularity() const { return m_s3TableGranularity; }
87 inline bool S3TableGranularityHasBeenSet() const { return m_s3TableGranularityHasBeenSet; }
88 template <typename S3TableGranularityT = Aws::String>
89 void SetS3TableGranularity(S3TableGranularityT&& value) {
90 m_s3TableGranularityHasBeenSet = true;
91 m_s3TableGranularity = std::forward<S3TableGranularityT>(value);
92 }
93 template <typename S3TableGranularityT = Aws::String>
94 S3TablePublishStatus& WithS3TableGranularity(S3TableGranularityT&& value) {
95 SetS3TableGranularity(std::forward<S3TableGranularityT>(value));
96 return *this;
97 }
99
101
105 inline bool GetEnabledAll() const { return m_enabledAll; }
106 inline bool EnabledAllHasBeenSet() const { return m_enabledAllHasBeenSet; }
107 inline void SetEnabledAll(bool value) {
108 m_enabledAllHasBeenSet = true;
109 m_enabledAll = value;
110 }
112 SetEnabledAll(value);
113 return *this;
114 }
116
118
123 inline const Aws::Map<Aws::String, Aws::String>& GetLastIngestionTimes() const { return m_lastIngestionTimes; }
124 inline bool LastIngestionTimesHasBeenSet() const { return m_lastIngestionTimesHasBeenSet; }
125 template <typename LastIngestionTimesT = Aws::Map<Aws::String, Aws::String>>
126 void SetLastIngestionTimes(LastIngestionTimesT&& value) {
127 m_lastIngestionTimesHasBeenSet = true;
128 m_lastIngestionTimes = std::forward<LastIngestionTimesT>(value);
129 }
130 template <typename LastIngestionTimesT = Aws::Map<Aws::String, Aws::String>>
131 S3TablePublishStatus& WithLastIngestionTimes(LastIngestionTimesT&& value) {
132 SetLastIngestionTimes(std::forward<LastIngestionTimesT>(value));
133 return *this;
134 }
135 template <typename LastIngestionTimesKeyT = Aws::String, typename LastIngestionTimesValueT = Aws::String>
136 S3TablePublishStatus& AddLastIngestionTimes(LastIngestionTimesKeyT&& key, LastIngestionTimesValueT&& value) {
137 m_lastIngestionTimesHasBeenSet = true;
138 m_lastIngestionTimes.emplace(std::forward<LastIngestionTimesKeyT>(key), std::forward<LastIngestionTimesValueT>(value));
139 return *this;
140 }
142 private:
143 Aws::Vector<Aws::String> m_s3Tables;
144
145 Aws::String m_s3TableNamespace;
146
147 Aws::String m_s3TableGranularity;
148
149 bool m_enabledAll{false};
150
151 Aws::Map<Aws::String, Aws::String> m_lastIngestionTimes;
152 bool m_s3TablesHasBeenSet = false;
153 bool m_s3TableNamespaceHasBeenSet = false;
154 bool m_s3TableGranularityHasBeenSet = false;
155 bool m_enabledAllHasBeenSet = false;
156 bool m_lastIngestionTimesHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace Redshift
161} // namespace Aws
const Aws::Vector< Aws::String > & GetS3Tables() const
S3TablePublishStatus & AddLastIngestionTimes(LastIngestionTimesKeyT &&key, LastIngestionTimesValueT &&value)
AWS_REDSHIFT_API S3TablePublishStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
S3TablePublishStatus & WithS3Tables(S3TablesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetLastIngestionTimes() const
S3TablePublishStatus & WithS3TableGranularity(S3TableGranularityT &&value)
void SetLastIngestionTimes(LastIngestionTimesT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
S3TablePublishStatus & AddS3Tables(S3TablesT &&value)
S3TablePublishStatus & WithS3TableNamespace(S3TableNamespaceT &&value)
const Aws::String & GetS3TableGranularity() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_REDSHIFT_API S3TablePublishStatus()=default
AWS_REDSHIFT_API S3TablePublishStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
S3TablePublishStatus & WithLastIngestionTimes(LastIngestionTimesT &&value)
void SetS3TableNamespace(S3TableNamespaceT &&value)
void SetS3TableGranularity(S3TableGranularityT &&value)
S3TablePublishStatus & WithEnabledAll(bool value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream