AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ServiceIntegrationsUnion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10#include <aws/redshift/model/LakeFormationScopeUnion.h>
11#include <aws/redshift/model/RedshiftScopeUnion.h>
12#include <aws/redshift/model/S3AccessGrantsScopeUnion.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Redshift {
23namespace Model {
24
31 public:
32 AWS_REDSHIFT_API ServiceIntegrationsUnion() = default;
33 AWS_REDSHIFT_API ServiceIntegrationsUnion(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
40
43 inline const Aws::Vector<LakeFormationScopeUnion>& GetLakeFormation() const { return m_lakeFormation; }
44 inline bool LakeFormationHasBeenSet() const { return m_lakeFormationHasBeenSet; }
45 template <typename LakeFormationT = Aws::Vector<LakeFormationScopeUnion>>
46 void SetLakeFormation(LakeFormationT&& value) {
47 m_lakeFormationHasBeenSet = true;
48 m_lakeFormation = std::forward<LakeFormationT>(value);
49 }
50 template <typename LakeFormationT = Aws::Vector<LakeFormationScopeUnion>>
52 SetLakeFormation(std::forward<LakeFormationT>(value));
53 return *this;
54 }
55 template <typename LakeFormationT = LakeFormationScopeUnion>
56 ServiceIntegrationsUnion& AddLakeFormation(LakeFormationT&& value) {
57 m_lakeFormationHasBeenSet = true;
58 m_lakeFormation.emplace_back(std::forward<LakeFormationT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<S3AccessGrantsScopeUnion>& GetS3AccessGrants() const { return m_s3AccessGrants; }
68 inline bool S3AccessGrantsHasBeenSet() const { return m_s3AccessGrantsHasBeenSet; }
69 template <typename S3AccessGrantsT = Aws::Vector<S3AccessGrantsScopeUnion>>
70 void SetS3AccessGrants(S3AccessGrantsT&& value) {
71 m_s3AccessGrantsHasBeenSet = true;
72 m_s3AccessGrants = std::forward<S3AccessGrantsT>(value);
73 }
74 template <typename S3AccessGrantsT = Aws::Vector<S3AccessGrantsScopeUnion>>
75 ServiceIntegrationsUnion& WithS3AccessGrants(S3AccessGrantsT&& value) {
76 SetS3AccessGrants(std::forward<S3AccessGrantsT>(value));
77 return *this;
78 }
79 template <typename S3AccessGrantsT = S3AccessGrantsScopeUnion>
80 ServiceIntegrationsUnion& AddS3AccessGrants(S3AccessGrantsT&& value) {
81 m_s3AccessGrantsHasBeenSet = true;
82 m_s3AccessGrants.emplace_back(std::forward<S3AccessGrantsT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Vector<RedshiftScopeUnion>& GetRedshift() const { return m_redshift; }
92 inline bool RedshiftHasBeenSet() const { return m_redshiftHasBeenSet; }
93 template <typename RedshiftT = Aws::Vector<RedshiftScopeUnion>>
94 void SetRedshift(RedshiftT&& value) {
95 m_redshiftHasBeenSet = true;
96 m_redshift = std::forward<RedshiftT>(value);
97 }
98 template <typename RedshiftT = Aws::Vector<RedshiftScopeUnion>>
100 SetRedshift(std::forward<RedshiftT>(value));
101 return *this;
102 }
103 template <typename RedshiftT = RedshiftScopeUnion>
105 m_redshiftHasBeenSet = true;
106 m_redshift.emplace_back(std::forward<RedshiftT>(value));
107 return *this;
108 }
110 private:
112
114
116 bool m_lakeFormationHasBeenSet = false;
117 bool m_s3AccessGrantsHasBeenSet = false;
118 bool m_redshiftHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Redshift
123} // namespace Aws
ServiceIntegrationsUnion & AddLakeFormation(LakeFormationT &&value)
ServiceIntegrationsUnion & WithLakeFormation(LakeFormationT &&value)
ServiceIntegrationsUnion & AddRedshift(RedshiftT &&value)
ServiceIntegrationsUnion & WithRedshift(RedshiftT &&value)
AWS_REDSHIFT_API ServiceIntegrationsUnion()=default
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_REDSHIFT_API ServiceIntegrationsUnion(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API ServiceIntegrationsUnion & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< LakeFormationScopeUnion > & GetLakeFormation() const
const Aws::Vector< S3AccessGrantsScopeUnion > & GetS3AccessGrants() const
const Aws::Vector< RedshiftScopeUnion > & GetRedshift() const
ServiceIntegrationsUnion & WithS3AccessGrants(S3AccessGrantsT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ServiceIntegrationsUnion & AddS3AccessGrants(S3AccessGrantsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream