AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InternalServerError.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/storagegateway/model/StorageGatewayError.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 StorageGateway
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_STORAGEGATEWAY_API InternalServerError();
37 AWS_STORAGEGATEWAY_API InternalServerError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_STORAGEGATEWAY_API InternalServerError& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMessage() const{ return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
50 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
51 inline InternalServerError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
52 inline InternalServerError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
53 inline InternalServerError& WithMessage(const char* value) { SetMessage(value); return *this;}
55
57
61 inline const StorageGatewayError& GetError() const{ return m_error; }
62 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
63 inline void SetError(const StorageGatewayError& value) { m_errorHasBeenSet = true; m_error = value; }
64 inline void SetError(StorageGatewayError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
65 inline InternalServerError& WithError(const StorageGatewayError& value) { SetError(value); return *this;}
66 inline InternalServerError& WithError(StorageGatewayError&& value) { SetError(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_message;
71 bool m_messageHasBeenSet = false;
72
73 StorageGatewayError m_error;
74 bool m_errorHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace StorageGateway
79} // namespace Aws
InternalServerError & WithMessage(const char *value)
InternalServerError & WithMessage(Aws::String &&value)
InternalServerError & WithError(StorageGatewayError &&value)
AWS_STORAGEGATEWAY_API InternalServerError(Aws::Utils::Json::JsonView jsonValue)
void SetError(const StorageGatewayError &value)
const StorageGatewayError & GetError() const
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_STORAGEGATEWAY_API InternalServerError & operator=(Aws::Utils::Json::JsonView jsonValue)
InternalServerError & WithMessage(const Aws::String &value)
InternalServerError & WithError(const StorageGatewayError &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue