AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceUnavailableError.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
35 {
36 public:
37 AWS_STORAGEGATEWAY_API ServiceUnavailableError();
38 AWS_STORAGEGATEWAY_API ServiceUnavailableError(Aws::Utils::Json::JsonView jsonValue);
40 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMessage() const{ return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
52 inline ServiceUnavailableError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
53 inline ServiceUnavailableError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
54 inline ServiceUnavailableError& WithMessage(const char* value) { SetMessage(value); return *this;}
56
58
62 inline const StorageGatewayError& GetError() const{ return m_error; }
63 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
64 inline void SetError(const StorageGatewayError& value) { m_errorHasBeenSet = true; m_error = value; }
65 inline void SetError(StorageGatewayError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
66 inline ServiceUnavailableError& WithError(const StorageGatewayError& value) { SetError(value); return *this;}
67 inline ServiceUnavailableError& WithError(StorageGatewayError&& value) { SetError(std::move(value)); return *this;}
69 private:
70
71 Aws::String m_message;
72 bool m_messageHasBeenSet = false;
73
74 StorageGatewayError m_error;
75 bool m_errorHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace StorageGateway
80} // namespace Aws
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceUnavailableError & WithError(StorageGatewayError &&value)
AWS_STORAGEGATEWAY_API ServiceUnavailableError(Aws::Utils::Json::JsonView jsonValue)
ServiceUnavailableError & WithMessage(const char *value)
ServiceUnavailableError & WithError(const StorageGatewayError &value)
ServiceUnavailableError & WithMessage(Aws::String &&value)
AWS_STORAGEGATEWAY_API ServiceUnavailableError & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceUnavailableError & WithMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue