AWS SDK for C++  1.9.20
AWS SDK for C++
EnvironmentResponse.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Lambda
24 {
25 namespace Model
26 {
27 
37  {
38  public:
43 
44 
48  inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
49 
53  inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
54 
58  inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
59 
63  inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
64 
68  inline EnvironmentResponse& WithVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetVariables(value); return *this;}
69 
73  inline EnvironmentResponse& WithVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetVariables(std::move(value)); return *this;}
74 
78  inline EnvironmentResponse& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
79 
83  inline EnvironmentResponse& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
84 
88  inline EnvironmentResponse& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
89 
93  inline EnvironmentResponse& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; }
94 
98  inline EnvironmentResponse& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
99 
103  inline EnvironmentResponse& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
104 
108  inline EnvironmentResponse& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
109 
110 
114  inline const EnvironmentError& GetError() const{ return m_error; }
115 
119  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
120 
124  inline void SetError(const EnvironmentError& value) { m_errorHasBeenSet = true; m_error = value; }
125 
129  inline void SetError(EnvironmentError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
130 
134  inline EnvironmentResponse& WithError(const EnvironmentError& value) { SetError(value); return *this;}
135 
139  inline EnvironmentResponse& WithError(EnvironmentError&& value) { SetError(std::move(value)); return *this;}
140 
141  private:
142 
144  bool m_variablesHasBeenSet;
145 
146  EnvironmentError m_error;
147  bool m_errorHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace Lambda
152 } // namespace Aws
Aws::Lambda::Model::EnvironmentResponse::WithError
EnvironmentResponse & WithError(const EnvironmentError &value)
Definition: EnvironmentResponse.h:134
Aws::Lambda::Model::EnvironmentResponse::AddVariables
EnvironmentResponse & AddVariables(Aws::String &&key, Aws::String &&value)
Definition: EnvironmentResponse.h:93
Aws::Lambda::Model::EnvironmentResponse::SetError
void SetError(EnvironmentError &&value)
Definition: EnvironmentResponse.h:129
Aws::Lambda::Model::EnvironmentResponse::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: EnvironmentResponse.h:119
Aws::Lambda::Model::EnvironmentResponse::AddVariables
EnvironmentResponse & AddVariables(const Aws::String &key, Aws::String &&value)
Definition: EnvironmentResponse.h:88
Aws::Lambda::Model::EnvironmentResponse::GetVariables
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
Definition: EnvironmentResponse.h:48
Aws::Lambda::Model::EnvironmentResponse::WithVariables
EnvironmentResponse & WithVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition: EnvironmentResponse.h:68
Aws::Lambda::Model::EnvironmentResponse::operator=
EnvironmentResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lambda::Model::EnvironmentResponse::VariablesHasBeenSet
bool VariablesHasBeenSet() const
Definition: EnvironmentResponse.h:53
Aws::Lambda::Model::EnvironmentResponse::SetVariables
void SetVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition: EnvironmentResponse.h:63
Aws::Lambda::Model::EnvironmentResponse::AddVariables
EnvironmentResponse & AddVariables(Aws::String &&key, const char *value)
Definition: EnvironmentResponse.h:103
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::EnvironmentResponse::EnvironmentResponse
EnvironmentResponse()
Aws::Lambda::Model::EnvironmentResponse::AddVariables
EnvironmentResponse & AddVariables(const char *key, Aws::String &&value)
Definition: EnvironmentResponse.h:98
Aws::Lambda::Model::EnvironmentResponse::SetError
void SetError(const EnvironmentError &value)
Definition: EnvironmentResponse.h:124
Aws::Lambda::Model::EnvironmentResponse::WithError
EnvironmentResponse & WithError(EnvironmentError &&value)
Definition: EnvironmentResponse.h:139
Aws::Lambda::Model::EnvironmentResponse::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lambda::Model::EnvironmentResponse::GetError
const EnvironmentError & GetError() const
Definition: EnvironmentResponse.h:114
Aws::Lambda::Model::EnvironmentError
Definition: EnvironmentError.h:33
Aws::Lambda::Model::EnvironmentResponse::WithVariables
EnvironmentResponse & WithVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition: EnvironmentResponse.h:73
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lambda::Model::EnvironmentResponse
Definition: EnvironmentResponse.h:37
Aws::Lambda::Model::EnvironmentResponse::AddVariables
EnvironmentResponse & AddVariables(const char *key, const char *value)
Definition: EnvironmentResponse.h:108
Aws::Lambda::Model::EnvironmentResponse::EnvironmentResponse
EnvironmentResponse(Aws::Utils::Json::JsonView jsonValue)
EnvironmentError.h
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::EnvironmentResponse::SetVariables
void SetVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition: EnvironmentResponse.h:58
Aws::Lambda::Model::EnvironmentResponse::AddVariables
EnvironmentResponse & AddVariables(const Aws::String &key, const Aws::String &value)
Definition: EnvironmentResponse.h:78
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
Aws::Lambda::Model::EnvironmentResponse::AddVariables
EnvironmentResponse & AddVariables(Aws::String &&key, const Aws::String &value)
Definition: EnvironmentResponse.h:83