AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SortCriteria.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9#include <aws/macie2/model/OrderBy.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Macie2 {
21namespace Model {
22
30 public:
31 AWS_MACIE2_API SortCriteria() = default;
32 AWS_MACIE2_API SortCriteria(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
44 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
45 template <typename AttributeNameT = Aws::String>
46 void SetAttributeName(AttributeNameT&& value) {
47 m_attributeNameHasBeenSet = true;
48 m_attributeName = std::forward<AttributeNameT>(value);
49 }
50 template <typename AttributeNameT = Aws::String>
51 SortCriteria& WithAttributeName(AttributeNameT&& value) {
52 SetAttributeName(std::forward<AttributeNameT>(value));
53 return *this;
54 }
56
58
63 inline OrderBy GetOrderBy() const { return m_orderBy; }
64 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
65 inline void SetOrderBy(OrderBy value) {
66 m_orderByHasBeenSet = true;
67 m_orderBy = value;
68 }
70 SetOrderBy(value);
71 return *this;
72 }
74 private:
75 Aws::String m_attributeName;
76
77 OrderBy m_orderBy{OrderBy::NOT_SET};
78 bool m_attributeNameHasBeenSet = false;
79 bool m_orderByHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Macie2
84} // namespace Aws
AWS_MACIE2_API SortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API SortCriteria()=default
void SetOrderBy(OrderBy value)
const Aws::String & GetAttributeName() const
SortCriteria & WithOrderBy(OrderBy value)
void SetAttributeName(AttributeNameT &&value)
SortCriteria & WithAttributeName(AttributeNameT &&value)
AWS_MACIE2_API SortCriteria(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue