AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Aggregate.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#include <aws/glue/model/AggregateOperation.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
30class Aggregate {
31 public:
32 AWS_GLUE_API Aggregate() = default;
33 AWS_GLUE_API Aggregate(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 Aggregate& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
61 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
62 template <typename InputsT = Aws::Vector<Aws::String>>
63 void SetInputs(InputsT&& value) {
64 m_inputsHasBeenSet = true;
65 m_inputs = std::forward<InputsT>(value);
66 }
67 template <typename InputsT = Aws::Vector<Aws::String>>
68 Aggregate& WithInputs(InputsT&& value) {
69 SetInputs(std::forward<InputsT>(value));
70 return *this;
71 }
72 template <typename InputsT = Aws::String>
73 Aggregate& AddInputs(InputsT&& value) {
74 m_inputsHasBeenSet = true;
75 m_inputs.emplace_back(std::forward<InputsT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetGroups() const { return m_groups; }
85 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
86 template <typename GroupsT = Aws::Vector<Aws::Vector<Aws::String>>>
87 void SetGroups(GroupsT&& value) {
88 m_groupsHasBeenSet = true;
89 m_groups = std::forward<GroupsT>(value);
90 }
91 template <typename GroupsT = Aws::Vector<Aws::Vector<Aws::String>>>
92 Aggregate& WithGroups(GroupsT&& value) {
93 SetGroups(std::forward<GroupsT>(value));
94 return *this;
95 }
96 template <typename GroupsT = Aws::Vector<Aws::String>>
97 Aggregate& AddGroups(GroupsT&& value) {
98 m_groupsHasBeenSet = true;
99 m_groups.emplace_back(std::forward<GroupsT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Vector<AggregateOperation>& GetAggs() const { return m_aggs; }
109 inline bool AggsHasBeenSet() const { return m_aggsHasBeenSet; }
110 template <typename AggsT = Aws::Vector<AggregateOperation>>
111 void SetAggs(AggsT&& value) {
112 m_aggsHasBeenSet = true;
113 m_aggs = std::forward<AggsT>(value);
114 }
115 template <typename AggsT = Aws::Vector<AggregateOperation>>
116 Aggregate& WithAggs(AggsT&& value) {
117 SetAggs(std::forward<AggsT>(value));
118 return *this;
119 }
120 template <typename AggsT = AggregateOperation>
121 Aggregate& AddAggs(AggsT&& value) {
122 m_aggsHasBeenSet = true;
123 m_aggs.emplace_back(std::forward<AggsT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_name;
129
131
133
135 bool m_nameHasBeenSet = false;
136 bool m_inputsHasBeenSet = false;
137 bool m_groupsHasBeenSet = false;
138 bool m_aggsHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Glue
143} // namespace Aws
void SetAggs(AggsT &&value)
Definition Aggregate.h:111
bool NameHasBeenSet() const
Definition Aggregate.h:42
AWS_GLUE_API Aggregate(Aws::Utils::Json::JsonView jsonValue)
void SetGroups(GroupsT &&value)
Definition Aggregate.h:87
Aggregate & AddAggs(AggsT &&value)
Definition Aggregate.h:121
Aggregate & WithName(NameT &&value)
Definition Aggregate.h:49
void SetName(NameT &&value)
Definition Aggregate.h:44
bool GroupsHasBeenSet() const
Definition Aggregate.h:85
Aggregate & AddGroups(GroupsT &&value)
Definition Aggregate.h:97
Aggregate & WithInputs(InputsT &&value)
Definition Aggregate.h:68
const Aws::String & GetName() const
Definition Aggregate.h:41
Aggregate & WithAggs(AggsT &&value)
Definition Aggregate.h:116
const Aws::Vector< Aws::String > & GetInputs() const
Definition Aggregate.h:60
const Aws::Vector< AggregateOperation > & GetAggs() const
Definition Aggregate.h:108
AWS_GLUE_API Aggregate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Vector< Aws::String > > & GetGroups() const
Definition Aggregate.h:84
void SetInputs(InputsT &&value)
Definition Aggregate.h:63
Aggregate & AddInputs(InputsT &&value)
Definition Aggregate.h:73
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Aggregate & WithGroups(GroupsT &&value)
Definition Aggregate.h:92
AWS_GLUE_API Aggregate()=default
bool InputsHasBeenSet() const
Definition Aggregate.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue