AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
SnapshotSortingEntity.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Redshift
23{
24namespace Model
25{
26
33 {
34 public:
38
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
46 inline const SnapshotAttributeToSortBy& GetAttribute() const{ return m_attribute; }
47
51 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
52
56 inline void SetAttribute(const SnapshotAttributeToSortBy& value) { m_attributeHasBeenSet = true; m_attribute = value; }
57
61 inline void SetAttribute(SnapshotAttributeToSortBy&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
62
66 inline SnapshotSortingEntity& WithAttribute(const SnapshotAttributeToSortBy& value) { SetAttribute(value); return *this;}
67
71 inline SnapshotSortingEntity& WithAttribute(SnapshotAttributeToSortBy&& value) { SetAttribute(std::move(value)); return *this;}
72
73
77 inline const SortByOrder& GetSortOrder() const{ return m_sortOrder; }
78
82 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
83
87 inline void SetSortOrder(const SortByOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
88
92 inline void SetSortOrder(SortByOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
93
97 inline SnapshotSortingEntity& WithSortOrder(const SortByOrder& value) { SetSortOrder(value); return *this;}
98
102 inline SnapshotSortingEntity& WithSortOrder(SortByOrder&& value) { SetSortOrder(std::move(value)); return *this;}
103
104 private:
105
106 SnapshotAttributeToSortBy m_attribute;
107 bool m_attributeHasBeenSet = false;
108
109 SortByOrder m_sortOrder;
110 bool m_sortOrderHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Redshift
115} // namespace Aws
#define AWS_REDSHIFT_API
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SnapshotSortingEntity & WithSortOrder(const SortByOrder &value)
SnapshotSortingEntity & WithAttribute(SnapshotAttributeToSortBy &&value)
AWS_REDSHIFT_API SnapshotSortingEntity(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API SnapshotSortingEntity & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotSortingEntity & WithSortOrder(SortByOrder &&value)
const SnapshotAttributeToSortBy & GetAttribute() const
void SetAttribute(SnapshotAttributeToSortBy &&value)
SnapshotSortingEntity & WithAttribute(const SnapshotAttributeToSortBy &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAttribute(const SnapshotAttributeToSortBy &value)
std::basic_ostream< char, std::char_traits< char > > OStream