AWS SDK for C++

AWS SDK for C++ Version 1.11.936

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/emr-serverless/EMRServerless_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMRServerless {
22namespace Model {
23
34 public:
35 AWS_EMRSERVERLESS_API Configuration() = default;
36 AWS_EMRSERVERLESS_API Configuration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_EMRSERVERLESS_API Configuration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetClassification() const { return m_classification; }
45 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
46 template <typename ClassificationT = Aws::String>
47 void SetClassification(ClassificationT&& value) {
48 m_classificationHasBeenSet = true;
49 m_classification = std::forward<ClassificationT>(value);
50 }
51 template <typename ClassificationT = Aws::String>
52 Configuration& WithClassification(ClassificationT&& value) {
53 SetClassification(std::forward<ClassificationT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
63 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
64 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
65 void SetProperties(PropertiesT&& value) {
66 m_propertiesHasBeenSet = true;
67 m_properties = std::forward<PropertiesT>(value);
68 }
69 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
70 Configuration& WithProperties(PropertiesT&& value) {
71 SetProperties(std::forward<PropertiesT>(value));
72 return *this;
73 }
74 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
75 Configuration& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
76 m_propertiesHasBeenSet = true;
77 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::Vector<Configuration>& GetConfigurations() const { return m_configurations; }
88 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
89 template <typename ConfigurationsT = Aws::Vector<Configuration>>
90 void SetConfigurations(ConfigurationsT&& value) {
91 m_configurationsHasBeenSet = true;
92 m_configurations = std::forward<ConfigurationsT>(value);
93 }
94 template <typename ConfigurationsT = Aws::Vector<Configuration>>
95 Configuration& WithConfigurations(ConfigurationsT&& value) {
96 SetConfigurations(std::forward<ConfigurationsT>(value));
97 return *this;
98 }
99 template <typename ConfigurationsT = Configuration>
100 Configuration& AddConfigurations(ConfigurationsT&& value) {
101 m_configurationsHasBeenSet = true;
102 m_configurations.emplace_back(std::forward<ConfigurationsT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_classification;
108
110
111 Aws::Vector<Configuration> m_configurations;
112 bool m_classificationHasBeenSet = false;
113 bool m_propertiesHasBeenSet = false;
114 bool m_configurationsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace EMRServerless
119} // namespace Aws
Configuration & WithConfigurations(ConfigurationsT &&value)
AWS_EMRSERVERLESS_API Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProperties(PropertiesT &&value)
const Aws::String & GetClassification() const
const Aws::Vector< Configuration > & GetConfigurations() const
void SetClassification(ClassificationT &&value)
void SetConfigurations(ConfigurationsT &&value)
Configuration & WithProperties(PropertiesT &&value)
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMRSERVERLESS_API Configuration(Aws::Utils::Json::JsonView jsonValue)
AWS_EMRSERVERLESS_API Configuration()=default
Configuration & AddConfigurations(ConfigurationsT &&value)
Configuration & WithClassification(ClassificationT &&value)
Configuration & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
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