AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ErrorInformation.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/ErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeDeploy
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CODEDEPLOY_API ErrorInformation() = default;
36 AWS_CODEDEPLOY_API ErrorInformation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
70 inline ErrorCode GetCode() const { return m_code; }
71 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
72 inline void SetCode(ErrorCode value) { m_codeHasBeenSet = true; m_code = value; }
73 inline ErrorInformation& WithCode(ErrorCode value) { SetCode(value); return *this;}
75
77
80 inline const Aws::String& GetMessage() const { return m_message; }
81 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 template<typename MessageT = Aws::String>
83 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
84 template<typename MessageT = Aws::String>
85 ErrorInformation& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
87 private:
88
90 bool m_codeHasBeenSet = false;
91
92 Aws::String m_message;
93 bool m_messageHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CodeDeploy
98} // namespace Aws
ErrorInformation & WithCode(ErrorCode value)
AWS_CODEDEPLOY_API ErrorInformation()=default
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEDEPLOY_API ErrorInformation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
AWS_CODEDEPLOY_API ErrorInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorInformation & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue