AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SortCriteria.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/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 GuardDuty {
21namespace Model {
22
30 public:
31 AWS_GUARDDUTY_API SortCriteria() = default;
32 AWS_GUARDDUTY_API SortCriteria(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API SortCriteria& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
42 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
43 template <typename AttributeNameT = Aws::String>
44 void SetAttributeName(AttributeNameT&& value) {
45 m_attributeNameHasBeenSet = true;
46 m_attributeName = std::forward<AttributeNameT>(value);
47 }
48 template <typename AttributeNameT = Aws::String>
49 SortCriteria& WithAttributeName(AttributeNameT&& value) {
50 SetAttributeName(std::forward<AttributeNameT>(value));
51 return *this;
52 }
54
56
59 inline OrderBy GetOrderBy() const { return m_orderBy; }
60 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
61 inline void SetOrderBy(OrderBy value) {
62 m_orderByHasBeenSet = true;
63 m_orderBy = value;
64 }
66 SetOrderBy(value);
67 return *this;
68 }
70 private:
71 Aws::String m_attributeName;
72
73 OrderBy m_orderBy{OrderBy::NOT_SET};
74 bool m_attributeNameHasBeenSet = false;
75 bool m_orderByHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace GuardDuty
80} // namespace Aws
AWS_GUARDDUTY_API SortCriteria(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API SortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API SortCriteria()=default
SortCriteria & WithOrderBy(OrderBy value)
SortCriteria & WithAttributeName(AttributeNameT &&value)
const Aws::String & GetAttributeName() const
void SetAttributeName(AttributeNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue