AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-incidents/model/ResourceType.h>
10#include <aws/ssm-incidents/model/ServiceCode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSMIncidents
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSMINCIDENTS_API ServiceQuotaExceededException() = default;
40 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetMessage() const { return m_message; }
46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 template<typename MessageT = Aws::String>
48 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
49 template<typename MessageT = Aws::String>
50 ServiceQuotaExceededException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
52
54
57 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
58 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
59 template<typename QuotaCodeT = Aws::String>
60 void SetQuotaCode(QuotaCodeT&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::forward<QuotaCodeT>(value); }
61 template<typename QuotaCodeT = Aws::String>
62 ServiceQuotaExceededException& WithQuotaCode(QuotaCodeT&& value) { SetQuotaCode(std::forward<QuotaCodeT>(value)); return *this;}
64
66
69 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
70 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
71 template<typename ResourceIdentifierT = Aws::String>
72 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
73 template<typename ResourceIdentifierT = Aws::String>
74 ServiceQuotaExceededException& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
76
78
81 inline ResourceType GetResourceType() const { return m_resourceType; }
82 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
83 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
86
88
91 inline ServiceCode GetServiceCode() const { return m_serviceCode; }
92 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
93 inline void SetServiceCode(ServiceCode value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
96 private:
97
98 Aws::String m_message;
99 bool m_messageHasBeenSet = false;
100
101 Aws::String m_quotaCode;
102 bool m_quotaCodeHasBeenSet = false;
103
104 Aws::String m_resourceIdentifier;
105 bool m_resourceIdentifierHasBeenSet = false;
106
107 ResourceType m_resourceType{ResourceType::NOT_SET};
108 bool m_resourceTypeHasBeenSet = false;
109
110 ServiceCode m_serviceCode{ServiceCode::NOT_SET};
111 bool m_serviceCodeHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace SSMIncidents
116} // namespace Aws
ServiceQuotaExceededException & WithResourceType(ResourceType value)
AWS_SSMINCIDENTS_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithResourceIdentifier(ResourceIdentifierT &&value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSMINCIDENTS_API ServiceQuotaExceededException()=default
ServiceQuotaExceededException & WithServiceCode(ServiceCode value)
ServiceQuotaExceededException & WithQuotaCode(QuotaCodeT &&value)
ServiceQuotaExceededException & WithMessage(MessageT &&value)
AWS_SSMINCIDENTS_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue