AWS SDK for C++  1.9.159
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 AccessAnalyzer
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
45 
49  inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
50 
54  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
55 
59  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
60 
64  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
65 
69  inline SortCriteria& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
70 
74  inline SortCriteria& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
75 
79  inline SortCriteria& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
80 
81 
85  inline const OrderBy& GetOrderBy() const{ return m_orderBy; }
86 
90  inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
91 
95  inline void SetOrderBy(const OrderBy& value) { m_orderByHasBeenSet = true; m_orderBy = value; }
96 
100  inline void SetOrderBy(OrderBy&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); }
101 
105  inline SortCriteria& WithOrderBy(const OrderBy& value) { SetOrderBy(value); return *this;}
106 
110  inline SortCriteria& WithOrderBy(OrderBy&& value) { SetOrderBy(std::move(value)); return *this;}
111 
112  private:
113 
114  Aws::String m_attributeName;
115  bool m_attributeNameHasBeenSet;
116 
117  OrderBy m_orderBy;
118  bool m_orderByHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace AccessAnalyzer
123 } // namespace Aws
Aws::AccessAnalyzer::Model::SortCriteria::SetAttributeName
void SetAttributeName(const char *value)
Definition: SortCriteria.h:64
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::SortCriteria::OrderByHasBeenSet
bool OrderByHasBeenSet() const
Definition: SortCriteria.h:90
Aws::AccessAnalyzer::Model::SortCriteria::SetOrderBy
void SetOrderBy(OrderBy &&value)
Definition: SortCriteria.h:100
Aws::AccessAnalyzer::Model::SortCriteria::WithAttributeName
SortCriteria & WithAttributeName(Aws::String &&value)
Definition: SortCriteria.h:74
Aws::AccessAnalyzer::Model::SortCriteria::SetAttributeName
void SetAttributeName(const Aws::String &value)
Definition: SortCriteria.h:54
Aws::AccessAnalyzer::Model::SortCriteria::SetOrderBy
void SetOrderBy(const OrderBy &value)
Definition: SortCriteria.h:95
Aws::AccessAnalyzer::Model::SortCriteria::GetOrderBy
const OrderBy & GetOrderBy() const
Definition: SortCriteria.h:85
Aws::AccessAnalyzer::Model::SortCriteria
Definition: SortCriteria.h:33
Aws::AccessAnalyzer::Model::OrderBy
OrderBy
Definition: OrderBy.h:17
Aws::AccessAnalyzer::Model::SortCriteria::WithAttributeName
SortCriteria & WithAttributeName(const char *value)
Definition: SortCriteria.h:79
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::AccessAnalyzer::Model::SortCriteria::WithOrderBy
SortCriteria & WithOrderBy(OrderBy &&value)
Definition: SortCriteria.h:110
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::SortCriteria::SortCriteria
SortCriteria()
Aws::AccessAnalyzer::Model::SortCriteria::WithOrderBy
SortCriteria & WithOrderBy(const OrderBy &value)
Definition: SortCriteria.h:105
Aws::AccessAnalyzer::Model::SortCriteria::operator=
SortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::SortCriteria::AttributeNameHasBeenSet
bool AttributeNameHasBeenSet() const
Definition: SortCriteria.h:49
Aws::AccessAnalyzer::Model::SortCriteria::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::SortCriteria::WithAttributeName
SortCriteria & WithAttributeName(const Aws::String &value)
Definition: SortCriteria.h:69
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::SortCriteria::GetAttributeName
const Aws::String & GetAttributeName() const
Definition: SortCriteria.h:44
OrderBy.h
Aws::AccessAnalyzer::Model::SortCriteria::SortCriteria
SortCriteria(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::SortCriteria::SetAttributeName
void SetAttributeName(Aws::String &&value)
Definition: SortCriteria.h:59