AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Configuration.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticmapreduce/EMR_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMR {
22namespace Model {
23
38 public:
39 AWS_EMR_API Configuration() = default;
43
45
48 inline const Aws::String& GetClassification() const { return m_classification; }
49 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
50 template <typename ClassificationT = Aws::String>
51 void SetClassification(ClassificationT&& value) {
52 m_classificationHasBeenSet = true;
53 m_classification = std::forward<ClassificationT>(value);
54 }
55 template <typename ClassificationT = Aws::String>
56 Configuration& WithClassification(ClassificationT&& value) {
57 SetClassification(std::forward<ClassificationT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<Configuration>& GetConfigurations() const { return m_configurations; }
68 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
69 template <typename ConfigurationsT = Aws::Vector<Configuration>>
70 void SetConfigurations(ConfigurationsT&& value) {
71 m_configurationsHasBeenSet = true;
72 m_configurations = std::forward<ConfigurationsT>(value);
73 }
74 template <typename ConfigurationsT = Aws::Vector<Configuration>>
75 Configuration& WithConfigurations(ConfigurationsT&& value) {
76 SetConfigurations(std::forward<ConfigurationsT>(value));
77 return *this;
78 }
79 template <typename ConfigurationsT = Configuration>
80 Configuration& AddConfigurations(ConfigurationsT&& value) {
81 m_configurationsHasBeenSet = true;
82 m_configurations.emplace_back(std::forward<ConfigurationsT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
92 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
93 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
94 void SetProperties(PropertiesT&& value) {
95 m_propertiesHasBeenSet = true;
96 m_properties = std::forward<PropertiesT>(value);
97 }
98 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
99 Configuration& WithProperties(PropertiesT&& value) {
100 SetProperties(std::forward<PropertiesT>(value));
101 return *this;
102 }
103 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
104 Configuration& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
105 m_propertiesHasBeenSet = true;
106 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_classification;
112
113 Aws::Vector<Configuration> m_configurations;
114
116 bool m_classificationHasBeenSet = false;
117 bool m_configurationsHasBeenSet = false;
118 bool m_propertiesHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace EMR
123} // namespace Aws
AWS_EMR_API Configuration(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Configuration > & GetConfigurations() const
const Aws::String & GetClassification() const
Configuration & AddConfigurations(ConfigurationsT &&value)
Configuration & WithClassification(ClassificationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Configuration & WithConfigurations(ConfigurationsT &&value)
Configuration & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
Configuration & WithProperties(PropertiesT &&value)
void SetConfigurations(ConfigurationsT &&value)
void SetProperties(PropertiesT &&value)
void SetClassification(ClassificationT &&value)
AWS_EMR_API Configuration()=default
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue