AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetColumnName(const Aws::String& value) { m_columnNameHasBeenSet = true; m_columnName = value; }
50 inline void SetColumnName(Aws::String&& value) { m_columnNameHasBeenSet = true; m_columnName = std::move(value); }
51 inline void SetColumnName(const char* value) { m_columnNameHasBeenSet = true; m_columnName.assign(value); }
52 inline AggregationConstraint& WithColumnName(const Aws::String& value) { SetColumnName(value); return *this;}
53 inline AggregationConstraint& WithColumnName(Aws::String&& value) { SetColumnName(std::move(value)); return *this;}
54 inline AggregationConstraint& WithColumnName(const char* value) { SetColumnName(value); return *this;}
56
58
63 inline int GetMinimum() const{ return m_minimum; }
64 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
65 inline void SetMinimum(int value) { m_minimumHasBeenSet = true; m_minimum = value; }
66 inline AggregationConstraint& WithMinimum(int value) { SetMinimum(value); return *this;}
68
70
74 inline const AggregationType& GetType() const{ return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(const AggregationType& value) { m_typeHasBeenSet = true; m_type = value; }
77 inline void SetType(AggregationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
78 inline AggregationConstraint& WithType(const AggregationType& value) { SetType(value); return *this;}
79 inline AggregationConstraint& WithType(AggregationType&& value) { SetType(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_columnName;
84 bool m_columnNameHasBeenSet = false;
85
86 int m_minimum;
87 bool m_minimumHasBeenSet = false;
88
89 AggregationType m_type;
90 bool m_typeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CleanRooms
95} // namespace Aws
AggregationConstraint & WithColumnName(Aws::String &&value)
AWS_CLEANROOMS_API AggregationConstraint(Aws::Utils::Json::JsonView jsonValue)
AWS_CLEANROOMS_API AggregationConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregationConstraint & WithMinimum(int value)
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
AggregationConstraint & WithColumnName(const Aws::String &value)
AggregationConstraint & WithType(const AggregationType &value)
AggregationConstraint & WithColumnName(const char *value)
AggregationConstraint & WithType(AggregationType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue