AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
42
43
45
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 RequestThrottledException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
52 inline RequestThrottledException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
53 inline RequestThrottledException& WithMessage(const char* value) { SetMessage(value); return *this;}
55
57
60 inline const RequestThrottledExceptionReason& GetReason() const{ return m_reason; }
61 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
62 inline void SetReason(const RequestThrottledExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
63 inline void SetReason(RequestThrottledExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
65 inline RequestThrottledException& WithReason(RequestThrottledExceptionReason&& value) { SetReason(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_message;
70 bool m_messageHasBeenSet = false;
71
73 bool m_reasonHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EBS
78} // namespace Aws
void SetReason(const RequestThrottledExceptionReason &value)
RequestThrottledException & WithMessage(const Aws::String &value)
AWS_EBS_API RequestThrottledException & operator=(Aws::Utils::Json::JsonView jsonValue)
RequestThrottledException & WithMessage(const char *value)
RequestThrottledException & WithReason(const RequestThrottledExceptionReason &value)
RequestThrottledException & WithReason(RequestThrottledExceptionReason &&value)
RequestThrottledException & WithMessage(Aws::String &&value)
void SetReason(RequestThrottledExceptionReason &&value)
AWS_EBS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EBS_API RequestThrottledException(Aws::Utils::Json::JsonView jsonValue)
const RequestThrottledExceptionReason & GetReason() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue