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-containers/EMRContainers_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 EMRContainers
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_EMRCONTAINERS_API Configuration() = default;
42 AWS_EMRCONTAINERS_API Configuration(Aws::Utils::Json::JsonView jsonValue);
43 AWS_EMRCONTAINERS_API Configuration& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetClassification() const { return m_classification; }
52 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
53 template<typename ClassificationT = Aws::String>
54 void SetClassification(ClassificationT&& value) { m_classificationHasBeenSet = true; m_classification = std::forward<ClassificationT>(value); }
55 template<typename ClassificationT = Aws::String>
56 Configuration& WithClassification(ClassificationT&& value) { SetClassification(std::forward<ClassificationT>(value)); return *this;}
58
60
63 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
64 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
65 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
66 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
67 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
68 Configuration& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
69 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
70 Configuration& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
71 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
72 }
74
76
80 inline const Aws::Vector<Configuration>& GetConfigurations() const { return m_configurations; }
81 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
82 template<typename ConfigurationsT = Aws::Vector<Configuration>>
83 void SetConfigurations(ConfigurationsT&& value) { m_configurationsHasBeenSet = true; m_configurations = std::forward<ConfigurationsT>(value); }
84 template<typename ConfigurationsT = Aws::Vector<Configuration>>
85 Configuration& WithConfigurations(ConfigurationsT&& value) { SetConfigurations(std::forward<ConfigurationsT>(value)); return *this;}
86 template<typename ConfigurationsT = Configuration>
87 Configuration& AddConfigurations(ConfigurationsT&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace_back(std::forward<ConfigurationsT>(value)); return *this; }
89 private:
90
91 Aws::String m_classification;
92 bool m_classificationHasBeenSet = false;
93
95 bool m_propertiesHasBeenSet = false;
96
97 Aws::Vector<Configuration> m_configurations;
98 bool m_configurationsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace EMRContainers
103} // namespace Aws
Configuration & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
AWS_EMRCONTAINERS_API Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Configuration > & GetConfigurations() const
AWS_EMRCONTAINERS_API Configuration(Aws::Utils::Json::JsonView jsonValue)
void SetProperties(PropertiesT &&value)
const Aws::String & GetClassification() const
Configuration & WithConfigurations(ConfigurationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
void SetClassification(ClassificationT &&value)
Configuration & AddConfigurations(ConfigurationsT &&value)
AWS_EMRCONTAINERS_API Configuration()=default
Configuration & WithClassification(ClassificationT &&value)
AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConfigurations(ConfigurationsT &&value)
Configuration & 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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue