AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
SnapshotCopyGrant.h
Go to the documentation of this file.
1
6#pragma once
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
40 {
41 public:
45
46 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
53 inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
54
58 inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
59
63 inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
64
68 inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = std::move(value); }
69
73 inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
74
79
83 inline SnapshotCopyGrant& WithSnapshotCopyGrantName(Aws::String&& value) { SetSnapshotCopyGrantName(std::move(value)); return *this;}
84
88 inline SnapshotCopyGrant& WithSnapshotCopyGrantName(const char* value) { SetSnapshotCopyGrantName(value); return *this;}
89
90
95 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
96
101 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
102
107 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
108
113 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
114
119 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
120
125 inline SnapshotCopyGrant& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
126
131 inline SnapshotCopyGrant& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
132
137 inline SnapshotCopyGrant& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
138
139
143 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
144
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149
153 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
154
158 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
159
163 inline SnapshotCopyGrant& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
164
168 inline SnapshotCopyGrant& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
169
173 inline SnapshotCopyGrant& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
174
178 inline SnapshotCopyGrant& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
179
180 private:
181
182 Aws::String m_snapshotCopyGrantName;
183 bool m_snapshotCopyGrantNameHasBeenSet = false;
184
185 Aws::String m_kmsKeyId;
186 bool m_kmsKeyIdHasBeenSet = false;
187
188 Aws::Vector<Tag> m_tags;
189 bool m_tagsHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace Redshift
194} // namespace Aws
#define AWS_REDSHIFT_API
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSnapshotCopyGrantName(const Aws::String &value)
SnapshotCopyGrant & AddTags(const Tag &value)
AWS_REDSHIFT_API SnapshotCopyGrant(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Tag > & GetTags() const
void SetTags(Aws::Vector< Tag > &&value)
SnapshotCopyGrant & AddTags(Tag &&value)
SnapshotCopyGrant & WithKmsKeyId(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
SnapshotCopyGrant & WithKmsKeyId(const char *value)
SnapshotCopyGrant & WithSnapshotCopyGrantName(const Aws::String &value)
SnapshotCopyGrant & WithTags(Aws::Vector< Tag > &&value)
AWS_REDSHIFT_API SnapshotCopyGrant & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetKmsKeyId() const
SnapshotCopyGrant & WithKmsKeyId(const Aws::String &value)
SnapshotCopyGrant & WithSnapshotCopyGrantName(Aws::String &&value)
void SetSnapshotCopyGrantName(Aws::String &&value)
SnapshotCopyGrant & WithSnapshotCopyGrantName(const char *value)
void SetKmsKeyId(const Aws::String &value)
void SetSnapshotCopyGrantName(const char *value)
SnapshotCopyGrant & WithTags(const Aws::Vector< Tag > &value)
const Aws::String & GetSnapshotCopyGrantName() const
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