AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
ThrottlingException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ivschat/Ivschat_EXPORTS.h>
9#include <aws/ivschat/model/ResourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ivschat {
21namespace Model {
22
29 public:
30 AWS_IVSCHAT_API ThrottlingException() = default;
33 AWS_IVSCHAT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::String& GetMessage() const { return m_message; }
38 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
39 template <typename MessageT = Aws::String>
40 void SetMessage(MessageT&& value) {
41 m_messageHasBeenSet = true;
42 m_message = std::forward<MessageT>(value);
43 }
44 template <typename MessageT = Aws::String>
45 ThrottlingException& WithMessage(MessageT&& value) {
46 SetMessage(std::forward<MessageT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetResourceId() const { return m_resourceId; }
56 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
57 template <typename ResourceIdT = Aws::String>
58 void SetResourceId(ResourceIdT&& value) {
59 m_resourceIdHasBeenSet = true;
60 m_resourceId = std::forward<ResourceIdT>(value);
61 }
62 template <typename ResourceIdT = Aws::String>
63 ThrottlingException& WithResourceId(ResourceIdT&& value) {
64 SetResourceId(std::forward<ResourceIdT>(value));
65 return *this;
66 }
68
70
73 inline ResourceType GetResourceType() const { return m_resourceType; }
74 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
75 inline void SetResourceType(ResourceType value) {
76 m_resourceTypeHasBeenSet = true;
77 m_resourceType = value;
78 }
80 SetResourceType(value);
81 return *this;
82 }
84
86
89 inline int GetLimit() const { return m_limit; }
90 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
91 inline void SetLimit(int value) {
92 m_limitHasBeenSet = true;
93 m_limit = value;
94 }
95 inline ThrottlingException& WithLimit(int value) {
96 SetLimit(value);
97 return *this;
98 }
100 private:
101 Aws::String m_message;
102
103 Aws::String m_resourceId;
104
105 ResourceType m_resourceType{ResourceType::NOT_SET};
106
107 int m_limit{0};
108 bool m_messageHasBeenSet = false;
109 bool m_resourceIdHasBeenSet = false;
110 bool m_resourceTypeHasBeenSet = false;
111 bool m_limitHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace ivschat
116} // namespace Aws
AWS_IVSCHAT_API Aws::Utils::Json::JsonValue Jsonize() const
ThrottlingException & WithResourceType(ResourceType value)
ThrottlingException & WithResourceId(ResourceIdT &&value)
AWS_IVSCHAT_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
ThrottlingException & WithLimit(int value)
AWS_IVSCHAT_API ThrottlingException()=default
AWS_IVSCHAT_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
ThrottlingException & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue