AWS SDK for C++  1.9.153
AWS SDK for C++
DataShareAssociation.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
49  inline const Aws::String& GetConsumerIdentifier() const{ return m_consumerIdentifier; }
50 
55  inline bool ConsumerIdentifierHasBeenSet() const { return m_consumerIdentifierHasBeenSet; }
56 
61  inline void SetConsumerIdentifier(const Aws::String& value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier = value; }
62 
67  inline void SetConsumerIdentifier(Aws::String&& value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier = std::move(value); }
68 
73  inline void SetConsumerIdentifier(const char* value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier.assign(value); }
74 
79  inline DataShareAssociation& WithConsumerIdentifier(const Aws::String& value) { SetConsumerIdentifier(value); return *this;}
80 
85  inline DataShareAssociation& WithConsumerIdentifier(Aws::String&& value) { SetConsumerIdentifier(std::move(value)); return *this;}
86 
91  inline DataShareAssociation& WithConsumerIdentifier(const char* value) { SetConsumerIdentifier(value); return *this;}
92 
93 
97  inline const DataShareStatus& GetStatus() const{ return m_status; }
98 
102  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 
107  inline void SetStatus(const DataShareStatus& value) { m_statusHasBeenSet = true; m_status = value; }
108 
112  inline void SetStatus(DataShareStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
113 
117  inline DataShareAssociation& WithStatus(const DataShareStatus& value) { SetStatus(value); return *this;}
118 
122  inline DataShareAssociation& WithStatus(DataShareStatus&& value) { SetStatus(std::move(value)); return *this;}
123 
124 
128  inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
129 
133  inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
134 
138  inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
139 
143  inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
144 
148  inline DataShareAssociation& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
149 
153  inline DataShareAssociation& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
154 
155 
159  inline const Aws::Utils::DateTime& GetStatusChangeDate() const{ return m_statusChangeDate; }
160 
164  inline bool StatusChangeDateHasBeenSet() const { return m_statusChangeDateHasBeenSet; }
165 
169  inline void SetStatusChangeDate(const Aws::Utils::DateTime& value) { m_statusChangeDateHasBeenSet = true; m_statusChangeDate = value; }
170 
174  inline void SetStatusChangeDate(Aws::Utils::DateTime&& value) { m_statusChangeDateHasBeenSet = true; m_statusChangeDate = std::move(value); }
175 
179  inline DataShareAssociation& WithStatusChangeDate(const Aws::Utils::DateTime& value) { SetStatusChangeDate(value); return *this;}
180 
184  inline DataShareAssociation& WithStatusChangeDate(Aws::Utils::DateTime&& value) { SetStatusChangeDate(std::move(value)); return *this;}
185 
186  private:
187 
188  Aws::String m_consumerIdentifier;
189  bool m_consumerIdentifierHasBeenSet;
190 
191  DataShareStatus m_status;
192  bool m_statusHasBeenSet;
193 
194  Aws::Utils::DateTime m_createdDate;
195  bool m_createdDateHasBeenSet;
196 
197  Aws::Utils::DateTime m_statusChangeDate;
198  bool m_statusChangeDateHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace Redshift
203 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::DataShareAssociation::DataShareAssociation
DataShareAssociation()
Aws::Redshift::Model::DataShareAssociation::WithConsumerIdentifier
DataShareAssociation & WithConsumerIdentifier(Aws::String &&value)
Definition: DataShareAssociation.h:85
Aws::Redshift::Model::DataShareAssociation::WithConsumerIdentifier
DataShareAssociation & WithConsumerIdentifier(const char *value)
Definition: DataShareAssociation.h:91
Aws::Redshift::Model::DataShareAssociation::SetStatusChangeDate
void SetStatusChangeDate(Aws::Utils::DateTime &&value)
Definition: DataShareAssociation.h:174
DateTime.h
Aws::Redshift::Model::DataShareAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::DataShareAssociation::operator=
DataShareAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::Redshift::Model::DataShareAssociation::WithStatusChangeDate
DataShareAssociation & WithStatusChangeDate(Aws::Utils::DateTime &&value)
Definition: DataShareAssociation.h:184
DataShareStatus.h
Aws::Redshift::Model::DataShareAssociation::WithStatus
DataShareAssociation & WithStatus(DataShareStatus &&value)
Definition: DataShareAssociation.h:122
Aws::Redshift::Model::DataShareAssociation
Definition: DataShareAssociation.h:35
Aws::Redshift::Model::DataShareAssociation::CreatedDateHasBeenSet
bool CreatedDateHasBeenSet() const
Definition: DataShareAssociation.h:133
Aws::Redshift::Model::DataShareAssociation::SetStatus
void SetStatus(DataShareStatus &&value)
Definition: DataShareAssociation.h:112
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::DataShareAssociation::GetStatus
const DataShareStatus & GetStatus() const
Definition: DataShareAssociation.h:97
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::DataShareAssociation::WithCreatedDate
DataShareAssociation & WithCreatedDate(const Aws::Utils::DateTime &value)
Definition: DataShareAssociation.h:148
Aws::Redshift::Model::DataShareAssociation::GetConsumerIdentifier
const Aws::String & GetConsumerIdentifier() const
Definition: DataShareAssociation.h:49
Aws::Redshift::Model::DataShareAssociation::SetConsumerIdentifier
void SetConsumerIdentifier(const char *value)
Definition: DataShareAssociation.h:73
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::DataShareAssociation::StatusChangeDateHasBeenSet
bool StatusChangeDateHasBeenSet() const
Definition: DataShareAssociation.h:164
Aws::Redshift::Model::DataShareAssociation::SetCreatedDate
void SetCreatedDate(Aws::Utils::DateTime &&value)
Definition: DataShareAssociation.h:143
Aws::Redshift::Model::DataShareAssociation::WithStatus
DataShareAssociation & WithStatus(const DataShareStatus &value)
Definition: DataShareAssociation.h:117
Aws::Redshift::Model::DataShareAssociation::DataShareAssociation
DataShareAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::Redshift::Model::DataShareAssociation::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: DataShareAssociation.h:102
Aws::Redshift::Model::DataShareAssociation::SetConsumerIdentifier
void SetConsumerIdentifier(const Aws::String &value)
Definition: DataShareAssociation.h:61
Aws::Redshift::Model::DataShareAssociation::WithCreatedDate
DataShareAssociation & WithCreatedDate(Aws::Utils::DateTime &&value)
Definition: DataShareAssociation.h:153
Aws::Redshift::Model::DataShareAssociation::WithStatusChangeDate
DataShareAssociation & WithStatusChangeDate(const Aws::Utils::DateTime &value)
Definition: DataShareAssociation.h:179
Aws::Redshift::Model::DataShareAssociation::ConsumerIdentifierHasBeenSet
bool ConsumerIdentifierHasBeenSet() const
Definition: DataShareAssociation.h:55
Aws::Redshift::Model::DataShareAssociation::GetCreatedDate
const Aws::Utils::DateTime & GetCreatedDate() const
Definition: DataShareAssociation.h:128
Aws::Redshift::Model::DataShareAssociation::SetCreatedDate
void SetCreatedDate(const Aws::Utils::DateTime &value)
Definition: DataShareAssociation.h:138
Aws::Redshift::Model::DataShareAssociation::SetStatusChangeDate
void SetStatusChangeDate(const Aws::Utils::DateTime &value)
Definition: DataShareAssociation.h:169
Aws::Redshift::Model::DataShareAssociation::WithConsumerIdentifier
DataShareAssociation & WithConsumerIdentifier(const Aws::String &value)
Definition: DataShareAssociation.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::DataShareAssociation::SetConsumerIdentifier
void SetConsumerIdentifier(Aws::String &&value)
Definition: DataShareAssociation.h:67
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::DataShareAssociation::SetStatus
void SetStatus(const DataShareStatus &value)
Definition: DataShareAssociation.h:107
Aws::Redshift::Model::DataShareStatus
DataShareStatus
Definition: DataShareStatus.h:17
Aws::Redshift::Model::DataShareAssociation::GetStatusChangeDate
const Aws::Utils::DateTime & GetStatusChangeDate() const
Definition: DataShareAssociation.h:159
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::DataShareAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const