AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SnapshotSortingEntity.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/redshift/model/SnapshotAttributeToSortBy.h>
10#include <aws/redshift/model/SortByOrder.h>
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:
35 AWS_REDSHIFT_API SnapshotSortingEntity();
36 AWS_REDSHIFT_API SnapshotSortingEntity(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_REDSHIFT_API SnapshotSortingEntity& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
44
47 inline const SnapshotAttributeToSortBy& GetAttribute() const{ return m_attribute; }
48 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
49 inline void SetAttribute(const SnapshotAttributeToSortBy& value) { m_attributeHasBeenSet = true; m_attribute = value; }
50 inline void SetAttribute(SnapshotAttributeToSortBy&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
51 inline SnapshotSortingEntity& WithAttribute(const SnapshotAttributeToSortBy& value) { SetAttribute(value); return *this;}
52 inline SnapshotSortingEntity& WithAttribute(SnapshotAttributeToSortBy&& value) { SetAttribute(std::move(value)); return *this;}
54
56
59 inline const SortByOrder& GetSortOrder() const{ return m_sortOrder; }
60 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
61 inline void SetSortOrder(const SortByOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
62 inline void SetSortOrder(SortByOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
63 inline SnapshotSortingEntity& WithSortOrder(const SortByOrder& value) { SetSortOrder(value); return *this;}
64 inline SnapshotSortingEntity& WithSortOrder(SortByOrder&& value) { SetSortOrder(std::move(value)); return *this;}
66 private:
67
68 SnapshotAttributeToSortBy m_attribute;
69 bool m_attributeHasBeenSet = false;
70
71 SortByOrder m_sortOrder;
72 bool m_sortOrderHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Redshift
77} // namespace Aws
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