AWS SDK for C++  1.8.148
AWS SDK for C++
SortCriteria.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GuardDuty
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
47 
52  inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
53 
58  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
59 
64  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
65 
70  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
71 
76  inline SortCriteria& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
77 
82  inline SortCriteria& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
83 
88  inline SortCriteria& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
89 
90 
94  inline const OrderBy& GetOrderBy() const{ return m_orderBy; }
95 
99  inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
100 
104  inline void SetOrderBy(const OrderBy& value) { m_orderByHasBeenSet = true; m_orderBy = value; }
105 
109  inline void SetOrderBy(OrderBy&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); }
110 
114  inline SortCriteria& WithOrderBy(const OrderBy& value) { SetOrderBy(value); return *this;}
115 
119  inline SortCriteria& WithOrderBy(OrderBy&& value) { SetOrderBy(std::move(value)); return *this;}
120 
121  private:
122 
123  Aws::String m_attributeName;
124  bool m_attributeNameHasBeenSet;
125 
126  OrderBy m_orderBy;
127  bool m_orderByHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace GuardDuty
132 } // namespace Aws
Aws::GuardDuty::Model::SortCriteria::OrderByHasBeenSet
bool OrderByHasBeenSet() const
Definition: SortCriteria.h:99
Aws::GuardDuty::Model::SortCriteria::SetOrderBy
void SetOrderBy(OrderBy &&value)
Definition: SortCriteria.h:109
Aws::GuardDuty::Model::SortCriteria::GetAttributeName
const Aws::String & GetAttributeName() const
Definition: SortCriteria.h:46
Aws::GuardDuty::Model::SortCriteria::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::SortCriteria::SetAttributeName
void SetAttributeName(Aws::String &&value)
Definition: SortCriteria.h:64
Aws::GuardDuty::Model::SortCriteria::WithAttributeName
SortCriteria & WithAttributeName(const Aws::String &value)
Definition: SortCriteria.h:76
GuardDuty_EXPORTS.h
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::SortCriteria::SetAttributeName
void SetAttributeName(const char *value)
Definition: SortCriteria.h:70
Aws::GuardDuty::Model::OrderBy
OrderBy
Definition: OrderBy.h:17
Aws::GuardDuty::Model::SortCriteria::WithAttributeName
SortCriteria & WithAttributeName(Aws::String &&value)
Definition: SortCriteria.h:82
Aws::GuardDuty::Model::SortCriteria::SetOrderBy
void SetOrderBy(const OrderBy &value)
Definition: SortCriteria.h:104
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::GuardDuty::Model::SortCriteria::operator=
SortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::SortCriteria::WithOrderBy
SortCriteria & WithOrderBy(OrderBy &&value)
Definition: SortCriteria.h:119
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::SortCriteria::AttributeNameHasBeenSet
bool AttributeNameHasBeenSet() const
Definition: SortCriteria.h:52
Aws::GuardDuty::Model::SortCriteria::SetAttributeName
void SetAttributeName(const Aws::String &value)
Definition: SortCriteria.h:58
Aws::GuardDuty::Model::SortCriteria::SortCriteria
SortCriteria(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::SortCriteria::WithOrderBy
SortCriteria & WithOrderBy(const OrderBy &value)
Definition: SortCriteria.h:114
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::SortCriteria::GetOrderBy
const OrderBy & GetOrderBy() const
Definition: SortCriteria.h:94
OrderBy.h
Aws::GuardDuty::Model::SortCriteria::WithAttributeName
SortCriteria & WithAttributeName(const char *value)
Definition: SortCriteria.h:88
Aws::GuardDuty::Model::SortCriteria
Definition: SortCriteria.h:34
Aws::GuardDuty::Model::SortCriteria::SortCriteria
SortCriteria()