AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
RequestLimitExceeded.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/model/ThrottlingReason.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DynamoDB
24{
25namespace Model
26{
27
40 {
41 public:
42 AWS_DYNAMODB_API RequestLimitExceeded() = default;
45 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
50 inline const Aws::String& GetMessage() const { return m_message; }
51 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
52 template<typename MessageT = Aws::String>
53 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
54 template<typename MessageT = Aws::String>
55 RequestLimitExceeded& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
57
59
65 inline const Aws::Vector<ThrottlingReason>& GetThrottlingReasons() const { return m_throttlingReasons; }
66 inline bool ThrottlingReasonsHasBeenSet() const { return m_throttlingReasonsHasBeenSet; }
67 template<typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
68 void SetThrottlingReasons(ThrottlingReasonsT&& value) { m_throttlingReasonsHasBeenSet = true; m_throttlingReasons = std::forward<ThrottlingReasonsT>(value); }
69 template<typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
70 RequestLimitExceeded& WithThrottlingReasons(ThrottlingReasonsT&& value) { SetThrottlingReasons(std::forward<ThrottlingReasonsT>(value)); return *this;}
71 template<typename ThrottlingReasonsT = ThrottlingReason>
72 RequestLimitExceeded& AddThrottlingReasons(ThrottlingReasonsT&& value) { m_throttlingReasonsHasBeenSet = true; m_throttlingReasons.emplace_back(std::forward<ThrottlingReasonsT>(value)); return *this; }
74 private:
75
76 Aws::String m_message;
77 bool m_messageHasBeenSet = false;
78
79 Aws::Vector<ThrottlingReason> m_throttlingReasons;
80 bool m_throttlingReasonsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace DynamoDB
85} // namespace Aws
AWS_DYNAMODB_API RequestLimitExceeded()=default
void SetThrottlingReasons(ThrottlingReasonsT &&value)
const Aws::Vector< ThrottlingReason > & GetThrottlingReasons() const
RequestLimitExceeded & WithThrottlingReasons(ThrottlingReasonsT &&value)
AWS_DYNAMODB_API RequestLimitExceeded & operator=(Aws::Utils::Json::JsonView jsonValue)
RequestLimitExceeded & WithMessage(MessageT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
RequestLimitExceeded & AddThrottlingReasons(ThrottlingReasonsT &&value)
AWS_DYNAMODB_API RequestLimitExceeded(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue