AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
InternalServerErrorException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/greengrass/Greengrass_EXPORTS.h>
10#include <aws/greengrass/model/ErrorDetail.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Greengrass {
22namespace Model {
23
30 public:
31 AWS_GREENGRASS_API InternalServerErrorException() = default;
34 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const { return m_errorDetails; }
41 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
42 template <typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
43 void SetErrorDetails(ErrorDetailsT&& value) {
44 m_errorDetailsHasBeenSet = true;
45 m_errorDetails = std::forward<ErrorDetailsT>(value);
46 }
47 template <typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
49 SetErrorDetails(std::forward<ErrorDetailsT>(value));
50 return *this;
51 }
52 template <typename ErrorDetailsT = ErrorDetail>
54 m_errorDetailsHasBeenSet = true;
55 m_errorDetails.emplace_back(std::forward<ErrorDetailsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetMessage() const { return m_message; }
65 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
66 template <typename MessageT = Aws::String>
67 void SetMessage(MessageT&& value) {
68 m_messageHasBeenSet = true;
69 m_message = std::forward<MessageT>(value);
70 }
71 template <typename MessageT = Aws::String>
73 SetMessage(std::forward<MessageT>(value));
74 return *this;
75 }
77 private:
78 Aws::Vector<ErrorDetail> m_errorDetails;
79
80 Aws::String m_message;
81 bool m_errorDetailsHasBeenSet = false;
82 bool m_messageHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Greengrass
87} // namespace Aws
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ErrorDetail > & GetErrorDetails() const
AWS_GREENGRASS_API InternalServerErrorException(Aws::Utils::Json::JsonView jsonValue)
InternalServerErrorException & AddErrorDetails(ErrorDetailsT &&value)
InternalServerErrorException & WithErrorDetails(ErrorDetailsT &&value)
AWS_GREENGRASS_API InternalServerErrorException()=default
InternalServerErrorException & WithMessage(MessageT &&value)
AWS_GREENGRASS_API InternalServerErrorException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue