AWS SDK for C++  1.9.66
AWS SDK for C++
Sort.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 AlexaForBusiness
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Sort();
39 
40 
44  inline const Aws::String& GetKey() const{ return m_key; }
45 
49  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 
54  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
55 
59  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
60 
64  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
65 
69  inline Sort& WithKey(const Aws::String& value) { SetKey(value); return *this;}
70 
74  inline Sort& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
75 
79  inline Sort& WithKey(const char* value) { SetKey(value); return *this;}
80 
81 
85  inline const SortValue& GetValue() const{ return m_value; }
86 
90  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
91 
95  inline void SetValue(const SortValue& value) { m_valueHasBeenSet = true; m_value = value; }
96 
100  inline void SetValue(SortValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
101 
105  inline Sort& WithValue(const SortValue& value) { SetValue(value); return *this;}
106 
110  inline Sort& WithValue(SortValue&& value) { SetValue(std::move(value)); return *this;}
111 
112  private:
113 
114  Aws::String m_key;
115  bool m_keyHasBeenSet;
116 
117  SortValue m_value;
118  bool m_valueHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace AlexaForBusiness
123 } // namespace Aws
Aws::AlexaForBusiness::Model::Sort::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Sort.h:49
Aws::AlexaForBusiness::Model::Sort::SetKey
void SetKey(const Aws::String &value)
Definition: Sort.h:54
SortValue.h
Aws::AlexaForBusiness::Model::Sort::SetKey
void SetKey(const char *value)
Definition: Sort.h:64
Aws::AlexaForBusiness::Model::Sort::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AlexaForBusiness::Model::Sort::Sort
Sort(Aws::Utils::Json::JsonView jsonValue)
Aws::AlexaForBusiness::Model::Sort::WithKey
Sort & WithKey(const char *value)
Definition: Sort.h:79
Aws::AlexaForBusiness::Model::Sort::WithValue
Sort & WithValue(SortValue &&value)
Definition: Sort.h:110
Aws::AlexaForBusiness::Model::Sort::operator=
Sort & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AlexaForBusiness::Model::Sort::Sort
Sort()
Aws::AlexaForBusiness::Model::Sort::SetKey
void SetKey(Aws::String &&value)
Definition: Sort.h:59
Aws::AlexaForBusiness::Model::SortValue
SortValue
Definition: SortValue.h:17
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::Sort::WithValue
Sort & WithValue(const SortValue &value)
Definition: Sort.h:105
Aws::AlexaForBusiness::Model::Sort::GetValue
const SortValue & GetValue() const
Definition: Sort.h:85
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AlexaForBusiness::Model::Sort::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Sort.h:90
AlexaForBusiness_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::Model::Sort::GetKey
const Aws::String & GetKey() const
Definition: Sort.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::Sort::SetValue
void SetValue(const SortValue &value)
Definition: Sort.h:95
Aws::AlexaForBusiness::Model::Sort
Definition: Sort.h:33
Aws::AlexaForBusiness::Model::Sort::WithKey
Sort & WithKey(const Aws::String &value)
Definition: Sort.h:69
Aws::AlexaForBusiness::Model::Sort::SetValue
void SetValue(SortValue &&value)
Definition: Sort.h:100
Aws::AlexaForBusiness::Model::Sort::WithKey
Sort & WithKey(Aws::String &&value)
Definition: Sort.h:74