AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OrderBy.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cost-optimization-hub/model/Order.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 CostOptimizationHub
23{
24namespace Model
25{
26
33 class OrderBy
34 {
35 public:
36 AWS_COSTOPTIMIZATIONHUB_API OrderBy();
37 AWS_COSTOPTIMIZATIONHUB_API OrderBy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTOPTIMIZATIONHUB_API OrderBy& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDimension() const{ return m_dimension; }
47 inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
48 inline void SetDimension(const Aws::String& value) { m_dimensionHasBeenSet = true; m_dimension = value; }
49 inline void SetDimension(Aws::String&& value) { m_dimensionHasBeenSet = true; m_dimension = std::move(value); }
50 inline void SetDimension(const char* value) { m_dimensionHasBeenSet = true; m_dimension.assign(value); }
51 inline OrderBy& WithDimension(const Aws::String& value) { SetDimension(value); return *this;}
52 inline OrderBy& WithDimension(Aws::String&& value) { SetDimension(std::move(value)); return *this;}
53 inline OrderBy& WithDimension(const char* value) { SetDimension(value); return *this;}
55
57
60 inline const Order& GetOrder() const{ return m_order; }
61 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
62 inline void SetOrder(const Order& value) { m_orderHasBeenSet = true; m_order = value; }
63 inline void SetOrder(Order&& value) { m_orderHasBeenSet = true; m_order = std::move(value); }
64 inline OrderBy& WithOrder(const Order& value) { SetOrder(value); return *this;}
65 inline OrderBy& WithOrder(Order&& value) { SetOrder(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_dimension;
70 bool m_dimensionHasBeenSet = false;
71
72 Order m_order;
73 bool m_orderHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CostOptimizationHub
78} // namespace Aws
OrderBy & WithDimension(const Aws::String &value)
Definition OrderBy.h:51
OrderBy & WithOrder(Order &&value)
Definition OrderBy.h:65
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDimension(const Aws::String &value)
Definition OrderBy.h:48
OrderBy & WithDimension(const char *value)
Definition OrderBy.h:53
const Aws::String & GetDimension() const
Definition OrderBy.h:46
AWS_COSTOPTIMIZATIONHUB_API OrderBy(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API OrderBy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDimension(Aws::String &&value)
Definition OrderBy.h:49
void SetDimension(const char *value)
Definition OrderBy.h:50
AWS_COSTOPTIMIZATIONHUB_API OrderBy()
OrderBy & WithDimension(Aws::String &&value)
Definition OrderBy.h:52
void SetOrder(const Order &value)
Definition OrderBy.h:62
OrderBy & WithOrder(const Order &value)
Definition OrderBy.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue