AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AggregationConstraint.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cleanrooms/model/AggregationType.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 CleanRooms
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLEANROOMS_API AggregationConstraint() = default;
39 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetColumnName() const { return m_columnName; }
48 inline bool ColumnNameHasBeenSet() const { return m_columnNameHasBeenSet; }
49 template<typename ColumnNameT = Aws::String>
50 void SetColumnName(ColumnNameT&& value) { m_columnNameHasBeenSet = true; m_columnName = std::forward<ColumnNameT>(value); }
51 template<typename ColumnNameT = Aws::String>
52 AggregationConstraint& WithColumnName(ColumnNameT&& value) { SetColumnName(std::forward<ColumnNameT>(value)); return *this;}
54
56
61 inline int GetMinimum() const { return m_minimum; }
62 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
63 inline void SetMinimum(int value) { m_minimumHasBeenSet = true; m_minimum = value; }
64 inline AggregationConstraint& WithMinimum(int value) { SetMinimum(value); return *this;}
66
68
72 inline AggregationType GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(AggregationType value) { m_typeHasBeenSet = true; m_type = value; }
75 inline AggregationConstraint& WithType(AggregationType value) { SetType(value); return *this;}
77 private:
78
79 Aws::String m_columnName;
80 bool m_columnNameHasBeenSet = false;
81
82 int m_minimum{0};
83 bool m_minimumHasBeenSet = false;
84
86 bool m_typeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CleanRooms
91} // 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