AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SortDefinition.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ce/model/SortOrder.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CostExplorer
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_COSTEXPLORER_API SortDefinition() = default;
36 AWS_COSTEXPLORER_API SortDefinition(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COSTEXPLORER_API SortDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetKey() const { return m_key; }
46 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
47 template<typename KeyT = Aws::String>
48 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
49 template<typename KeyT = Aws::String>
50 SortDefinition& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
52
54
57 inline SortOrder GetSortOrder() const { return m_sortOrder; }
58 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
59 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
60 inline SortDefinition& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
62 private:
63
64 Aws::String m_key;
65 bool m_keyHasBeenSet = false;
66
67 SortOrder m_sortOrder{SortOrder::NOT_SET};
68 bool m_sortOrderHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace CostExplorer
73} // namespace Aws
AWS_COSTEXPLORER_API SortDefinition()=default
SortDefinition & WithKey(KeyT &&value)
const Aws::String & GetKey() const
SortDefinition & WithSortOrder(SortOrder value)
AWS_COSTEXPLORER_API SortDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTEXPLORER_API SortDefinition(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue