AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
ServiceUnavailableError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/storagegateway/StorageGateway_EXPORTS.h>
9#include <aws/storagegateway/model/StorageGatewayError.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace StorageGateway {
21namespace Model {
22
31 public:
32 AWS_STORAGEGATEWAY_API ServiceUnavailableError() = default;
33 AWS_STORAGEGATEWAY_API ServiceUnavailableError(Aws::Utils::Json::JsonView jsonValue);
35 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetMessage() const { return m_message; }
42 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
43 template <typename MessageT = Aws::String>
44 void SetMessage(MessageT&& value) {
45 m_messageHasBeenSet = true;
46 m_message = std::forward<MessageT>(value);
47 }
48 template <typename MessageT = Aws::String>
50 SetMessage(std::forward<MessageT>(value));
51 return *this;
52 }
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) {
64 m_errorHasBeenSet = true;
65 m_error = std::forward<ErrorT>(value);
66 }
67 template <typename ErrorT = StorageGatewayError>
69 SetError(std::forward<ErrorT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_message;
75
76 StorageGatewayError m_error;
77 bool m_messageHasBeenSet = false;
78 bool m_errorHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace StorageGateway
83} // 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