AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
AggregationConstraint.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/cleanrooms/model/AggregationType.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 CleanRooms {
21namespace Model {
22
30 public:
31 AWS_CLEANROOMS_API AggregationConstraint() = default;
34 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetColumnName() const { return m_columnName; }
42 inline bool ColumnNameHasBeenSet() const { return m_columnNameHasBeenSet; }
43 template <typename ColumnNameT = Aws::String>
44 void SetColumnName(ColumnNameT&& value) {
45 m_columnNameHasBeenSet = true;
46 m_columnName = std::forward<ColumnNameT>(value);
47 }
48 template <typename ColumnNameT = Aws::String>
49 AggregationConstraint& WithColumnName(ColumnNameT&& value) {
50 SetColumnName(std::forward<ColumnNameT>(value));
51 return *this;
52 }
54
56
61 inline int GetMinimum() const { return m_minimum; }
62 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
63 inline void SetMinimum(int value) {
64 m_minimumHasBeenSet = true;
65 m_minimum = value;
66 }
68 SetMinimum(value);
69 return *this;
70 }
72
74
78 inline AggregationType GetType() const { return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(AggregationType value) {
81 m_typeHasBeenSet = true;
82 m_type = value;
83 }
85 SetType(value);
86 return *this;
87 }
89 private:
90 Aws::String m_columnName;
91
92 int m_minimum{0};
93
95 bool m_columnNameHasBeenSet = false;
96 bool m_minimumHasBeenSet = false;
97 bool m_typeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace CleanRooms
102} // namespace Aws
AWS_CLEANROOMS_API AggregationConstraint(Aws::Utils::Json::JsonView jsonValue)
AWS_CLEANROOMS_API AggregationConstraint()=default
AWS_CLEANROOMS_API AggregationConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregationConstraint & WithType(AggregationType value)
AggregationConstraint & WithColumnName(ColumnNameT &&value)
AggregationConstraint & WithMinimum(int value)
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue