AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
SortCriteria.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/OrderBy.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AccessAnalyzer {
21namespace Model {
22
29 public:
30 AWS_ACCESSANALYZER_API SortCriteria() = default;
31 AWS_ACCESSANALYZER_API SortCriteria(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ACCESSANALYZER_API SortCriteria& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
40 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
41 template <typename AttributeNameT = Aws::String>
42 void SetAttributeName(AttributeNameT&& value) {
43 m_attributeNameHasBeenSet = true;
44 m_attributeName = std::forward<AttributeNameT>(value);
45 }
46 template <typename AttributeNameT = Aws::String>
47 SortCriteria& WithAttributeName(AttributeNameT&& value) {
48 SetAttributeName(std::forward<AttributeNameT>(value));
49 return *this;
50 }
52
54
57 inline OrderBy GetOrderBy() const { return m_orderBy; }
58 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
59 inline void SetOrderBy(OrderBy value) {
60 m_orderByHasBeenSet = true;
61 m_orderBy = value;
62 }
64 SetOrderBy(value);
65 return *this;
66 }
68 private:
69 Aws::String m_attributeName;
70 bool m_attributeNameHasBeenSet = false;
71
72 OrderBy m_orderBy{OrderBy::NOT_SET};
73 bool m_orderByHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace AccessAnalyzer
78} // namespace Aws
AWS_ACCESSANALYZER_API SortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API SortCriteria(Aws::Utils::Json::JsonView jsonValue)
void SetAttributeName(AttributeNameT &&value)
SortCriteria & WithAttributeName(AttributeNameT &&value)
AWS_ACCESSANALYZER_API SortCriteria()=default
const Aws::String & GetAttributeName() const
SortCriteria & WithOrderBy(OrderBy value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue