AWS SDK for C++  1.9.1
AWS SDK for C++
SortDefinition.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 CostExplorer
23 {
24 namespace Model
25 {
26 
33  {
34  public:
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 SortDefinition& WithKey(const Aws::String& value) { SetKey(value); return *this;}
70 
74  inline SortDefinition& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
75 
79  inline SortDefinition& WithKey(const char* value) { SetKey(value); return *this;}
80 
81 
85  inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
86 
90  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
91 
95  inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
96 
100  inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
101 
105  inline SortDefinition& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
106 
110  inline SortDefinition& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
111 
112  private:
113 
114  Aws::String m_key;
115  bool m_keyHasBeenSet;
116 
117  SortOrder m_sortOrder;
118  bool m_sortOrderHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace CostExplorer
123 } // namespace Aws
Aws::CostExplorer::Model::SortDefinition::WithKey
SortDefinition & WithKey(Aws::String &&value)
Definition: SortDefinition.h:74
Aws::CostExplorer::Model::SortDefinition::WithKey
SortDefinition & WithKey(const char *value)
Definition: SortDefinition.h:79
Aws::CostExplorer::Model::SortDefinition::SetSortOrder
void SetSortOrder(const SortOrder &value)
Definition: SortDefinition.h:95
Aws::CostExplorer::Model::SortDefinition::GetKey
const Aws::String & GetKey() const
Definition: SortDefinition.h:44
Aws::CostExplorer::Model::SortDefinition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CostExplorer::Model::SortDefinition::WithSortOrder
SortDefinition & WithSortOrder(const SortOrder &value)
Definition: SortDefinition.h:105
Aws::CostExplorer::Model::SortDefinition::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: SortDefinition.h:90
Aws::CostExplorer::Model::SortDefinition::SortDefinition
SortDefinition()
Aws::CostExplorer::Model::SortDefinition::SortDefinition
SortDefinition(Aws::Utils::Json::JsonView jsonValue)
Aws::CostExplorer::Model::SortDefinition::SetKey
void SetKey(const char *value)
Definition: SortDefinition.h:64
Aws::CostExplorer::Model::SortDefinition::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: SortDefinition.h:49
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::SortDefinition::SetKey
void SetKey(Aws::String &&value)
Definition: SortDefinition.h:59
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::CostExplorer::Model::SortDefinition::operator=
SortDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CostExplorer::Model::SortOrder
SortOrder
Definition: SortOrder.h:17
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::SortDefinition::SetKey
void SetKey(const Aws::String &value)
Definition: SortDefinition.h:54
Aws
Definition: AccessManagementClient.h:15
SortOrder.h
Aws::CostExplorer::Model::SortDefinition::WithKey
SortDefinition & WithKey(const Aws::String &value)
Definition: SortDefinition.h:69
Aws::CostExplorer::Model::SortDefinition
Definition: SortDefinition.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::SortDefinition::SetSortOrder
void SetSortOrder(SortOrder &&value)
Definition: SortDefinition.h:100
Aws::CostExplorer::Model::SortDefinition::WithSortOrder
SortDefinition & WithSortOrder(SortOrder &&value)
Definition: SortDefinition.h:110
Aws::CostExplorer::Model::SortDefinition::GetSortOrder
const SortOrder & GetSortOrder() const
Definition: SortDefinition.h:85