AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/detective/Detective_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 Detective
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_DETECTIVE_API ServiceQuotaExceededException() = default;
44 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
49 inline const Aws::String& GetMessage() const { return m_message; }
50 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
51 template<typename MessageT = Aws::String>
52 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
53 template<typename MessageT = Aws::String>
54 ServiceQuotaExceededException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
62 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
63 template<typename ResourcesT = Aws::Vector<Aws::String>>
64 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
65 template<typename ResourcesT = Aws::Vector<Aws::String>>
66 ServiceQuotaExceededException& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
67 template<typename ResourcesT = Aws::String>
68 ServiceQuotaExceededException& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
70 private:
71
72 Aws::String m_message;
73 bool m_messageHasBeenSet = false;
74
75 Aws::Vector<Aws::String> m_resources;
76 bool m_resourcesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Detective
81} // namespace Aws
ServiceQuotaExceededException & AddResources(ResourcesT &&value)
AWS_DETECTIVE_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DETECTIVE_API ServiceQuotaExceededException()=default
AWS_DETECTIVE_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceQuotaExceededException & WithResources(ResourcesT &&value)
ServiceQuotaExceededException & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue