AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetErrorDetails(const Aws::Vector<ErrorDetail>& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
49 inline void SetErrorDetails(Aws::Vector<ErrorDetail>&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
52 inline InternalServerErrorException& AddErrorDetails(const ErrorDetail& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(value); return *this; }
53 inline InternalServerErrorException& AddErrorDetails(ErrorDetail&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(std::move(value)); return *this; }
55
57
60 inline const Aws::String& GetMessage() const{ return m_message; }
61 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
62 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
63 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
64 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
65 inline InternalServerErrorException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
66 inline InternalServerErrorException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
67 inline InternalServerErrorException& WithMessage(const char* value) { SetMessage(value); return *this;}
69 private:
70
71 Aws::Vector<ErrorDetail> m_errorDetails;
72 bool m_errorDetailsHasBeenSet = false;
73
74 Aws::String m_message;
75 bool m_messageHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Greengrass
80} // namespace Aws
InternalServerErrorException & WithErrorDetails(Aws::Vector< ErrorDetail > &&value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ErrorDetail > & GetErrorDetails() const
void SetErrorDetails(const Aws::Vector< ErrorDetail > &value)
AWS_GREENGRASS_API InternalServerErrorException(Aws::Utils::Json::JsonView jsonValue)
InternalServerErrorException & AddErrorDetails(const ErrorDetail &value)
InternalServerErrorException & WithMessage(const char *value)
InternalServerErrorException & WithMessage(Aws::String &&value)
InternalServerErrorException & AddErrorDetails(ErrorDetail &&value)
AWS_GREENGRASS_API InternalServerErrorException & operator=(Aws::Utils::Json::JsonView jsonValue)
InternalServerErrorException & WithMessage(const Aws::String &value)
InternalServerErrorException & WithErrorDetails(const Aws::Vector< ErrorDetail > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue