AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
48 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
49 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
50 inline SortDefinition& WithKey(const Aws::String& value) { SetKey(value); return *this;}
51 inline SortDefinition& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
52 inline SortDefinition& WithKey(const char* value) { SetKey(value); return *this;}
54
56
59 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
60 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
61 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
62 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
63 inline SortDefinition& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
64 inline SortDefinition& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_key;
69 bool m_keyHasBeenSet = false;
70
71 SortOrder m_sortOrder;
72 bool m_sortOrderHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CostExplorer
77} // namespace Aws
SortDefinition & WithKey(Aws::String &&value)
void SetSortOrder(const SortOrder &value)
void SetKey(const Aws::String &value)
SortDefinition & WithSortOrder(const SortOrder &value)
SortDefinition & WithKey(const Aws::String &value)
const Aws::String & GetKey() const
AWS_COSTEXPLORER_API SortDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const SortOrder & GetSortOrder() const
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
SortDefinition & WithSortOrder(SortOrder &&value)
AWS_COSTEXPLORER_API SortDefinition(Aws::Utils::Json::JsonView jsonValue)
SortDefinition & WithKey(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue