AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ThrottlingException.h
1
6#pragma once
7#include <aws/agent-discovery/AgentDiscovery_EXPORTS.h>
8#include <aws/agent-discovery/model/ArdErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AgentDiscovery {
21namespace Model {
22
30 public:
31 AWS_AGENTDISCOVERY_API ThrottlingException() = default;
32 AWS_AGENTDISCOVERY_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AGENTDISCOVERY_API ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AGENTDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetMessage() const { return m_message; }
39 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
40 template <typename MessageT = Aws::String>
41 void SetMessage(MessageT&& value) {
42 m_messageHasBeenSet = true;
43 m_message = std::forward<MessageT>(value);
44 }
45 template <typename MessageT = Aws::String>
46 ThrottlingException& WithMessage(MessageT&& value) {
47 SetMessage(std::forward<MessageT>(value));
48 return *this;
49 }
51
53
54 inline ArdErrorCode GetErrorCode() const { return m_errorCode; }
55 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
56 inline void SetErrorCode(ArdErrorCode value) {
57 m_errorCodeHasBeenSet = true;
58 m_errorCode = value;
59 }
61 SetErrorCode(value);
62 return *this;
63 }
65 private:
66 Aws::String m_message;
67
69 bool m_messageHasBeenSet = false;
70 bool m_errorCodeHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace AgentDiscovery
75} // namespace Aws
ThrottlingException & WithErrorCode(ArdErrorCode value)
AWS_AGENTDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AGENTDISCOVERY_API ThrottlingException()=default
AWS_AGENTDISCOVERY_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
AWS_AGENTDISCOVERY_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