AWS SDK for C++  1.9.104
AWS SDK for C++
SnapshotSortingEntity.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace Redshift
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  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;
108 
109  SortByOrder m_sortOrder;
110  bool m_sortOrderHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace Redshift
115 } // namespace Aws
Aws::Redshift::Model::SnapshotSortingEntity::SetSortOrder
void SetSortOrder(const SortByOrder &value)
Definition: SnapshotSortingEntity.h:87
Aws::Redshift::Model::SnapshotSortingEntity::operator=
SnapshotSortingEntity & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SortByOrder.h
Aws::Redshift::Model::SnapshotSortingEntity::SnapshotSortingEntity
SnapshotSortingEntity()
Aws::Redshift::Model::SortByOrder
SortByOrder
Definition: SortByOrder.h:17
Aws::Redshift::Model::SnapshotSortingEntity::GetSortOrder
const SortByOrder & GetSortOrder() const
Definition: SnapshotSortingEntity.h:77
AWSStreamFwd.h
Aws::Redshift::Model::SnapshotSortingEntity::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::SnapshotSortingEntity::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: SnapshotSortingEntity.h:82
Aws::Redshift::Model::SnapshotSortingEntity::SetAttribute
void SetAttribute(SnapshotAttributeToSortBy &&value)
Definition: SnapshotSortingEntity.h:61
Aws::Redshift::Model::SnapshotSortingEntity::SetAttribute
void SetAttribute(const SnapshotAttributeToSortBy &value)
Definition: SnapshotSortingEntity.h:56
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::SnapshotSortingEntity::WithSortOrder
SnapshotSortingEntity & WithSortOrder(const SortByOrder &value)
Definition: SnapshotSortingEntity.h:97
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::SnapshotSortingEntity::SnapshotSortingEntity
SnapshotSortingEntity(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::SnapshotSortingEntity::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: SnapshotSortingEntity.h:51
Aws::Redshift::Model::SnapshotSortingEntity::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::SnapshotSortingEntity::WithAttribute
SnapshotSortingEntity & WithAttribute(const SnapshotAttributeToSortBy &value)
Definition: SnapshotSortingEntity.h:66
Aws::Redshift::Model::SnapshotSortingEntity
Definition: SnapshotSortingEntity.h:33
Aws::Redshift::Model::SnapshotSortingEntity::SetSortOrder
void SetSortOrder(SortByOrder &&value)
Definition: SnapshotSortingEntity.h:92
Aws::Redshift::Model::SnapshotAttributeToSortBy
SnapshotAttributeToSortBy
Definition: SnapshotAttributeToSortBy.h:17
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
SnapshotAttributeToSortBy.h
Aws::Redshift::Model::SnapshotSortingEntity::WithSortOrder
SnapshotSortingEntity & WithSortOrder(SortByOrder &&value)
Definition: SnapshotSortingEntity.h:102
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::SnapshotSortingEntity::GetAttribute
const SnapshotAttributeToSortBy & GetAttribute() const
Definition: SnapshotSortingEntity.h:46
Aws::Redshift::Model::SnapshotSortingEntity::WithAttribute
SnapshotSortingEntity & WithAttribute(SnapshotAttributeToSortBy &&value)
Definition: SnapshotSortingEntity.h:71