AWS SDK for C++  1.9.159
AWS SDK for C++
EC2UnexpectedException.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 
41 
42  inline const Aws::String& GetType() const{ return m_type; }
43 
44 
45  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 
47 
48  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
49 
50 
51  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
52 
53 
54  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
55 
56 
57  inline EC2UnexpectedException& WithType(const Aws::String& value) { SetType(value); return *this;}
58 
59 
60  inline EC2UnexpectedException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
61 
62 
63  inline EC2UnexpectedException& WithType(const char* value) { SetType(value); return *this;}
64 
65 
66 
67  inline const Aws::String& GetMessage() const{ return m_message; }
68 
69 
70  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 
72 
73  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
74 
75 
76  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
77 
78 
79  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
80 
81 
82  inline EC2UnexpectedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
83 
84 
85  inline EC2UnexpectedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
86 
87 
88  inline EC2UnexpectedException& WithMessage(const char* value) { SetMessage(value); return *this;}
89 
90 
91 
92  inline const Aws::String& GetEC2ErrorCode() const{ return m_eC2ErrorCode; }
93 
94 
95  inline bool EC2ErrorCodeHasBeenSet() const { return m_eC2ErrorCodeHasBeenSet; }
96 
97 
98  inline void SetEC2ErrorCode(const Aws::String& value) { m_eC2ErrorCodeHasBeenSet = true; m_eC2ErrorCode = value; }
99 
100 
101  inline void SetEC2ErrorCode(Aws::String&& value) { m_eC2ErrorCodeHasBeenSet = true; m_eC2ErrorCode = std::move(value); }
102 
103 
104  inline void SetEC2ErrorCode(const char* value) { m_eC2ErrorCodeHasBeenSet = true; m_eC2ErrorCode.assign(value); }
105 
106 
107  inline EC2UnexpectedException& WithEC2ErrorCode(const Aws::String& value) { SetEC2ErrorCode(value); return *this;}
108 
109 
110  inline EC2UnexpectedException& WithEC2ErrorCode(Aws::String&& value) { SetEC2ErrorCode(std::move(value)); return *this;}
111 
112 
113  inline EC2UnexpectedException& WithEC2ErrorCode(const char* value) { SetEC2ErrorCode(value); return *this;}
114 
115  private:
116 
117  Aws::String m_type;
118  bool m_typeHasBeenSet;
119 
120  Aws::String m_message;
121  bool m_messageHasBeenSet;
122 
123  Aws::String m_eC2ErrorCode;
124  bool m_eC2ErrorCodeHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace Lambda
129 } // namespace Aws
Aws::Lambda::Model::EC2UnexpectedException::WithMessage
EC2UnexpectedException & WithMessage(const Aws::String &value)
Definition: EC2UnexpectedException.h:82
Aws::Lambda::Model::EC2UnexpectedException::SetMessage
void SetMessage(const Aws::String &value)
Definition: EC2UnexpectedException.h:73
Aws::Lambda::Model::EC2UnexpectedException::SetType
void SetType(const Aws::String &value)
Definition: EC2UnexpectedException.h:48
Aws::Lambda::Model::EC2UnexpectedException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: EC2UnexpectedException.h:70
Aws::Lambda::Model::EC2UnexpectedException::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: EC2UnexpectedException.h:45
Aws::Lambda::Model::EC2UnexpectedException::SetEC2ErrorCode
void SetEC2ErrorCode(const Aws::String &value)
Definition: EC2UnexpectedException.h:98
Aws::Lambda::Model::EC2UnexpectedException::WithEC2ErrorCode
EC2UnexpectedException & WithEC2ErrorCode(const Aws::String &value)
Definition: EC2UnexpectedException.h:107
Aws::Lambda::Model::EC2UnexpectedException::GetType
const Aws::String & GetType() const
Definition: EC2UnexpectedException.h:42
Aws::Lambda::Model::EC2UnexpectedException::WithType
EC2UnexpectedException & WithType(const char *value)
Definition: EC2UnexpectedException.h:63
Aws::Lambda::Model::EC2UnexpectedException::SetType
void SetType(const char *value)
Definition: EC2UnexpectedException.h:54
Aws::Lambda::Model::EC2UnexpectedException::GetMessage
const Aws::String & GetMessage() const
Definition: EC2UnexpectedException.h:67
Aws::Lambda::Model::EC2UnexpectedException::operator=
EC2UnexpectedException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::EC2UnexpectedException::WithType
EC2UnexpectedException & WithType(Aws::String &&value)
Definition: EC2UnexpectedException.h:60
Aws::Lambda::Model::EC2UnexpectedException::WithEC2ErrorCode
EC2UnexpectedException & WithEC2ErrorCode(Aws::String &&value)
Definition: EC2UnexpectedException.h:110
Aws::Lambda::Model::EC2UnexpectedException::SetMessage
void SetMessage(Aws::String &&value)
Definition: EC2UnexpectedException.h:76
Aws::Lambda::Model::EC2UnexpectedException::GetEC2ErrorCode
const Aws::String & GetEC2ErrorCode() const
Definition: EC2UnexpectedException.h:92
Aws::Lambda::Model::EC2UnexpectedException::WithMessage
EC2UnexpectedException & WithMessage(Aws::String &&value)
Definition: EC2UnexpectedException.h:85
Aws::Lambda::Model::EC2UnexpectedException::SetEC2ErrorCode
void SetEC2ErrorCode(const char *value)
Definition: EC2UnexpectedException.h:104
Aws::Lambda::Model::EC2UnexpectedException::WithEC2ErrorCode
EC2UnexpectedException & WithEC2ErrorCode(const char *value)
Definition: EC2UnexpectedException.h:113
Aws::Lambda::Model::EC2UnexpectedException::SetEC2ErrorCode
void SetEC2ErrorCode(Aws::String &&value)
Definition: EC2UnexpectedException.h:101
Aws::Lambda::Model::EC2UnexpectedException::SetType
void SetType(Aws::String &&value)
Definition: EC2UnexpectedException.h:51
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lambda::Model::EC2UnexpectedException::SetMessage
void SetMessage(const char *value)
Definition: EC2UnexpectedException.h:79
Aws::Lambda::Model::EC2UnexpectedException::WithMessage
EC2UnexpectedException & WithMessage(const char *value)
Definition: EC2UnexpectedException.h:88
Aws::Lambda::Model::EC2UnexpectedException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lambda::Model::EC2UnexpectedException::WithType
EC2UnexpectedException & WithType(const Aws::String &value)
Definition: EC2UnexpectedException.h:57
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::EC2UnexpectedException::EC2ErrorCodeHasBeenSet
bool EC2ErrorCodeHasBeenSet() const
Definition: EC2UnexpectedException.h:95
Aws::Lambda::Model::EC2UnexpectedException::EC2UnexpectedException
EC2UnexpectedException(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::EC2UnexpectedException::EC2UnexpectedException
EC2UnexpectedException()
Aws::Lambda::Model::EC2UnexpectedException
Definition: EC2UnexpectedException.h:33
Lambda_EXPORTS.h