AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AggregateOperation.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/model/AggFunction.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUE_API AggregateOperation() = default;
41
42
44
48 inline const Aws::Vector<Aws::String>& GetColumn() const { return m_column; }
49 inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; }
50 template<typename ColumnT = Aws::Vector<Aws::String>>
51 void SetColumn(ColumnT&& value) { m_columnHasBeenSet = true; m_column = std::forward<ColumnT>(value); }
52 template<typename ColumnT = Aws::Vector<Aws::String>>
53 AggregateOperation& WithColumn(ColumnT&& value) { SetColumn(std::forward<ColumnT>(value)); return *this;}
54 template<typename ColumnT = Aws::String>
55 AggregateOperation& AddColumn(ColumnT&& value) { m_columnHasBeenSet = true; m_column.emplace_back(std::forward<ColumnT>(value)); return *this; }
57
59
64 inline AggFunction GetAggFunc() const { return m_aggFunc; }
65 inline bool AggFuncHasBeenSet() const { return m_aggFuncHasBeenSet; }
66 inline void SetAggFunc(AggFunction value) { m_aggFuncHasBeenSet = true; m_aggFunc = value; }
67 inline AggregateOperation& WithAggFunc(AggFunction value) { SetAggFunc(value); return *this;}
69 private:
70
72 bool m_columnHasBeenSet = false;
73
75 bool m_aggFuncHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Glue
80} // namespace Aws
const Aws::Vector< Aws::String > & GetColumn() const
AWS_GLUE_API AggregateOperation(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API AggregateOperation()=default
AggregateOperation & AddColumn(ColumnT &&value)
AggregateOperation & WithAggFunc(AggFunction value)
AggregateOperation & WithColumn(ColumnT &&value)
AWS_GLUE_API AggregateOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue