AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
ProvisionedThroughputExceededException.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
45 {
46 public:
47 AWS_DYNAMODB_API ProvisionedThroughputExceededException() = default;
50 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template<typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
61 template<typename MessageT = Aws::String>
62 ProvisionedThroughputExceededException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
64
66
72 inline const Aws::Vector<ThrottlingReason>& GetThrottlingReasons() const { return m_throttlingReasons; }
73 inline bool ThrottlingReasonsHasBeenSet() const { return m_throttlingReasonsHasBeenSet; }
74 template<typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
75 void SetThrottlingReasons(ThrottlingReasonsT&& value) { m_throttlingReasonsHasBeenSet = true; m_throttlingReasons = std::forward<ThrottlingReasonsT>(value); }
76 template<typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
77 ProvisionedThroughputExceededException& WithThrottlingReasons(ThrottlingReasonsT&& value) { SetThrottlingReasons(std::forward<ThrottlingReasonsT>(value)); return *this;}
78 template<typename ThrottlingReasonsT = ThrottlingReason>
79 ProvisionedThroughputExceededException& AddThrottlingReasons(ThrottlingReasonsT&& value) { m_throttlingReasonsHasBeenSet = true; m_throttlingReasons.emplace_back(std::forward<ThrottlingReasonsT>(value)); return *this; }
81 private:
82
83 Aws::String m_message;
84 bool m_messageHasBeenSet = false;
85
86 Aws::Vector<ThrottlingReason> m_throttlingReasons;
87 bool m_throttlingReasonsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace DynamoDB
92} // namespace Aws
AWS_DYNAMODB_API ProvisionedThroughputExceededException(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API ProvisionedThroughputExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
ProvisionedThroughputExceededException & WithMessage(MessageT &&value)
ProvisionedThroughputExceededException & AddThrottlingReasons(ThrottlingReasonsT &&value)
ProvisionedThroughputExceededException & WithThrottlingReasons(ThrottlingReasonsT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue