AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DataShareAssociation.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_REDSHIFT_API DataShareAssociation() = default;
38 AWS_REDSHIFT_API DataShareAssociation(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API DataShareAssociation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Aws::String& GetConsumerIdentifier() const { return m_consumerIdentifier; }
51 inline bool ConsumerIdentifierHasBeenSet() const { return m_consumerIdentifierHasBeenSet; }
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>
55 DataShareAssociation& WithConsumerIdentifier(ConsumerIdentifierT&& value) { SetConsumerIdentifier(std::forward<ConsumerIdentifierT>(value)); return *this;}
57
59
62 inline DataShareStatus GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(DataShareStatus value) { m_statusHasBeenSet = true; m_status = value; }
65 inline DataShareAssociation& WithStatus(DataShareStatus value) { SetStatus(value); return *this;}
67
69
73 inline const Aws::String& GetConsumerRegion() const { return m_consumerRegion; }
74 inline bool ConsumerRegionHasBeenSet() const { return m_consumerRegionHasBeenSet; }
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>
78 DataShareAssociation& WithConsumerRegion(ConsumerRegionT&& value) { SetConsumerRegion(std::forward<ConsumerRegionT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
86 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
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>
90 DataShareAssociation& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetStatusChangeDate() const { return m_statusChangeDate; }
98 inline bool StatusChangeDateHasBeenSet() const { return m_statusChangeDateHasBeenSet; }
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>
102 DataShareAssociation& WithStatusChangeDate(StatusChangeDateT&& value) { SetStatusChangeDate(std::forward<StatusChangeDateT>(value)); return *this;}
104
106
110 inline bool GetProducerAllowedWrites() const { return m_producerAllowedWrites; }
111 inline bool ProducerAllowedWritesHasBeenSet() const { return m_producerAllowedWritesHasBeenSet; }
112 inline void SetProducerAllowedWrites(bool value) { m_producerAllowedWritesHasBeenSet = true; m_producerAllowedWrites = value; }
115
117
121 inline bool GetConsumerAcceptedWrites() const { return m_consumerAcceptedWrites; }
122 inline bool ConsumerAcceptedWritesHasBeenSet() const { return m_consumerAcceptedWritesHasBeenSet; }
123 inline void SetConsumerAcceptedWrites(bool value) { m_consumerAcceptedWritesHasBeenSet = true; m_consumerAcceptedWrites = value; }
126 private:
127
128 Aws::String m_consumerIdentifier;
129 bool m_consumerIdentifierHasBeenSet = false;
130
132 bool m_statusHasBeenSet = false;
133
134 Aws::String m_consumerRegion;
135 bool m_consumerRegionHasBeenSet = false;
136
137 Aws::Utils::DateTime m_createdDate{};
138 bool m_createdDateHasBeenSet = false;
139
140 Aws::Utils::DateTime m_statusChangeDate{};
141 bool m_statusChangeDateHasBeenSet = false;
142
143 bool m_producerAllowedWrites{false};
144 bool m_producerAllowedWritesHasBeenSet = false;
145
146 bool m_consumerAcceptedWrites{false};
147 bool m_consumerAcceptedWritesHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Redshift
152} // namespace Aws
DataShareAssociation & WithConsumerIdentifier(ConsumerIdentifierT &&value)
DataShareAssociation & WithStatus(DataShareStatus value)
void SetConsumerIdentifier(ConsumerIdentifierT &&value)
const Aws::Utils::DateTime & GetStatusChangeDate() const
const Aws::Utils::DateTime & GetCreatedDate() const
void SetStatusChangeDate(StatusChangeDateT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DataShareAssociation & WithStatusChangeDate(StatusChangeDateT &&value)
DataShareAssociation & WithConsumerRegion(ConsumerRegionT &&value)
void SetConsumerRegion(ConsumerRegionT &&value)
const Aws::String & GetConsumerIdentifier() const
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)
DataShareAssociation & WithConsumerAcceptedWrites(bool value)
AWS_REDSHIFT_API DataShareAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
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