AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ThrottlingReason.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ACM {
20namespace Model {
21
28 public:
29 AWS_ACM_API ThrottlingReason() = default;
33
35
38 inline const Aws::String& GetReason() const { return m_reason; }
39 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
40 template <typename ReasonT = Aws::String>
41 void SetReason(ReasonT&& value) {
42 m_reasonHasBeenSet = true;
43 m_reason = std::forward<ReasonT>(value);
44 }
45 template <typename ReasonT = Aws::String>
46 ThrottlingReason& WithReason(ReasonT&& value) {
47 SetReason(std::forward<ReasonT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetResource() const { return m_resource; }
57 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
58 template <typename ResourceT = Aws::String>
59 void SetResource(ResourceT&& value) {
60 m_resourceHasBeenSet = true;
61 m_resource = std::forward<ResourceT>(value);
62 }
63 template <typename ResourceT = Aws::String>
64 ThrottlingReason& WithResource(ResourceT&& value) {
65 SetResource(std::forward<ResourceT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_reason;
71
72 Aws::String m_resource;
73 bool m_reasonHasBeenSet = false;
74 bool m_resourceHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ACM
79} // namespace Aws
ThrottlingReason & WithResource(ResourceT &&value)
ThrottlingReason & WithReason(ReasonT &&value)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACM_API ThrottlingReason()=default
void SetResource(ResourceT &&value)
const Aws::String & GetResource() const
const Aws::String & GetReason() const
AWS_ACM_API ThrottlingReason(Aws::Utils::Json::JsonView jsonValue)
AWS_ACM_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