AWS SDK for C++  1.9.123
AWS SDK for C++
EnvironmentError.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lambda
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
45 
49  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
50 
54  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
55 
59  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
60 
64  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
65 
69  inline EnvironmentError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
70 
74  inline EnvironmentError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
75 
79  inline EnvironmentError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
80 
81 
85  inline const Aws::String& GetMessage() const{ return m_message; }
86 
90  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
91 
95  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
96 
100  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
101 
105  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
106 
110  inline EnvironmentError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
111 
115  inline EnvironmentError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
116 
120  inline EnvironmentError& WithMessage(const char* value) { SetMessage(value); return *this;}
121 
122  private:
123 
124  Aws::String m_errorCode;
125  bool m_errorCodeHasBeenSet;
126 
127  Aws::String m_message;
128  bool m_messageHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace Lambda
133 } // namespace Aws
Aws::Lambda::Model::EnvironmentError::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: EnvironmentError.h:54
Aws::Lambda::Model::EnvironmentError::operator=
EnvironmentError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lambda::Model::EnvironmentError::SetErrorCode
void SetErrorCode(const char *value)
Definition: EnvironmentError.h:64
Aws::Lambda::Model::EnvironmentError::WithMessage
EnvironmentError & WithMessage(const char *value)
Definition: EnvironmentError.h:120
Aws::Lambda::Model::EnvironmentError::SetMessage
void SetMessage(Aws::String &&value)
Definition: EnvironmentError.h:100
Aws::Lambda::Model::EnvironmentError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lambda::Model::EnvironmentError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: EnvironmentError.h:90
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::EnvironmentError::EnvironmentError
EnvironmentError()
Aws::Lambda::Model::EnvironmentError::GetMessage
const Aws::String & GetMessage() const
Definition: EnvironmentError.h:85
Aws::Lambda::Model::EnvironmentError::SetMessage
void SetMessage(const Aws::String &value)
Definition: EnvironmentError.h:95
Aws::Lambda::Model::EnvironmentError::WithErrorCode
EnvironmentError & WithErrorCode(const Aws::String &value)
Definition: EnvironmentError.h:69
Aws::Lambda::Model::EnvironmentError
Definition: EnvironmentError.h:33
Aws::Lambda::Model::EnvironmentError::WithMessage
EnvironmentError & WithMessage(Aws::String &&value)
Definition: EnvironmentError.h:115
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lambda::Model::EnvironmentError::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: EnvironmentError.h:59
Aws::Lambda::Model::EnvironmentError::EnvironmentError
EnvironmentError(Aws::Utils::Json::JsonView jsonValue)
Aws::Lambda::Model::EnvironmentError::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: EnvironmentError.h:49
Aws::Lambda::Model::EnvironmentError::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: EnvironmentError.h:44
Aws::Lambda::Model::EnvironmentError::SetMessage
void SetMessage(const char *value)
Definition: EnvironmentError.h:105
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::EnvironmentError::WithErrorCode
EnvironmentError & WithErrorCode(Aws::String &&value)
Definition: EnvironmentError.h:74
Aws::Lambda::Model::EnvironmentError::WithMessage
EnvironmentError & WithMessage(const Aws::String &value)
Definition: EnvironmentError.h:110
Aws::Lambda::Model::EnvironmentError::WithErrorCode
EnvironmentError & WithErrorCode(const char *value)
Definition: EnvironmentError.h:79
Lambda_EXPORTS.h