AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EC2UnexpectedException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lambda {
20namespace Model {
21
29 public:
30 AWS_LAMBDA_API EC2UnexpectedException() = default;
33 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::String& GetType() const { return m_type; }
38 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
39 template <typename TypeT = Aws::String>
40 void SetType(TypeT&& value) {
41 m_typeHasBeenSet = true;
42 m_type = std::forward<TypeT>(value);
43 }
44 template <typename TypeT = Aws::String>
46 SetType(std::forward<TypeT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::String& GetMessage() const { return m_message; }
54 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
55 template <typename MessageT = Aws::String>
56 void SetMessage(MessageT&& value) {
57 m_messageHasBeenSet = true;
58 m_message = std::forward<MessageT>(value);
59 }
60 template <typename MessageT = Aws::String>
62 SetMessage(std::forward<MessageT>(value));
63 return *this;
64 }
66
68
69 inline const Aws::String& GetEC2ErrorCode() const { return m_eC2ErrorCode; }
70 inline bool EC2ErrorCodeHasBeenSet() const { return m_eC2ErrorCodeHasBeenSet; }
71 template <typename EC2ErrorCodeT = Aws::String>
72 void SetEC2ErrorCode(EC2ErrorCodeT&& value) {
73 m_eC2ErrorCodeHasBeenSet = true;
74 m_eC2ErrorCode = std::forward<EC2ErrorCodeT>(value);
75 }
76 template <typename EC2ErrorCodeT = Aws::String>
77 EC2UnexpectedException& WithEC2ErrorCode(EC2ErrorCodeT&& value) {
78 SetEC2ErrorCode(std::forward<EC2ErrorCodeT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_type;
84
85 Aws::String m_message;
86
87 Aws::String m_eC2ErrorCode;
88 bool m_typeHasBeenSet = false;
89 bool m_messageHasBeenSet = false;
90 bool m_eC2ErrorCodeHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace Lambda
95} // namespace Aws
AWS_LAMBDA_API EC2UnexpectedException()=default
EC2UnexpectedException & WithType(TypeT &&value)
EC2UnexpectedException & WithMessage(MessageT &&value)
AWS_LAMBDA_API EC2UnexpectedException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API EC2UnexpectedException(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
EC2UnexpectedException & WithEC2ErrorCode(EC2ErrorCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue