AWS SDK for C++

AWS SDK for C++ Version 1.11.638

Loading...
Searching...
No Matches
ThrottlingException.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
38 {
39 public:
40 AWS_DYNAMODB_API ThrottlingException() = default;
43 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
48 inline const Aws::String& GetMessage() const { return m_message; }
49 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
50 template<typename MessageT = Aws::String>
51 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
52 template<typename MessageT = Aws::String>
53 ThrottlingException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
55
57
63 inline const Aws::Vector<ThrottlingReason>& GetThrottlingReasons() const { return m_throttlingReasons; }
64 inline bool ThrottlingReasonsHasBeenSet() const { return m_throttlingReasonsHasBeenSet; }
65 template<typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
66 void SetThrottlingReasons(ThrottlingReasonsT&& value) { m_throttlingReasonsHasBeenSet = true; m_throttlingReasons = std::forward<ThrottlingReasonsT>(value); }
67 template<typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
68 ThrottlingException& WithThrottlingReasons(ThrottlingReasonsT&& value) { SetThrottlingReasons(std::forward<ThrottlingReasonsT>(value)); return *this;}
69 template<typename ThrottlingReasonsT = ThrottlingReason>
70 ThrottlingException& AddThrottlingReasons(ThrottlingReasonsT&& value) { m_throttlingReasonsHasBeenSet = true; m_throttlingReasons.emplace_back(std::forward<ThrottlingReasonsT>(value)); return *this; }
72 private:
73
74 Aws::String m_message;
75 bool m_messageHasBeenSet = false;
76
77 Aws::Vector<ThrottlingReason> m_throttlingReasons;
78 bool m_throttlingReasonsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace DynamoDB
83} // namespace Aws
ThrottlingException & WithMessage(MessageT &&value)
AWS_DYNAMODB_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThrottlingReasons(ThrottlingReasonsT &&value)
AWS_DYNAMODB_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ThrottlingReason > & GetThrottlingReasons() const
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
ThrottlingException & WithThrottlingReasons(ThrottlingReasonsT &&value)
AWS_DYNAMODB_API ThrottlingException()=default
ThrottlingException & AddThrottlingReasons(ThrottlingReasonsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue