AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/backup-external/BackupExternal_EXPORTS.h>
8#include <aws/backup-external/model/ServiceQuotaResourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BackupExternal {
21namespace Model {
22
29 public:
30 AWS_BACKUPEXTERNAL_API ServiceQuotaExceededException() = default;
33 AWS_BACKUPEXTERNAL_API Aws::Utils::Json::JsonValue Jsonize() const;
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
55 inline ServiceQuotaResourceType GetResourceType() const { return m_resourceType; }
56 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
58 m_resourceTypeHasBeenSet = true;
59 m_resourceType = value;
60 }
66
68
72 inline const Aws::String& GetResourceId() const { return m_resourceId; }
73 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
74 template <typename ResourceIdT = Aws::String>
75 void SetResourceId(ResourceIdT&& value) {
76 m_resourceIdHasBeenSet = true;
77 m_resourceId = std::forward<ResourceIdT>(value);
78 }
79 template <typename ResourceIdT = Aws::String>
81 SetResourceId(std::forward<ResourceIdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
91 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
92 template <typename ServiceCodeT = Aws::String>
93 void SetServiceCode(ServiceCodeT&& value) {
94 m_serviceCodeHasBeenSet = true;
95 m_serviceCode = std::forward<ServiceCodeT>(value);
96 }
97 template <typename ServiceCodeT = Aws::String>
99 SetServiceCode(std::forward<ServiceCodeT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_message;
105
107
108 Aws::String m_resourceId;
109
110 Aws::String m_serviceCode;
111 bool m_messageHasBeenSet = false;
112 bool m_resourceTypeHasBeenSet = false;
113 bool m_resourceIdHasBeenSet = false;
114 bool m_serviceCodeHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace BackupExternal
119} // namespace Aws
ServiceQuotaExceededException & WithServiceCode(ServiceCodeT &&value)
AWS_BACKUPEXTERNAL_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUPEXTERNAL_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithMessage(MessageT &&value)
AWS_BACKUPEXTERNAL_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceQuotaExceededException & WithResourceType(ServiceQuotaResourceType value)
AWS_BACKUPEXTERNAL_API ServiceQuotaExceededException()=default
ServiceQuotaExceededException & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue