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/Tag.h>
56 template<
typename SnapshotCopyGrantNameT = Aws::String>
57 void SetSnapshotCopyGrantName(SnapshotCopyGrantNameT&& value) { m_snapshotCopyGrantNameHasBeenSet =
true; m_snapshotCopyGrantName = std::forward<SnapshotCopyGrantNameT>(value); }
58 template<
typename SnapshotCopyGrantNameT = Aws::String>
69 template<
typename KmsKeyIdT = Aws::String>
70 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
71 template<
typename KmsKeyIdT = Aws::String>
81 template<
typename TagsT = Aws::Vector<Tag>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
83 template<
typename TagsT = Aws::Vector<Tag>>
85 template<
typename TagsT = Tag>
86 SnapshotCopyGrant&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
91 bool m_snapshotCopyGrantNameHasBeenSet =
false;
94 bool m_kmsKeyIdHasBeenSet =
false;
97 bool m_tagsHasBeenSet =
false;
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotCopyGrant & AddTags(TagsT &&value)
AWS_REDSHIFT_API SnapshotCopyGrant(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SnapshotCopyGrantNameHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
SnapshotCopyGrant & WithTags(TagsT &&value)
bool TagsHasBeenSet() const
bool KmsKeyIdHasBeenSet() const
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(KmsKeyIdT &&value)
AWS_REDSHIFT_API SnapshotCopyGrant()=default
void SetSnapshotCopyGrantName(SnapshotCopyGrantNameT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
SnapshotCopyGrant & WithSnapshotCopyGrantName(SnapshotCopyGrantNameT &&value)
void SetTags(TagsT &&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