AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StatisticOverride.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/databrew/GlueDataBrew_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GlueDataBrew {
21namespace Model {
22
30 public:
31 AWS_GLUEDATABREW_API StatisticOverride() = default;
32 AWS_GLUEDATABREW_API StatisticOverride(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLUEDATABREW_API StatisticOverride& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetStatistic() const { return m_statistic; }
41 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
42 template <typename StatisticT = Aws::String>
43 void SetStatistic(StatisticT&& value) {
44 m_statisticHasBeenSet = true;
45 m_statistic = std::forward<StatisticT>(value);
46 }
47 template <typename StatisticT = Aws::String>
48 StatisticOverride& WithStatistic(StatisticT&& value) {
49 SetStatistic(std::forward<StatisticT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
59 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
60 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
61 void SetParameters(ParametersT&& value) {
62 m_parametersHasBeenSet = true;
63 m_parameters = std::forward<ParametersT>(value);
64 }
65 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
66 StatisticOverride& WithParameters(ParametersT&& value) {
67 SetParameters(std::forward<ParametersT>(value));
68 return *this;
69 }
70 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
71 StatisticOverride& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
72 m_parametersHasBeenSet = true;
73 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_statistic;
79
81 bool m_statisticHasBeenSet = false;
82 bool m_parametersHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace GlueDataBrew
87} // namespace Aws
StatisticOverride & WithParameters(ParametersT &&value)
AWS_GLUEDATABREW_API StatisticOverride()=default
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
AWS_GLUEDATABREW_API StatisticOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
StatisticOverride & WithStatistic(StatisticT &&value)
StatisticOverride & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_GLUEDATABREW_API StatisticOverride(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue