AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SortCriteria.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/OrderBy.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ACCESSANALYZER_API SortCriteria() = default;
36 AWS_ACCESSANALYZER_API SortCriteria(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ACCESSANALYZER_API SortCriteria& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
46 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
47 template<typename AttributeNameT = Aws::String>
48 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
49 template<typename AttributeNameT = Aws::String>
50 SortCriteria& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(value)); return *this;}
52
54
57 inline OrderBy GetOrderBy() const { return m_orderBy; }
58 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
59 inline void SetOrderBy(OrderBy value) { m_orderByHasBeenSet = true; m_orderBy = value; }
60 inline SortCriteria& WithOrderBy(OrderBy value) { SetOrderBy(value); return *this;}
62 private:
63
64 Aws::String m_attributeName;
65 bool m_attributeNameHasBeenSet = false;
66
67 OrderBy m_orderBy{OrderBy::NOT_SET};
68 bool m_orderByHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace AccessAnalyzer
73} // 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