AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeDeploy {
21namespace Model {
22
29 public:
30 AWS_CODEDEPLOY_API ErrorInformation() = default;
31 AWS_CODEDEPLOY_API ErrorInformation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
64 inline ErrorCode GetCode() const { return m_code; }
65 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
66 inline void SetCode(ErrorCode value) {
67 m_codeHasBeenSet = true;
68 m_code = value;
69 }
71 SetCode(value);
72 return *this;
73 }
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) {
84 m_messageHasBeenSet = true;
85 m_message = std::forward<MessageT>(value);
86 }
87 template <typename MessageT = Aws::String>
88 ErrorInformation& WithMessage(MessageT&& value) {
89 SetMessage(std::forward<MessageT>(value));
90 return *this;
91 }
93 private:
95
96 Aws::String m_message;
97 bool m_codeHasBeenSet = false;
98 bool m_messageHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CodeDeploy
103} // 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