AWS SDK for C++  1.9.19
AWS SDK for C++
Configuration.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace EMR
25 {
26 namespace Model
27 {
28 
43  {
44  public:
49 
50 
54  inline const Aws::String& GetClassification() const{ return m_classification; }
55 
59  inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
60 
64  inline void SetClassification(const Aws::String& value) { m_classificationHasBeenSet = true; m_classification = value; }
65 
69  inline void SetClassification(Aws::String&& value) { m_classificationHasBeenSet = true; m_classification = std::move(value); }
70 
74  inline void SetClassification(const char* value) { m_classificationHasBeenSet = true; m_classification.assign(value); }
75 
79  inline Configuration& WithClassification(const Aws::String& value) { SetClassification(value); return *this;}
80 
84  inline Configuration& WithClassification(Aws::String&& value) { SetClassification(std::move(value)); return *this;}
85 
89  inline Configuration& WithClassification(const char* value) { SetClassification(value); return *this;}
90 
91 
96  inline const Aws::Vector<Configuration>& GetConfigurations() const{ return m_configurations; }
97 
102  inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
103 
108  inline void SetConfigurations(const Aws::Vector<Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
109 
114  inline void SetConfigurations(Aws::Vector<Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = std::move(value); }
115 
120  inline Configuration& WithConfigurations(const Aws::Vector<Configuration>& value) { SetConfigurations(value); return *this;}
121 
126  inline Configuration& WithConfigurations(Aws::Vector<Configuration>&& value) { SetConfigurations(std::move(value)); return *this;}
127 
132  inline Configuration& AddConfigurations(const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; }
133 
138  inline Configuration& AddConfigurations(Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(std::move(value)); return *this; }
139 
140 
144  inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
145 
149  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
150 
154  inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
155 
159  inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
160 
164  inline Configuration& WithProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetProperties(value); return *this;}
165 
169  inline Configuration& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
170 
174  inline Configuration& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
175 
179  inline Configuration& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
180 
184  inline Configuration& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
185 
189  inline Configuration& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
190 
194  inline Configuration& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
195 
199  inline Configuration& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
200 
204  inline Configuration& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
205 
206  private:
207 
208  Aws::String m_classification;
209  bool m_classificationHasBeenSet;
210 
211  Aws::Vector<Configuration> m_configurations;
212  bool m_configurationsHasBeenSet;
213 
215  bool m_propertiesHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace EMR
220 } // namespace Aws
Aws::EMR::Model::Configuration::AddProperties
Configuration & AddProperties(Aws::String &&key, Aws::String &&value)
Definition: Configuration.h:189
Aws::EMR::Model::Configuration::AddProperties
Configuration & AddProperties(const char *key, Aws::String &&value)
Definition: Configuration.h:194
Aws::EMR::Model::Configuration::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: Configuration.h:149
Aws::EMR::Model::Configuration::Configuration
Configuration(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::Configuration::WithClassification
Configuration & WithClassification(Aws::String &&value)
Definition: Configuration.h:84
Aws::EMR::Model::Configuration::WithClassification
Configuration & WithClassification(const Aws::String &value)
Definition: Configuration.h:79
Aws::EMR::Model::Configuration
Definition: Configuration.h:43
Aws::EMR::Model::Configuration::GetClassification
const Aws::String & GetClassification() const
Definition: Configuration.h:54
EMR_EXPORTS.h
Aws::EMR::Model::Configuration::WithConfigurations
Configuration & WithConfigurations(const Aws::Vector< Configuration > &value)
Definition: Configuration.h:120
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::Configuration::AddConfigurations
Configuration & AddConfigurations(const Configuration &value)
Definition: Configuration.h:132
Aws::EMR::Model::Configuration::GetConfigurations
const Aws::Vector< Configuration > & GetConfigurations() const
Definition: Configuration.h:96
AWSVector.h
Aws::EMR::Model::Configuration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::Configuration::Configuration
Configuration()
Aws::EMR::Model::Configuration::SetConfigurations
void SetConfigurations(Aws::Vector< Configuration > &&value)
Definition: Configuration.h:114
Aws::EMR::Model::Configuration::operator=
Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::Configuration::SetProperties
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Configuration.h:159
Aws::EMR::Model::Configuration::WithConfigurations
Configuration & WithConfigurations(Aws::Vector< Configuration > &&value)
Definition: Configuration.h:126
Configuration.h
Aws::EMR::Model::Configuration::WithProperties
Configuration & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Configuration.h:164
Aws::EMR::Model::Configuration::AddProperties
Configuration & AddProperties(Aws::String &&key, const Aws::String &value)
Definition: Configuration.h:179
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::Configuration::SetProperties
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Configuration.h:154
Aws::EMR::Model::Configuration::AddProperties
Configuration & AddProperties(const char *key, const char *value)
Definition: Configuration.h:204
Aws::EMR::Model::Configuration::SetClassification
void SetClassification(const Aws::String &value)
Definition: Configuration.h:64
Aws::EMR::Model::Configuration::WithClassification
Configuration & WithClassification(const char *value)
Definition: Configuration.h:89
Aws::EMR::Model::Configuration::AddConfigurations
Configuration & AddConfigurations(Configuration &&value)
Definition: Configuration.h:138
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::Configuration::SetClassification
void SetClassification(const char *value)
Definition: Configuration.h:74
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::Configuration::SetConfigurations
void SetConfigurations(const Aws::Vector< Configuration > &value)
Definition: Configuration.h:108
Aws::EMR::Model::Configuration::GetProperties
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Definition: Configuration.h:144
Aws::EMR::Model::Configuration::AddProperties
Configuration & AddProperties(const Aws::String &key, Aws::String &&value)
Definition: Configuration.h:184
Aws::EMR::Model::Configuration::AddProperties
Configuration & AddProperties(Aws::String &&key, const char *value)
Definition: Configuration.h:199
Aws::EMR::Model::Configuration::ClassificationHasBeenSet
bool ClassificationHasBeenSet() const
Definition: Configuration.h:59
Aws::EMR::Model::Configuration::ConfigurationsHasBeenSet
bool ConfigurationsHasBeenSet() const
Definition: Configuration.h:102
Aws::EMR::Model::Configuration::WithProperties
Configuration & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Configuration.h:169
AWSMap.h
Aws::EMR::Model::Configuration::SetClassification
void SetClassification(Aws::String &&value)
Definition: Configuration.h:69
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::EMR::Model::Configuration::AddProperties
Configuration & AddProperties(const Aws::String &key, const Aws::String &value)
Definition: Configuration.h:174