AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InternalServerErrorException.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrass/model/ErrorDetail.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Greengrass
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_GREENGRASS_API InternalServerErrorException() = default;
39 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const { return m_errorDetails; }
47 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
48 template<typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
49 void SetErrorDetails(ErrorDetailsT&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::forward<ErrorDetailsT>(value); }
50 template<typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
51 InternalServerErrorException& WithErrorDetails(ErrorDetailsT&& value) { SetErrorDetails(std::forward<ErrorDetailsT>(value)); return *this;}
52 template<typename ErrorDetailsT = ErrorDetail>
53 InternalServerErrorException& AddErrorDetails(ErrorDetailsT&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.emplace_back(std::forward<ErrorDetailsT>(value)); return *this; }
55
57
60 inline const Aws::String& GetMessage() const { return m_message; }
61 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
62 template<typename MessageT = Aws::String>
63 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
64 template<typename MessageT = Aws::String>
65 InternalServerErrorException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
67 private:
68
69 Aws::Vector<ErrorDetail> m_errorDetails;
70 bool m_errorDetailsHasBeenSet = false;
71
72 Aws::String m_message;
73 bool m_messageHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Greengrass
78} // 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