AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
AggregationOutputItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DataZone {
20namespace Model {
21
28 public:
29 AWS_DATAZONE_API AggregationOutputItem() = default;
32 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetValue() const { return m_value; }
39 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
40 template <typename ValueT = Aws::String>
41 void SetValue(ValueT&& value) {
42 m_valueHasBeenSet = true;
43 m_value = std::forward<ValueT>(value);
44 }
45 template <typename ValueT = Aws::String>
47 SetValue(std::forward<ValueT>(value));
48 return *this;
49 }
51
53
56 inline int GetCount() const { return m_count; }
57 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
58 inline void SetCount(int value) {
59 m_countHasBeenSet = true;
60 m_count = value;
61 }
62 inline AggregationOutputItem& WithCount(int value) {
63 SetCount(value);
64 return *this;
65 }
67
69
74 inline const Aws::String& GetDisplayValue() const { return m_displayValue; }
75 inline bool DisplayValueHasBeenSet() const { return m_displayValueHasBeenSet; }
76 template <typename DisplayValueT = Aws::String>
77 void SetDisplayValue(DisplayValueT&& value) {
78 m_displayValueHasBeenSet = true;
79 m_displayValue = std::forward<DisplayValueT>(value);
80 }
81 template <typename DisplayValueT = Aws::String>
82 AggregationOutputItem& WithDisplayValue(DisplayValueT&& value) {
83 SetDisplayValue(std::forward<DisplayValueT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_value;
89
90 int m_count{0};
91
92 Aws::String m_displayValue;
93 bool m_valueHasBeenSet = false;
94 bool m_countHasBeenSet = false;
95 bool m_displayValueHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace DataZone
100} // namespace Aws
AWS_DATAZONE_API AggregationOutputItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregationOutputItem & WithDisplayValue(DisplayValueT &&value)
AggregationOutputItem & WithCount(int value)
AWS_DATAZONE_API AggregationOutputItem(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API AggregationOutputItem()=default
AggregationOutputItem & WithValue(ValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue