AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnvironmentResponse.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/lambda/model/EnvironmentError.h>
10#include <aws/core/utils/memory/stl/AWSString.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 Lambda
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_LAMBDA_API EnvironmentResponse();
42 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
50 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
51 inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
52 inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
54 inline EnvironmentResponse& WithVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetVariables(std::move(value)); return *this;}
55 inline EnvironmentResponse& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
56 inline EnvironmentResponse& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
57 inline EnvironmentResponse& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
58 inline EnvironmentResponse& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; }
59 inline EnvironmentResponse& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
60 inline EnvironmentResponse& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
61 inline EnvironmentResponse& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
63
65
68 inline const EnvironmentError& GetError() const{ return m_error; }
69 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
70 inline void SetError(const EnvironmentError& value) { m_errorHasBeenSet = true; m_error = value; }
71 inline void SetError(EnvironmentError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
72 inline EnvironmentResponse& WithError(const EnvironmentError& value) { SetError(value); return *this;}
73 inline EnvironmentResponse& WithError(EnvironmentError&& value) { SetError(std::move(value)); return *this;}
75 private:
76
78 bool m_variablesHasBeenSet = false;
79
80 EnvironmentError m_error;
81 bool m_errorHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Lambda
86} // namespace Aws
void SetError(const EnvironmentError &value)
EnvironmentResponse & AddVariables(const Aws::String &key, Aws::String &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVariables(const Aws::Map< Aws::String, Aws::String > &value)
EnvironmentResponse & WithError(const EnvironmentError &value)
void SetError(EnvironmentError &&value)
EnvironmentResponse & AddVariables(Aws::String &&key, const Aws::String &value)
void SetVariables(Aws::Map< Aws::String, Aws::String > &&value)
AWS_LAMBDA_API EnvironmentResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
EnvironmentResponse & AddVariables(const char *key, const char *value)
EnvironmentResponse & WithVariables(const Aws::Map< Aws::String, Aws::String > &value)
EnvironmentResponse & WithVariables(Aws::Map< Aws::String, Aws::String > &&value)
EnvironmentResponse & AddVariables(const char *key, Aws::String &&value)
const EnvironmentError & GetError() const
EnvironmentResponse & AddVariables(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
EnvironmentResponse & AddVariables(Aws::String &&key, const char *value)
EnvironmentResponse & AddVariables(Aws::String &&key, Aws::String &&value)
EnvironmentResponse & WithError(EnvironmentError &&value)
AWS_LAMBDA_API EnvironmentResponse(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue