AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SortDefinition.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/SortOrder.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CostExplorer {
21namespace Model {
22
29 public:
30 AWS_COSTEXPLORER_API SortDefinition() = default;
31 AWS_COSTEXPLORER_API SortDefinition(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COSTEXPLORER_API SortDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetKey() const { return m_key; }
40 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
41 template <typename KeyT = Aws::String>
42 void SetKey(KeyT&& value) {
43 m_keyHasBeenSet = true;
44 m_key = std::forward<KeyT>(value);
45 }
46 template <typename KeyT = Aws::String>
47 SortDefinition& WithKey(KeyT&& value) {
48 SetKey(std::forward<KeyT>(value));
49 return *this;
50 }
52
54
57 inline SortOrder GetSortOrder() const { return m_sortOrder; }
58 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
59 inline void SetSortOrder(SortOrder value) {
60 m_sortOrderHasBeenSet = true;
61 m_sortOrder = value;
62 }
64 SetSortOrder(value);
65 return *this;
66 }
68 private:
69 Aws::String m_key;
70
71 SortOrder m_sortOrder{SortOrder::NOT_SET};
72 bool m_keyHasBeenSet = false;
73 bool m_sortOrderHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace CostExplorer
78} // 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