AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PayloadTooLargeException.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/BytesMeasure.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 AppConfig {
21namespace Model {
22
29 public:
30 AWS_APPCONFIG_API PayloadTooLargeException() = default;
33 AWS_APPCONFIG_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>
46 SetMessage(std::forward<MessageT>(value));
47 return *this;
48 }
50
52
53 inline BytesMeasure GetMeasure() const { return m_measure; }
54 inline bool MeasureHasBeenSet() const { return m_measureHasBeenSet; }
55 inline void SetMeasure(BytesMeasure value) {
56 m_measureHasBeenSet = true;
57 m_measure = value;
58 }
60 SetMeasure(value);
61 return *this;
62 }
64
66
67 inline double GetLimit() const { return m_limit; }
68 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
69 inline void SetLimit(double value) {
70 m_limitHasBeenSet = true;
71 m_limit = value;
72 }
73 inline PayloadTooLargeException& WithLimit(double value) {
74 SetLimit(value);
75 return *this;
76 }
78
80
81 inline double GetSize() const { return m_size; }
82 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
83 inline void SetSize(double value) {
84 m_sizeHasBeenSet = true;
85 m_size = value;
86 }
87 inline PayloadTooLargeException& WithSize(double value) {
88 SetSize(value);
89 return *this;
90 }
92 private:
93 Aws::String m_message;
94
96
97 double m_limit{0.0};
98
99 double m_size{0.0};
100 bool m_messageHasBeenSet = false;
101 bool m_measureHasBeenSet = false;
102 bool m_limitHasBeenSet = false;
103 bool m_sizeHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace AppConfig
108} // namespace Aws
AWS_APPCONFIG_API PayloadTooLargeException(Aws::Utils::Json::JsonView jsonValue)
PayloadTooLargeException & WithMeasure(BytesMeasure value)
PayloadTooLargeException & WithLimit(double value)
PayloadTooLargeException & WithMessage(MessageT &&value)
AWS_APPCONFIG_API PayloadTooLargeException()=default
PayloadTooLargeException & WithSize(double value)
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPCONFIG_API PayloadTooLargeException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue