AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataShare.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/ResponseMetadata.h>
12#include <aws/redshift/model/DataShareAssociation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift
25{
26namespace Model
27{
28
30 {
31 public:
32 AWS_REDSHIFT_API DataShare();
33 AWS_REDSHIFT_API DataShare(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_REDSHIFT_API DataShare& 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
39
41
45 inline const Aws::String& GetDataShareArn() const{ return m_dataShareArn; }
46 inline bool DataShareArnHasBeenSet() const { return m_dataShareArnHasBeenSet; }
47 inline void SetDataShareArn(const Aws::String& value) { m_dataShareArnHasBeenSet = true; m_dataShareArn = value; }
48 inline void SetDataShareArn(Aws::String&& value) { m_dataShareArnHasBeenSet = true; m_dataShareArn = std::move(value); }
49 inline void SetDataShareArn(const char* value) { m_dataShareArnHasBeenSet = true; m_dataShareArn.assign(value); }
50 inline DataShare& WithDataShareArn(const Aws::String& value) { SetDataShareArn(value); return *this;}
51 inline DataShare& WithDataShareArn(Aws::String&& value) { SetDataShareArn(std::move(value)); return *this;}
52 inline DataShare& WithDataShareArn(const char* value) { SetDataShareArn(value); return *this;}
54
56
59 inline const Aws::String& GetProducerArn() const{ return m_producerArn; }
60 inline bool ProducerArnHasBeenSet() const { return m_producerArnHasBeenSet; }
61 inline void SetProducerArn(const Aws::String& value) { m_producerArnHasBeenSet = true; m_producerArn = value; }
62 inline void SetProducerArn(Aws::String&& value) { m_producerArnHasBeenSet = true; m_producerArn = std::move(value); }
63 inline void SetProducerArn(const char* value) { m_producerArnHasBeenSet = true; m_producerArn.assign(value); }
64 inline DataShare& WithProducerArn(const Aws::String& value) { SetProducerArn(value); return *this;}
65 inline DataShare& WithProducerArn(Aws::String&& value) { SetProducerArn(std::move(value)); return *this;}
66 inline DataShare& WithProducerArn(const char* value) { SetProducerArn(value); return *this;}
68
70
74 inline bool GetAllowPubliclyAccessibleConsumers() const{ return m_allowPubliclyAccessibleConsumers; }
75 inline bool AllowPubliclyAccessibleConsumersHasBeenSet() const { return m_allowPubliclyAccessibleConsumersHasBeenSet; }
76 inline void SetAllowPubliclyAccessibleConsumers(bool value) { m_allowPubliclyAccessibleConsumersHasBeenSet = true; m_allowPubliclyAccessibleConsumers = value; }
79
81
85 inline const Aws::Vector<DataShareAssociation>& GetDataShareAssociations() const{ return m_dataShareAssociations; }
86 inline bool DataShareAssociationsHasBeenSet() const { return m_dataShareAssociationsHasBeenSet; }
87 inline void SetDataShareAssociations(const Aws::Vector<DataShareAssociation>& value) { m_dataShareAssociationsHasBeenSet = true; m_dataShareAssociations = value; }
88 inline void SetDataShareAssociations(Aws::Vector<DataShareAssociation>&& value) { m_dataShareAssociationsHasBeenSet = true; m_dataShareAssociations = std::move(value); }
91 inline DataShare& AddDataShareAssociations(const DataShareAssociation& value) { m_dataShareAssociationsHasBeenSet = true; m_dataShareAssociations.push_back(value); return *this; }
92 inline DataShare& AddDataShareAssociations(DataShareAssociation&& value) { m_dataShareAssociationsHasBeenSet = true; m_dataShareAssociations.push_back(std::move(value)); return *this; }
94
96
99 inline const Aws::String& GetManagedBy() const{ return m_managedBy; }
100 inline bool ManagedByHasBeenSet() const { return m_managedByHasBeenSet; }
101 inline void SetManagedBy(const Aws::String& value) { m_managedByHasBeenSet = true; m_managedBy = value; }
102 inline void SetManagedBy(Aws::String&& value) { m_managedByHasBeenSet = true; m_managedBy = std::move(value); }
103 inline void SetManagedBy(const char* value) { m_managedByHasBeenSet = true; m_managedBy.assign(value); }
104 inline DataShare& WithManagedBy(const Aws::String& value) { SetManagedBy(value); return *this;}
105 inline DataShare& WithManagedBy(Aws::String&& value) { SetManagedBy(std::move(value)); return *this;}
106 inline DataShare& WithManagedBy(const char* value) { SetManagedBy(value); return *this;}
108
110
111 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
112 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
113 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
114 inline DataShare& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
115 inline DataShare& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
117 private:
118
119 Aws::String m_dataShareArn;
120 bool m_dataShareArnHasBeenSet = false;
121
122 Aws::String m_producerArn;
123 bool m_producerArnHasBeenSet = false;
124
125 bool m_allowPubliclyAccessibleConsumers;
126 bool m_allowPubliclyAccessibleConsumersHasBeenSet = false;
127
128 Aws::Vector<DataShareAssociation> m_dataShareAssociations;
129 bool m_dataShareAssociationsHasBeenSet = false;
130
131 Aws::String m_managedBy;
132 bool m_managedByHasBeenSet = false;
133
134 ResponseMetadata m_responseMetadata;
135 };
136
137} // namespace Model
138} // namespace Redshift
139} // namespace Aws
DataShare & WithManagedBy(const Aws::String &value)
Definition DataShare.h:104
const Aws::Vector< DataShareAssociation > & GetDataShareAssociations() const
Definition DataShare.h:85
DataShare & WithResponseMetadata(ResponseMetadata &&value)
Definition DataShare.h:115
void SetProducerArn(const char *value)
Definition DataShare.h:63
const Aws::String & GetDataShareArn() const
Definition DataShare.h:45
bool DataShareAssociationsHasBeenSet() const
Definition DataShare.h:86
bool DataShareArnHasBeenSet() const
Definition DataShare.h:46
void SetDataShareAssociations(Aws::Vector< DataShareAssociation > &&value)
Definition DataShare.h:88
void SetDataShareArn(const char *value)
Definition DataShare.h:49
DataShare & WithResponseMetadata(const ResponseMetadata &value)
Definition DataShare.h:114
DataShare & WithAllowPubliclyAccessibleConsumers(bool value)
Definition DataShare.h:77
DataShare & WithManagedBy(Aws::String &&value)
Definition DataShare.h:105
const ResponseMetadata & GetResponseMetadata() const
Definition DataShare.h:111
void SetResponseMetadata(ResponseMetadata &&value)
Definition DataShare.h:113
DataShare & WithProducerArn(const char *value)
Definition DataShare.h:66
void SetManagedBy(const char *value)
Definition DataShare.h:103
DataShare & WithDataShareAssociations(const Aws::Vector< DataShareAssociation > &value)
Definition DataShare.h:89
void SetProducerArn(Aws::String &&value)
Definition DataShare.h:62
bool AllowPubliclyAccessibleConsumersHasBeenSet() const
Definition DataShare.h:75
DataShare & WithDataShareArn(const char *value)
Definition DataShare.h:52
DataShare & WithDataShareAssociations(Aws::Vector< DataShareAssociation > &&value)
Definition DataShare.h:90
DataShare & AddDataShareAssociations(DataShareAssociation &&value)
Definition DataShare.h:92
DataShare & WithProducerArn(const Aws::String &value)
Definition DataShare.h:64
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAllowPubliclyAccessibleConsumers(bool value)
Definition DataShare.h:76
AWS_REDSHIFT_API DataShare()
DataShare & AddDataShareAssociations(const DataShareAssociation &value)
Definition DataShare.h:91
void SetManagedBy(Aws::String &&value)
Definition DataShare.h:102
DataShare & WithDataShareArn(Aws::String &&value)
Definition DataShare.h:51
AWS_REDSHIFT_API DataShare & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDataShareArn(Aws::String &&value)
Definition DataShare.h:48
const Aws::String & GetProducerArn() const
Definition DataShare.h:59
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API DataShare(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetManagedBy(const Aws::String &value)
Definition DataShare.h:101
void SetResponseMetadata(const ResponseMetadata &value)
Definition DataShare.h:112
void SetProducerArn(const Aws::String &value)
Definition DataShare.h:61
DataShare & WithProducerArn(Aws::String &&value)
Definition DataShare.h:65
void SetDataShareArn(const Aws::String &value)
Definition DataShare.h:47
DataShare & WithDataShareArn(const Aws::String &value)
Definition DataShare.h:50
const Aws::String & GetManagedBy() const
Definition DataShare.h:99
DataShare & WithManagedBy(const char *value)
Definition DataShare.h:106
void SetDataShareAssociations(const Aws::Vector< DataShareAssociation > &value)
Definition DataShare.h:87
bool GetAllowPubliclyAccessibleConsumers() const
Definition DataShare.h:74
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