AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename MessageT = Aws::String>
50 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
51 template<typename MessageT = Aws::String>
52 ServiceUnavailableError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
54
56
60 inline const StorageGatewayError& GetError() const { return m_error; }
61 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
62 template<typename ErrorT = StorageGatewayError>
63 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
64 template<typename ErrorT = StorageGatewayError>
65 ServiceUnavailableError& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
67 private:
68
69 Aws::String m_message;
70 bool m_messageHasBeenSet = false;
71
72 StorageGatewayError m_error;
73 bool m_errorHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace StorageGateway
78} // namespace Aws
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceUnavailableError & WithError(ErrorT &&value)
AWS_STORAGEGATEWAY_API ServiceUnavailableError(Aws::Utils::Json::JsonView jsonValue)
ServiceUnavailableError & WithMessage(MessageT &&value)
AWS_STORAGEGATEWAY_API ServiceUnavailableError()=default
AWS_STORAGEGATEWAY_API ServiceUnavailableError & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue