AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ThrottlingReason.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dynamodb/DynamoDB_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DynamoDB {
20namespace Model {
21
31 public:
32 AWS_DYNAMODB_API ThrottlingReason() = default;
33 AWS_DYNAMODB_API ThrottlingReason(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
67 inline const Aws::String& GetReason() const { return m_reason; }
68 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
69 template <typename ReasonT = Aws::String>
70 void SetReason(ReasonT&& value) {
71 m_reasonHasBeenSet = true;
72 m_reason = std::forward<ReasonT>(value);
73 }
74 template <typename ReasonT = Aws::String>
75 ThrottlingReason& WithReason(ReasonT&& value) {
76 SetReason(std::forward<ReasonT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetResource() const { return m_resource; }
87 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
88 template <typename ResourceT = Aws::String>
89 void SetResource(ResourceT&& value) {
90 m_resourceHasBeenSet = true;
91 m_resource = std::forward<ResourceT>(value);
92 }
93 template <typename ResourceT = Aws::String>
94 ThrottlingReason& WithResource(ResourceT&& value) {
95 SetResource(std::forward<ResourceT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_reason;
101
102 Aws::String m_resource;
103 bool m_reasonHasBeenSet = false;
104 bool m_resourceHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace DynamoDB
109} // namespace Aws
ThrottlingReason & WithReason(ReasonT &&value)
AWS_DYNAMODB_API ThrottlingReason(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API ThrottlingReason & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResource() const
ThrottlingReason & WithResource(ResourceT &&value)
AWS_DYNAMODB_API ThrottlingReason()=default
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetReason() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue