AWS SDK for C++

AWS SDK for C++ Version 1.11.856

Loading...
Searching...
No Matches
DistributionData.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29 public:
30 AWS_GLUE_API DistributionData() = default;
34
36
39 inline const Aws::Vector<Aws::String>& GetBinEdges() const { return m_binEdges; }
40 inline bool BinEdgesHasBeenSet() const { return m_binEdgesHasBeenSet; }
41 template <typename BinEdgesT = Aws::Vector<Aws::String>>
42 void SetBinEdges(BinEdgesT&& value) {
43 m_binEdgesHasBeenSet = true;
44 m_binEdges = std::forward<BinEdgesT>(value);
45 }
46 template <typename BinEdgesT = Aws::Vector<Aws::String>>
47 DistributionData& WithBinEdges(BinEdgesT&& value) {
48 SetBinEdges(std::forward<BinEdgesT>(value));
49 return *this;
50 }
51 template <typename BinEdgesT = Aws::String>
52 DistributionData& AddBinEdges(BinEdgesT&& value) {
53 m_binEdgesHasBeenSet = true;
54 m_binEdges.emplace_back(std::forward<BinEdgesT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Vector<int>& GetCount() const { return m_count; }
64 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
65 template <typename CountT = Aws::Vector<int>>
66 void SetCount(CountT&& value) {
67 m_countHasBeenSet = true;
68 m_count = std::forward<CountT>(value);
69 }
70 template <typename CountT = Aws::Vector<int>>
71 DistributionData& WithCount(CountT&& value) {
72 SetCount(std::forward<CountT>(value));
73 return *this;
74 }
75 inline DistributionData& AddCount(int value) {
76 m_countHasBeenSet = true;
77 m_count.push_back(value);
78 return *this;
79 }
81
83
86 inline const Aws::String& GetDataType() const { return m_dataType; }
87 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
88 template <typename DataTypeT = Aws::String>
89 void SetDataType(DataTypeT&& value) {
90 m_dataTypeHasBeenSet = true;
91 m_dataType = std::forward<DataTypeT>(value);
92 }
93 template <typename DataTypeT = Aws::String>
94 DistributionData& WithDataType(DataTypeT&& value) {
95 SetDataType(std::forward<DataTypeT>(value));
96 return *this;
97 }
99 private:
100 Aws::Vector<Aws::String> m_binEdges;
101
102 Aws::Vector<int> m_count;
103
104 Aws::String m_dataType;
105 bool m_binEdgesHasBeenSet = false;
106 bool m_countHasBeenSet = false;
107 bool m_dataTypeHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Glue
112} // namespace Aws
AWS_GLUE_API DistributionData(Aws::Utils::Json::JsonView jsonValue)
DistributionData & WithDataType(DataTypeT &&value)
const Aws::Vector< int > & GetCount() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDataType() const
AWS_GLUE_API DistributionData()=default
AWS_GLUE_API DistributionData & operator=(Aws::Utils::Json::JsonView jsonValue)
DistributionData & AddCount(int value)
const Aws::Vector< Aws::String > & GetBinEdges() const
void SetBinEdges(BinEdgesT &&value)
void SetDataType(DataTypeT &&value)
DistributionData & WithBinEdges(BinEdgesT &&value)
DistributionData & WithCount(CountT &&value)
DistributionData & AddBinEdges(BinEdgesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue