AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PayloadTooLargeException.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appconfig/model/BytesMeasure.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppConfig
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPCONFIG_API PayloadTooLargeException() = default;
38 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const Aws::String& GetMessage() const { return m_message; }
44 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 template<typename MessageT = Aws::String>
46 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
47 template<typename MessageT = Aws::String>
48 PayloadTooLargeException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
50
52
53 inline BytesMeasure GetMeasure() const { return m_measure; }
54 inline bool MeasureHasBeenSet() const { return m_measureHasBeenSet; }
55 inline void SetMeasure(BytesMeasure value) { m_measureHasBeenSet = true; m_measure = value; }
56 inline PayloadTooLargeException& WithMeasure(BytesMeasure value) { SetMeasure(value); return *this;}
58
60
61 inline double GetLimit() const { return m_limit; }
62 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
63 inline void SetLimit(double value) { m_limitHasBeenSet = true; m_limit = value; }
64 inline PayloadTooLargeException& WithLimit(double value) { SetLimit(value); return *this;}
66
68
69 inline double GetSize() const { return m_size; }
70 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
71 inline void SetSize(double value) { m_sizeHasBeenSet = true; m_size = value; }
72 inline PayloadTooLargeException& WithSize(double value) { SetSize(value); return *this;}
74 private:
75
76 Aws::String m_message;
77 bool m_messageHasBeenSet = false;
78
80 bool m_measureHasBeenSet = false;
81
82 double m_limit{0.0};
83 bool m_limitHasBeenSet = false;
84
85 double m_size{0.0};
86 bool m_sizeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace AppConfig
91} // 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