AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConsumerIdentifier(const Aws::String& value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier = value; }
53 inline void SetConsumerIdentifier(Aws::String&& value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier = std::move(value); }
54 inline void SetConsumerIdentifier(const char* value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier.assign(value); }
56 inline DataShareAssociation& WithConsumerIdentifier(Aws::String&& value) { SetConsumerIdentifier(std::move(value)); return *this;}
57 inline DataShareAssociation& WithConsumerIdentifier(const char* value) { SetConsumerIdentifier(value); return *this;}
59
61
64 inline const DataShareStatus& GetStatus() const{ return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(const DataShareStatus& value) { m_statusHasBeenSet = true; m_status = value; }
67 inline void SetStatus(DataShareStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
68 inline DataShareAssociation& WithStatus(const DataShareStatus& value) { SetStatus(value); return *this;}
69 inline DataShareAssociation& WithStatus(DataShareStatus&& value) { SetStatus(std::move(value)); return *this;}
71
73
77 inline const Aws::String& GetConsumerRegion() const{ return m_consumerRegion; }
78 inline bool ConsumerRegionHasBeenSet() const { return m_consumerRegionHasBeenSet; }
79 inline void SetConsumerRegion(const Aws::String& value) { m_consumerRegionHasBeenSet = true; m_consumerRegion = value; }
80 inline void SetConsumerRegion(Aws::String&& value) { m_consumerRegionHasBeenSet = true; m_consumerRegion = std::move(value); }
81 inline void SetConsumerRegion(const char* value) { m_consumerRegionHasBeenSet = true; m_consumerRegion.assign(value); }
82 inline DataShareAssociation& WithConsumerRegion(const Aws::String& value) { SetConsumerRegion(value); return *this;}
83 inline DataShareAssociation& WithConsumerRegion(Aws::String&& value) { SetConsumerRegion(std::move(value)); return *this;}
84 inline DataShareAssociation& WithConsumerRegion(const char* value) { SetConsumerRegion(value); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
92 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
93 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
94 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
95 inline DataShareAssociation& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
96 inline DataShareAssociation& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetStatusChangeDate() const{ return m_statusChangeDate; }
104 inline bool StatusChangeDateHasBeenSet() const { return m_statusChangeDateHasBeenSet; }
105 inline void SetStatusChangeDate(const Aws::Utils::DateTime& value) { m_statusChangeDateHasBeenSet = true; m_statusChangeDate = value; }
106 inline void SetStatusChangeDate(Aws::Utils::DateTime&& value) { m_statusChangeDateHasBeenSet = true; m_statusChangeDate = std::move(value); }
108 inline DataShareAssociation& WithStatusChangeDate(Aws::Utils::DateTime&& value) { SetStatusChangeDate(std::move(value)); return *this;}
110
112
116 inline bool GetProducerAllowedWrites() const{ return m_producerAllowedWrites; }
117 inline bool ProducerAllowedWritesHasBeenSet() const { return m_producerAllowedWritesHasBeenSet; }
118 inline void SetProducerAllowedWrites(bool value) { m_producerAllowedWritesHasBeenSet = true; m_producerAllowedWrites = value; }
121
123
127 inline bool GetConsumerAcceptedWrites() const{ return m_consumerAcceptedWrites; }
128 inline bool ConsumerAcceptedWritesHasBeenSet() const { return m_consumerAcceptedWritesHasBeenSet; }
129 inline void SetConsumerAcceptedWrites(bool value) { m_consumerAcceptedWritesHasBeenSet = true; m_consumerAcceptedWrites = value; }
132 private:
133
134 Aws::String m_consumerIdentifier;
135 bool m_consumerIdentifierHasBeenSet = false;
136
137 DataShareStatus m_status;
138 bool m_statusHasBeenSet = false;
139
140 Aws::String m_consumerRegion;
141 bool m_consumerRegionHasBeenSet = false;
142
143 Aws::Utils::DateTime m_createdDate;
144 bool m_createdDateHasBeenSet = false;
145
146 Aws::Utils::DateTime m_statusChangeDate;
147 bool m_statusChangeDateHasBeenSet = false;
148
149 bool m_producerAllowedWrites;
150 bool m_producerAllowedWritesHasBeenSet = false;
151
152 bool m_consumerAcceptedWrites;
153 bool m_consumerAcceptedWritesHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace Redshift
158} // namespace Aws
const DataShareStatus & GetStatus() const
DataShareAssociation & WithConsumerIdentifier(const char *value)
DataShareAssociation & WithConsumerRegion(const Aws::String &value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
void SetStatusChangeDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStatusChangeDate() const
DataShareAssociation & WithConsumerRegion(const char *value)
const Aws::Utils::DateTime & GetCreatedDate() const
void SetStatus(const DataShareStatus &value)
DataShareAssociation & WithStatusChangeDate(const Aws::Utils::DateTime &value)
DataShareAssociation & WithConsumerRegion(Aws::String &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DataShareAssociation & WithConsumerIdentifier(Aws::String &&value)
DataShareAssociation & WithStatus(const DataShareStatus &value)
DataShareAssociation & WithStatusChangeDate(Aws::Utils::DateTime &&value)
DataShareAssociation & WithCreatedDate(Aws::Utils::DateTime &&value)
DataShareAssociation & WithStatus(DataShareStatus &&value)
const Aws::String & GetConsumerIdentifier() const
DataShareAssociation & WithCreatedDate(const Aws::Utils::DateTime &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCreatedDate(Aws::Utils::DateTime &&value)
void SetStatusChangeDate(const Aws::Utils::DateTime &value)
DataShareAssociation & WithConsumerIdentifier(const Aws::String &value)
AWS_REDSHIFT_API DataShareAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetConsumerIdentifier(const Aws::String &value)
DataShareAssociation & WithConsumerAcceptedWrites(bool value)
AWS_REDSHIFT_API DataShareAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetConsumerRegion(const Aws::String &value)
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