AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ThrottlingException.h
1
6#pragma once
7#include <aws/AWSMigrationHub/MigrationHub_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 MigrationHub {
20namespace Model {
21
29 public:
30 AWS_MIGRATIONHUB_API ThrottlingException() = default;
31 AWS_MIGRATIONHUB_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMessage() const { return m_message; }
40 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
41 template <typename MessageT = Aws::String>
42 void SetMessage(MessageT&& value) {
43 m_messageHasBeenSet = true;
44 m_message = std::forward<MessageT>(value);
45 }
46 template <typename MessageT = Aws::String>
47 ThrottlingException& WithMessage(MessageT&& value) {
48 SetMessage(std::forward<MessageT>(value));
49 return *this;
50 }
52
54
57 inline int GetRetryAfterSeconds() const { return m_retryAfterSeconds; }
58 inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
59 inline void SetRetryAfterSeconds(int value) {
60 m_retryAfterSecondsHasBeenSet = true;
61 m_retryAfterSeconds = value;
62 }
65 return *this;
66 }
68 private:
69 Aws::String m_message;
70
71 int m_retryAfterSeconds{0};
72 bool m_messageHasBeenSet = false;
73 bool m_retryAfterSecondsHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace MigrationHub
78} // namespace Aws
ThrottlingException & WithRetryAfterSeconds(int value)
ThrottlingException & WithMessage(MessageT &&value)
AWS_MIGRATIONHUB_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MIGRATIONHUB_API ThrottlingException()=default
AWS_MIGRATIONHUB_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue