AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RequestThrottledException.h
1
6#pragma once
7#include <aws/ebs/EBS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ebs/model/RequestThrottledExceptionReason.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 EBS
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_EBS_API RequestThrottledException() = default;
42
43
45
46 inline const Aws::String& GetMessage() const { return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 template<typename MessageT = Aws::String>
49 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
50 template<typename MessageT = Aws::String>
51 RequestThrottledException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
53
55
58 inline RequestThrottledExceptionReason GetReason() const { return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
60 inline void SetReason(RequestThrottledExceptionReason value) { m_reasonHasBeenSet = true; m_reason = value; }
63 private:
64
65 Aws::String m_message;
66 bool m_messageHasBeenSet = false;
67
69 bool m_reasonHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace EBS
74} // namespace Aws
void SetReason(RequestThrottledExceptionReason value)
AWS_EBS_API RequestThrottledException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EBS_API RequestThrottledException()=default
RequestThrottledException & WithReason(RequestThrottledExceptionReason value)
RequestThrottledExceptionReason GetReason() const
RequestThrottledException & WithMessage(MessageT &&value)
AWS_EBS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EBS_API RequestThrottledException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue