AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Configuration.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.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 EMR
24{
25namespace Model
26{
27
42 {
43 public:
44 AWS_EMR_API Configuration() = default;
48
49
51
54 inline const Aws::String& GetClassification() const { return m_classification; }
55 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
56 template<typename ClassificationT = Aws::String>
57 void SetClassification(ClassificationT&& value) { m_classificationHasBeenSet = true; m_classification = std::forward<ClassificationT>(value); }
58 template<typename ClassificationT = Aws::String>
59 Configuration& WithClassification(ClassificationT&& value) { SetClassification(std::forward<ClassificationT>(value)); return *this;}
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) { m_configurationsHasBeenSet = true; m_configurations = std::forward<ConfigurationsT>(value); }
71 template<typename ConfigurationsT = Aws::Vector<Configuration>>
72 Configuration& WithConfigurations(ConfigurationsT&& value) { SetConfigurations(std::forward<ConfigurationsT>(value)); return *this;}
73 template<typename ConfigurationsT = Configuration>
74 Configuration& AddConfigurations(ConfigurationsT&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace_back(std::forward<ConfigurationsT>(value)); return *this; }
76
78
81 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
82 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
83 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
84 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
85 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
86 Configuration& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
87 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
88 Configuration& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
89 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
90 }
92 private:
93
94 Aws::String m_classification;
95 bool m_classificationHasBeenSet = false;
96
97 Aws::Vector<Configuration> m_configurations;
98 bool m_configurationsHasBeenSet = false;
99
101 bool m_propertiesHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace EMR
106} // 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