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/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/managedblockchain-query/model/ResourceType.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 ManagedBlockchainQuery
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MANAGEDBLOCKCHAINQUERY_API ServiceQuotaExceededException() = default;
37 AWS_MANAGEDBLOCKCHAINQUERY_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MANAGEDBLOCKCHAINQUERY_API ServiceQuotaExceededException& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMessage() const { return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 template<typename MessageT = Aws::String>
49 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
50 template<typename MessageT = Aws::String>
51 ServiceQuotaExceededException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
53
55
58 inline const Aws::String& GetResourceId() const { return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 template<typename ResourceIdT = Aws::String>
61 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
62 template<typename ResourceIdT = Aws::String>
63 ServiceQuotaExceededException& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
65
67
70 inline ResourceType GetResourceType() const { return m_resourceType; }
71 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
72 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
75
77
80 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
81 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
82 template<typename ServiceCodeT = Aws::String>
83 void SetServiceCode(ServiceCodeT&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::forward<ServiceCodeT>(value); }
84 template<typename ServiceCodeT = Aws::String>
85 ServiceQuotaExceededException& WithServiceCode(ServiceCodeT&& value) { SetServiceCode(std::forward<ServiceCodeT>(value)); return *this;}
87
89
92 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
93 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
94 template<typename QuotaCodeT = Aws::String>
95 void SetQuotaCode(QuotaCodeT&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::forward<QuotaCodeT>(value); }
96 template<typename QuotaCodeT = Aws::String>
97 ServiceQuotaExceededException& WithQuotaCode(QuotaCodeT&& value) { SetQuotaCode(std::forward<QuotaCodeT>(value)); return *this;}
99 private:
100
101 Aws::String m_message;
102 bool m_messageHasBeenSet = false;
103
104 Aws::String m_resourceId;
105 bool m_resourceIdHasBeenSet = false;
106
107 ResourceType m_resourceType{ResourceType::NOT_SET};
108 bool m_resourceTypeHasBeenSet = false;
109
110 Aws::String m_serviceCode;
111 bool m_serviceCodeHasBeenSet = false;
112
113 Aws::String m_quotaCode;
114 bool m_quotaCodeHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace ManagedBlockchainQuery
119} // namespace Aws
ServiceQuotaExceededException & WithResourceId(ResourceIdT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MANAGEDBLOCKCHAINQUERY_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API ServiceQuotaExceededException()=default
ServiceQuotaExceededException & WithServiceCode(ServiceCodeT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithQuotaCode(QuotaCodeT &&value)
ServiceQuotaExceededException & WithResourceType(ResourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue