AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Classification.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Athena {
21namespace Model {
22
30 public:
31 AWS_ATHENA_API Classification() = default;
32 AWS_ATHENA_API Classification(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 Classification& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
59 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
60 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
61 void SetProperties(PropertiesT&& value) {
62 m_propertiesHasBeenSet = true;
63 m_properties = std::forward<PropertiesT>(value);
64 }
65 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
66 Classification& WithProperties(PropertiesT&& value) {
67 SetProperties(std::forward<PropertiesT>(value));
68 return *this;
69 }
70 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
71 Classification& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
72 m_propertiesHasBeenSet = true;
73 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_name;
79
81 bool m_nameHasBeenSet = false;
82 bool m_propertiesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Athena
87} // namespace Aws
const Aws::String & GetName() const
AWS_ATHENA_API Classification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProperties(PropertiesT &&value)
Classification & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
AWS_ATHENA_API Classification(Aws::Utils::Json::JsonView jsonValue)
Classification & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
AWS_ATHENA_API Classification()=default
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
Classification & WithProperties(PropertiesT &&value)
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