AWS SDK for C++  0.14.3
AWS SDK for C++
Configuration.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace EMR
32 {
33 namespace Model
34 {
35 
45  {
46  public:
47  Configuration();
49  Configuration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
50  Aws::Utils::Json::JsonValue Jsonize() const;
51 
57  inline const Aws::String& GetClassification() const{ return m_classification; }
58 
64  inline void SetClassification(const Aws::String& value) { m_classificationHasBeenSet = true; m_classification = value; }
65 
71  inline void SetClassification(Aws::String&& value) { m_classificationHasBeenSet = true; m_classification = value; }
72 
78  inline void SetClassification(const char* value) { m_classificationHasBeenSet = true; m_classification.assign(value); }
79 
85  inline Configuration& WithClassification(const Aws::String& value) { SetClassification(value); return *this;}
86 
92  inline Configuration& WithClassification(Aws::String&& value) { SetClassification(value); return *this;}
93 
99  inline Configuration& WithClassification(const char* value) { SetClassification(value); return *this;}
100 
104  inline const Aws::Vector<Configuration>& GetConfigurations() const{ return m_configurations; }
105 
109  inline void SetConfigurations(const Aws::Vector<Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
110 
114  inline void SetConfigurations(Aws::Vector<Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
115 
119  inline Configuration& WithConfigurations(const Aws::Vector<Configuration>& value) { SetConfigurations(value); return *this;}
120 
124  inline Configuration& WithConfigurations(Aws::Vector<Configuration>&& value) { SetConfigurations(value); return *this;}
125 
129  inline Configuration& AddConfigurations(const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; }
130 
134  inline Configuration& AddConfigurations(Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; }
135 
139  inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
140 
144  inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
145 
149  inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = value; }
150 
154  inline Configuration& WithProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetProperties(value); return *this;}
155 
159  inline Configuration& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(value); return *this;}
160 
164  inline Configuration& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
165 
169  inline Configuration& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
170 
174  inline Configuration& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
175 
179  inline Configuration& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
180 
184  inline Configuration& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
185 
189  inline Configuration& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
190 
194  inline Configuration& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties[key] = value; return *this; }
195 
196  private:
197  Aws::String m_classification;
198  bool m_classificationHasBeenSet;
199  Aws::Vector<Configuration> m_configurations;
200  bool m_configurationsHasBeenSet;
202  bool m_propertiesHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace EMR
207 } // namespace Aws
Configuration & WithClassification(Aws::String &&value)
Definition: Configuration.h:92
Configuration & WithClassification(const Aws::String &value)
Definition: Configuration.h:85
const Aws::Vector< Configuration > & GetConfigurations() const
Configuration & WithClassification(const char *value)
Definition: Configuration.h:99
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
Configuration & AddProperties(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Configuration & AddProperties(const char *key, Aws::String &&value)
void SetConfigurations(const Aws::Vector< Configuration > &value)
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
Configuration & WithConfigurations(const Aws::Vector< Configuration > &value)
Configuration & AddProperties(const char *key, const char *value)
const Aws::String & GetClassification() const
Definition: Configuration.h:57
void SetClassification(const Aws::String &value)
Definition: Configuration.h:64
Configuration & AddProperties(Aws::String &&key, const Aws::String &value)
Configuration & AddConfigurations(Configuration &&value)
void SetClassification(Aws::String &&value)
Definition: Configuration.h:71
Configuration & AddConfigurations(const Configuration &value)
void SetConfigurations(Aws::Vector< Configuration > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Configuration & WithConfigurations(Aws::Vector< Configuration > &&value)
Configuration & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
Configuration & AddProperties(Aws::String &&key, const char *value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
void SetClassification(const char *value)
Definition: Configuration.h:78
Configuration & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
Configuration & AddProperties(const Aws::String &key, const Aws::String &value)
JSON (JavaScript Object Notation).
Configuration & AddProperties(Aws::String &&key, Aws::String &&value)