AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ServiceLimitExceeded.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fsx/FSx_EXPORTS.h>
9#include <aws/fsx/model/ServiceLimit.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FSx {
21namespace Model {
22
31 public:
32 AWS_FSX_API ServiceLimitExceeded() = default;
36
38
41 inline ServiceLimit GetLimit() const { return m_limit; }
42 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
43 inline void SetLimit(ServiceLimit value) {
44 m_limitHasBeenSet = true;
45 m_limit = value;
46 }
48 SetLimit(value);
49 return *this;
50 }
52
54
55 inline const Aws::String& GetMessage() const { return m_message; }
56 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
57 template <typename MessageT = Aws::String>
58 void SetMessage(MessageT&& value) {
59 m_messageHasBeenSet = true;
60 m_message = std::forward<MessageT>(value);
61 }
62 template <typename MessageT = Aws::String>
63 ServiceLimitExceeded& WithMessage(MessageT&& value) {
64 SetMessage(std::forward<MessageT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::String m_message;
72 bool m_limitHasBeenSet = false;
73 bool m_messageHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace FSx
78} // namespace Aws
AWS_FSX_API ServiceLimitExceeded & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceLimitExceeded & WithLimit(ServiceLimit value)
AWS_FSX_API ServiceLimitExceeded(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FSX_API ServiceLimitExceeded()=default
ServiceLimitExceeded & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue