1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace LookoutMetrics
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>The request exceeded the service's quotas. Check the service quotas and try
28    * again.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ServiceQuotaExceededException">AWS
30    * API Reference</a></p>
31    */
32   class AWS_LOOKOUTMETRICS_API ServiceQuotaExceededException
33   {
34   public:
35     ServiceQuotaExceededException();
36     ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue);
37     ServiceQuotaExceededException& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41 
GetMessage()42     inline const Aws::String& GetMessage() const{ return m_message; }
43 
44 
MessageHasBeenSet()45     inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 
47 
SetMessage(const Aws::String & value)48     inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 
50 
SetMessage(Aws::String && value)51     inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 
53 
SetMessage(const char * value)54     inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
55 
56 
WithMessage(const Aws::String & value)57     inline ServiceQuotaExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
WithMessage(Aws::String && value)60     inline ServiceQuotaExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
WithMessage(const char * value)63     inline ServiceQuotaExceededException& WithMessage(const char* value) { SetMessage(value); return *this;}
64 
65 
66     /**
67      * <p>The ID of the resource.</p>
68      */
GetResourceId()69     inline const Aws::String& GetResourceId() const{ return m_resourceId; }
70 
71     /**
72      * <p>The ID of the resource.</p>
73      */
ResourceIdHasBeenSet()74     inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
75 
76     /**
77      * <p>The ID of the resource.</p>
78      */
SetResourceId(const Aws::String & value)79     inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
80 
81     /**
82      * <p>The ID of the resource.</p>
83      */
SetResourceId(Aws::String && value)84     inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
85 
86     /**
87      * <p>The ID of the resource.</p>
88      */
SetResourceId(const char * value)89     inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
90 
91     /**
92      * <p>The ID of the resource.</p>
93      */
WithResourceId(const Aws::String & value)94     inline ServiceQuotaExceededException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
95 
96     /**
97      * <p>The ID of the resource.</p>
98      */
WithResourceId(Aws::String && value)99     inline ServiceQuotaExceededException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
100 
101     /**
102      * <p>The ID of the resource.</p>
103      */
WithResourceId(const char * value)104     inline ServiceQuotaExceededException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
105 
106 
107     /**
108      * <p>The type of the resource.</p>
109      */
GetResourceType()110     inline const Aws::String& GetResourceType() const{ return m_resourceType; }
111 
112     /**
113      * <p>The type of the resource.</p>
114      */
ResourceTypeHasBeenSet()115     inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
116 
117     /**
118      * <p>The type of the resource.</p>
119      */
SetResourceType(const Aws::String & value)120     inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
121 
122     /**
123      * <p>The type of the resource.</p>
124      */
SetResourceType(Aws::String && value)125     inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
126 
127     /**
128      * <p>The type of the resource.</p>
129      */
SetResourceType(const char * value)130     inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
131 
132     /**
133      * <p>The type of the resource.</p>
134      */
WithResourceType(const Aws::String & value)135     inline ServiceQuotaExceededException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
136 
137     /**
138      * <p>The type of the resource.</p>
139      */
WithResourceType(Aws::String && value)140     inline ServiceQuotaExceededException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
141 
142     /**
143      * <p>The type of the resource.</p>
144      */
WithResourceType(const char * value)145     inline ServiceQuotaExceededException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
146 
147 
148     /**
149      * <p>The quota code.</p>
150      */
GetQuotaCode()151     inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
152 
153     /**
154      * <p>The quota code.</p>
155      */
QuotaCodeHasBeenSet()156     inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
157 
158     /**
159      * <p>The quota code.</p>
160      */
SetQuotaCode(const Aws::String & value)161     inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
162 
163     /**
164      * <p>The quota code.</p>
165      */
SetQuotaCode(Aws::String && value)166     inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
167 
168     /**
169      * <p>The quota code.</p>
170      */
SetQuotaCode(const char * value)171     inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
172 
173     /**
174      * <p>The quota code.</p>
175      */
WithQuotaCode(const Aws::String & value)176     inline ServiceQuotaExceededException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
177 
178     /**
179      * <p>The quota code.</p>
180      */
WithQuotaCode(Aws::String && value)181     inline ServiceQuotaExceededException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
182 
183     /**
184      * <p>The quota code.</p>
185      */
WithQuotaCode(const char * value)186     inline ServiceQuotaExceededException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
187 
188 
189     /**
190      * <p>The service code.</p>
191      */
GetServiceCode()192     inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
193 
194     /**
195      * <p>The service code.</p>
196      */
ServiceCodeHasBeenSet()197     inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
198 
199     /**
200      * <p>The service code.</p>
201      */
SetServiceCode(const Aws::String & value)202     inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
203 
204     /**
205      * <p>The service code.</p>
206      */
SetServiceCode(Aws::String && value)207     inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
208 
209     /**
210      * <p>The service code.</p>
211      */
SetServiceCode(const char * value)212     inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
213 
214     /**
215      * <p>The service code.</p>
216      */
WithServiceCode(const Aws::String & value)217     inline ServiceQuotaExceededException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
218 
219     /**
220      * <p>The service code.</p>
221      */
WithServiceCode(Aws::String && value)222     inline ServiceQuotaExceededException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
223 
224     /**
225      * <p>The service code.</p>
226      */
WithServiceCode(const char * value)227     inline ServiceQuotaExceededException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
228 
229   private:
230 
231     Aws::String m_message;
232     bool m_messageHasBeenSet;
233 
234     Aws::String m_resourceId;
235     bool m_resourceIdHasBeenSet;
236 
237     Aws::String m_resourceType;
238     bool m_resourceTypeHasBeenSet;
239 
240     Aws::String m_quotaCode;
241     bool m_quotaCodeHasBeenSet;
242 
243     Aws::String m_serviceCode;
244     bool m_serviceCodeHasBeenSet;
245   };
246 
247 } // namespace Model
248 } // namespace LookoutMetrics
249 } // namespace Aws
250