AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/detective/Detective_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Detective {
21namespace Model {
22
35 public:
36 AWS_DETECTIVE_API ServiceQuotaExceededException() = default;
39 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
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) {
47 m_messageHasBeenSet = true;
48 m_message = std::forward<MessageT>(value);
49 }
50 template <typename MessageT = Aws::String>
52 SetMessage(std::forward<MessageT>(value));
53 return *this;
54 }
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) {
65 m_resourcesHasBeenSet = true;
66 m_resources = std::forward<ResourcesT>(value);
67 }
68 template <typename ResourcesT = Aws::Vector<Aws::String>>
70 SetResources(std::forward<ResourcesT>(value));
71 return *this;
72 }
73 template <typename ResourcesT = Aws::String>
75 m_resourcesHasBeenSet = true;
76 m_resources.emplace_back(std::forward<ResourcesT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_message;
82
83 Aws::Vector<Aws::String> m_resources;
84 bool m_messageHasBeenSet = false;
85 bool m_resourcesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Detective
90} // 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