AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Configuration.h
1
6#pragma once
7#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 EMRServerless
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_EMRSERVERLESS_API Configuration() = default;
41 AWS_EMRSERVERLESS_API Configuration(Aws::Utils::Json::JsonView jsonValue);
42 AWS_EMRSERVERLESS_API Configuration& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetClassification() const { return m_classification; }
51 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
52 template<typename ClassificationT = Aws::String>
53 void SetClassification(ClassificationT&& value) { m_classificationHasBeenSet = true; m_classification = std::forward<ClassificationT>(value); }
54 template<typename ClassificationT = Aws::String>
55 Configuration& WithClassification(ClassificationT&& value) { SetClassification(std::forward<ClassificationT>(value)); return *this;}
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) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
66 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
67 Configuration& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
68 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
69 Configuration& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
70 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
71 }
73
75
79 inline const Aws::Vector<Configuration>& GetConfigurations() const { return m_configurations; }
80 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
81 template<typename ConfigurationsT = Aws::Vector<Configuration>>
82 void SetConfigurations(ConfigurationsT&& value) { m_configurationsHasBeenSet = true; m_configurations = std::forward<ConfigurationsT>(value); }
83 template<typename ConfigurationsT = Aws::Vector<Configuration>>
84 Configuration& WithConfigurations(ConfigurationsT&& value) { SetConfigurations(std::forward<ConfigurationsT>(value)); return *this;}
85 template<typename ConfigurationsT = Configuration>
86 Configuration& AddConfigurations(ConfigurationsT&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace_back(std::forward<ConfigurationsT>(value)); return *this; }
88 private:
89
90 Aws::String m_classification;
91 bool m_classificationHasBeenSet = false;
92
94 bool m_propertiesHasBeenSet = false;
95
96 Aws::Vector<Configuration> m_configurations;
97 bool m_configurationsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace EMRServerless
102} // 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