AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
49 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
50 inline ServiceQuotaExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
51 inline ServiceQuotaExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
52 inline ServiceQuotaExceededException& WithMessage(const char* value) { SetMessage(value); return *this;}
54
56
59 inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
60 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
61 inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
62 inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
63 inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
64 inline ServiceQuotaExceededException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
65 inline ServiceQuotaExceededException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
66 inline ServiceQuotaExceededException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
68
70
73 inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; }
74 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
75 inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
76 inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
77 inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); }
80 inline ServiceQuotaExceededException& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;}
82
84
87 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
88 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
89 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
90 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
91 inline ServiceQuotaExceededException& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
92 inline ServiceQuotaExceededException& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
94
96
99 inline const ServiceCode& GetServiceCode() const{ return m_serviceCode; }
100 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
101 inline void SetServiceCode(const ServiceCode& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
102 inline void SetServiceCode(ServiceCode&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
103 inline ServiceQuotaExceededException& WithServiceCode(const ServiceCode& value) { SetServiceCode(value); return *this;}
104 inline ServiceQuotaExceededException& WithServiceCode(ServiceCode&& value) { SetServiceCode(std::move(value)); return *this;}
106 private:
107
108 Aws::String m_message;
109 bool m_messageHasBeenSet = false;
110
111 Aws::String m_quotaCode;
112 bool m_quotaCodeHasBeenSet = false;
113
114 Aws::String m_resourceIdentifier;
115 bool m_resourceIdentifierHasBeenSet = false;
116
117 ResourceType m_resourceType;
118 bool m_resourceTypeHasBeenSet = false;
119
120 ServiceCode m_serviceCode;
121 bool m_serviceCodeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace SSMIncidents
126} // namespace Aws
ServiceQuotaExceededException & WithMessage(const char *value)
AWS_SSMINCIDENTS_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithMessage(const Aws::String &value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceQuotaExceededException & WithResourceType(ResourceType &&value)
ServiceQuotaExceededException & WithResourceType(const ResourceType &value)
ServiceQuotaExceededException & WithQuotaCode(const Aws::String &value)
ServiceQuotaExceededException & WithResourceIdentifier(Aws::String &&value)
ServiceQuotaExceededException & WithResourceIdentifier(const Aws::String &value)
ServiceQuotaExceededException & WithQuotaCode(Aws::String &&value)
ServiceQuotaExceededException & WithQuotaCode(const char *value)
ServiceQuotaExceededException & WithResourceIdentifier(const char *value)
AWS_SSMINCIDENTS_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithServiceCode(const ServiceCode &value)
ServiceQuotaExceededException & WithServiceCode(ServiceCode &&value)
ServiceQuotaExceededException & WithMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue