AWS SDK for C++  1.9.20
AWS SDK for C++
Environment.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lambda
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
45 
49  inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
50 
54  inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
55 
59  inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
60 
64  inline Environment& WithVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetVariables(value); return *this;}
65 
69  inline Environment& WithVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetVariables(std::move(value)); return *this;}
70 
74  inline Environment& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
75 
79  inline Environment& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
80 
84  inline Environment& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
85 
89  inline Environment& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; }
90 
94  inline Environment& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
95 
99  inline Environment& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
100 
104  inline Environment& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
105 
106  private:
107 
109  bool m_variablesHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace Lambda
114 } // namespace Aws
Aws::Lambda::Model::Environment::AddVariables
Environment & AddVariables(Aws::String &&key, Aws::String &&value)
Definition: Environment.h:89
Aws::Lambda::Model::Environment::AddVariables
Environment & AddVariables(const Aws::String &key, Aws::String &&value)
Definition: Environment.h:84
Aws::Lambda::Model::Environment::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lambda::Model::Environment::WithVariables
Environment & WithVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Environment.h:69
Aws::Lambda::Model::Environment::SetVariables
void SetVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Environment.h:59
Aws::Lambda::Model::Environment::SetVariables
void SetVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Environment.h:54
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::Environment::AddVariables
Environment & AddVariables(Aws::String &&key, const Aws::String &value)
Definition: Environment.h:79
Aws::Lambda::Model::Environment::AddVariables
Environment & AddVariables(const char *key, const char *value)
Definition: Environment.h:104
Aws::Lambda::Model::Environment::WithVariables
Environment & WithVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Environment.h:64
Aws::Lambda::Model::Environment::Environment
Environment(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Lambda::Model::Environment::AddVariables
Environment & AddVariables(const Aws::String &key, const Aws::String &value)
Definition: Environment.h:74
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lambda::Model::Environment::AddVariables
Environment & AddVariables(const char *key, Aws::String &&value)
Definition: Environment.h:94
Aws::Lambda::Model::Environment::GetVariables
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
Definition: Environment.h:44
Aws::Lambda::Model::Environment::Environment
Environment()
Aws::Lambda::Model::Environment::operator=
Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lambda::Model::Environment
Definition: Environment.h:33
Aws::Lambda::Model::Environment::VariablesHasBeenSet
bool VariablesHasBeenSet() const
Definition: Environment.h:49
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::Environment::AddVariables
Environment & AddVariables(Aws::String &&key, const char *value)
Definition: Environment.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWSMap.h
Lambda_EXPORTS.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19