AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
ThrottlingReason.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DynamoDB
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_DYNAMODB_API ThrottlingReason() = default;
38 AWS_DYNAMODB_API ThrottlingReason(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
73 inline const Aws::String& GetReason() const { return m_reason; }
74 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
75 template<typename ReasonT = Aws::String>
76 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
77 template<typename ReasonT = Aws::String>
78 ThrottlingReason& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
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) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
90 template<typename ResourceT = Aws::String>
91 ThrottlingReason& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
93 private:
94
95 Aws::String m_reason;
96 bool m_reasonHasBeenSet = false;
97
98 Aws::String m_resource;
99 bool m_resourceHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace DynamoDB
104} // 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