AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LimitExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dlm/DLM_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DLM {
20namespace Model {
21
29 public:
30 AWS_DLM_API LimitExceededException() = default;
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 const Aws::String& GetCode() const { return m_code; }
54 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
55 template <typename CodeT = Aws::String>
56 void SetCode(CodeT&& value) {
57 m_codeHasBeenSet = true;
58 m_code = std::forward<CodeT>(value);
59 }
60 template <typename CodeT = Aws::String>
62 SetCode(std::forward<CodeT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetResourceType() const { return m_resourceType; }
72 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
73 template <typename ResourceTypeT = Aws::String>
74 void SetResourceType(ResourceTypeT&& value) {
75 m_resourceTypeHasBeenSet = true;
76 m_resourceType = std::forward<ResourceTypeT>(value);
77 }
78 template <typename ResourceTypeT = Aws::String>
79 LimitExceededException& WithResourceType(ResourceTypeT&& value) {
80 SetResourceType(std::forward<ResourceTypeT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_message;
86
87 Aws::String m_code;
88
89 Aws::String m_resourceType;
90 bool m_messageHasBeenSet = false;
91 bool m_codeHasBeenSet = false;
92 bool m_resourceTypeHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace DLM
97} // namespace Aws
AWS_DLM_API LimitExceededException(Aws::Utils::Json::JsonView jsonValue)
LimitExceededException & WithMessage(MessageT &&value)
AWS_DLM_API LimitExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
LimitExceededException & WithCode(CodeT &&value)
AWS_DLM_API LimitExceededException()=default
LimitExceededException & WithResourceType(ResourceTypeT &&value)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue