AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ErrorInformation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgent_EXPORTS.h>
9#include <aws/securityagent/model/ErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityAgent {
21namespace Model {
22
30 public:
31 AWS_SECURITYAGENT_API ErrorInformation() = default;
32 AWS_SECURITYAGENT_API ErrorInformation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API ErrorInformation& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline ErrorCode GetCode() const { return m_code; }
42 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
43 inline void SetCode(ErrorCode value) {
44 m_codeHasBeenSet = true;
45 m_code = value;
46 }
48 SetCode(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template <typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = Aws::String>
65 ErrorInformation& WithMessage(MessageT&& value) {
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::String m_message;
74 bool m_codeHasBeenSet = false;
75 bool m_messageHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SecurityAgent
80} // namespace Aws
AWS_SECURITYAGENT_API ErrorInformation(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorInformation & WithMessage(MessageT &&value)
AWS_SECURITYAGENT_API ErrorInformation()=default
ErrorInformation & WithCode(ErrorCode value)
AWS_SECURITYAGENT_API ErrorInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue