7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/DataShareStatus.h>
11#include <aws/core/utils/DateTime.h>
52 template<
typename ConsumerIdentifierT = Aws::String>
53 void SetConsumerIdentifier(ConsumerIdentifierT&& value) { m_consumerIdentifierHasBeenSet =
true; m_consumerIdentifier = std::forward<ConsumerIdentifierT>(value); }
54 template<
typename ConsumerIdentifierT = Aws::String>
75 template<
typename ConsumerRegionT = Aws::String>
76 void SetConsumerRegion(ConsumerRegionT&& value) { m_consumerRegionHasBeenSet =
true; m_consumerRegion = std::forward<ConsumerRegionT>(value); }
77 template<
typename ConsumerRegionT = Aws::String>
87 template<
typename CreatedDateT = Aws::Utils::DateTime>
88 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet =
true; m_createdDate = std::forward<CreatedDateT>(value); }
89 template<
typename CreatedDateT = Aws::Utils::DateTime>
99 template<
typename StatusChangeDateT = Aws::Utils::DateTime>
100 void SetStatusChangeDate(StatusChangeDateT&& value) { m_statusChangeDateHasBeenSet =
true; m_statusChangeDate = std::forward<StatusChangeDateT>(value); }
101 template<
typename StatusChangeDateT = Aws::Utils::DateTime>
129 bool m_consumerIdentifierHasBeenSet =
false;
132 bool m_statusHasBeenSet =
false;
135 bool m_consumerRegionHasBeenSet =
false;
138 bool m_createdDateHasBeenSet =
false;
141 bool m_statusChangeDateHasBeenSet =
false;
143 bool m_producerAllowedWrites{
false};
144 bool m_producerAllowedWritesHasBeenSet =
false;
146 bool m_consumerAcceptedWrites{
false};
147 bool m_consumerAcceptedWritesHasBeenSet =
false;
DataShareAssociation & WithConsumerIdentifier(ConsumerIdentifierT &&value)
void SetConsumerAcceptedWrites(bool value)
DataShareAssociation & WithStatus(DataShareStatus value)
bool ConsumerRegionHasBeenSet() const
void SetConsumerIdentifier(ConsumerIdentifierT &&value)
DataShareStatus GetStatus() const
const Aws::Utils::DateTime & GetStatusChangeDate() const
const Aws::Utils::DateTime & GetCreatedDate() const
void SetStatusChangeDate(StatusChangeDateT &&value)
void SetCreatedDate(CreatedDateT &&value)
void SetStatus(DataShareStatus value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetConsumerRegion() const
DataShareAssociation & WithStatusChangeDate(StatusChangeDateT &&value)
bool ConsumerIdentifierHasBeenSet() const
bool StatusChangeDateHasBeenSet() const
DataShareAssociation & WithConsumerRegion(ConsumerRegionT &&value)
bool ConsumerAcceptedWritesHasBeenSet() const
bool GetConsumerAcceptedWrites() const
void SetConsumerRegion(ConsumerRegionT &&value)
const Aws::String & GetConsumerIdentifier() const
void SetProducerAllowedWrites(bool value)
DataShareAssociation & WithCreatedDate(CreatedDateT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API DataShareAssociation()=default
AWS_REDSHIFT_API DataShareAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool CreatedDateHasBeenSet() const
DataShareAssociation & WithConsumerAcceptedWrites(bool value)
AWS_REDSHIFT_API DataShareAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ProducerAllowedWritesHasBeenSet() const
bool StatusHasBeenSet() const
bool GetProducerAllowedWrites() const
DataShareAssociation & WithProducerAllowedWrites(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream