AWS SDK for C++

AWS SDK for C++ Version 1.11.774

Loading...
Searching...
No Matches
ThrottlingReason.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/polly/Polly_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Polly {
20namespace Model {
21
29 public:
30 AWS_POLLY_API ThrottlingReason() = default;
33 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetReason() const { return m_reason; }
40 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
41 template <typename ReasonT = Aws::String>
42 void SetReason(ReasonT&& value) {
43 m_reasonHasBeenSet = true;
44 m_reason = std::forward<ReasonT>(value);
45 }
46 template <typename ReasonT = Aws::String>
47 ThrottlingReason& WithReason(ReasonT&& value) {
48 SetReason(std::forward<ReasonT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetResource() const { return m_resource; }
58 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
59 template <typename ResourceT = Aws::String>
60 void SetResource(ResourceT&& value) {
61 m_resourceHasBeenSet = true;
62 m_resource = std::forward<ResourceT>(value);
63 }
64 template <typename ResourceT = Aws::String>
65 ThrottlingReason& WithResource(ResourceT&& value) {
66 SetResource(std::forward<ResourceT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_reason;
72
73 Aws::String m_resource;
74 bool m_reasonHasBeenSet = false;
75 bool m_resourceHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Polly
80} // namespace Aws
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResource() const
const Aws::String & GetReason() const
ThrottlingReason & WithReason(ReasonT &&value)
AWS_POLLY_API ThrottlingReason()=default
ThrottlingReason & WithResource(ResourceT &&value)
void SetResource(ResourceT &&value)
AWS_POLLY_API ThrottlingReason(Aws::Utils::Json::JsonView jsonValue)
AWS_POLLY_API ThrottlingReason & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue