AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
GetServiceQuotaRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/service-quotas/ServiceQuotasRequest.h>
9#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ServiceQuotas {
15namespace Model {
16
20 public:
21 AWS_SERVICEQUOTAS_API GetServiceQuotaRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetServiceQuota"; }
28
29 AWS_SERVICEQUOTAS_API Aws::String SerializePayload() const override;
30
31 AWS_SERVICEQUOTAS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
38 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
39 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
40 template <typename ServiceCodeT = Aws::String>
41 void SetServiceCode(ServiceCodeT&& value) {
42 m_serviceCodeHasBeenSet = true;
43 m_serviceCode = std::forward<ServiceCodeT>(value);
44 }
45 template <typename ServiceCodeT = Aws::String>
46 GetServiceQuotaRequest& WithServiceCode(ServiceCodeT&& value) {
47 SetServiceCode(std::forward<ServiceCodeT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
59 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
60 template <typename QuotaCodeT = Aws::String>
61 void SetQuotaCode(QuotaCodeT&& value) {
62 m_quotaCodeHasBeenSet = true;
63 m_quotaCode = std::forward<QuotaCodeT>(value);
64 }
65 template <typename QuotaCodeT = Aws::String>
67 SetQuotaCode(std::forward<QuotaCodeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetContextId() const { return m_contextId; }
77 inline bool ContextIdHasBeenSet() const { return m_contextIdHasBeenSet; }
78 template <typename ContextIdT = Aws::String>
79 void SetContextId(ContextIdT&& value) {
80 m_contextIdHasBeenSet = true;
81 m_contextId = std::forward<ContextIdT>(value);
82 }
83 template <typename ContextIdT = Aws::String>
85 SetContextId(std::forward<ContextIdT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_serviceCode;
91
92 Aws::String m_quotaCode;
93
94 Aws::String m_contextId;
95 bool m_serviceCodeHasBeenSet = false;
96 bool m_quotaCodeHasBeenSet = false;
97 bool m_contextIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace ServiceQuotas
102} // namespace Aws
AWS_SERVICEQUOTAS_API Aws::String SerializePayload() const override
AWS_SERVICEQUOTAS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetServiceQuotaRequest & WithServiceCode(ServiceCodeT &&value)
GetServiceQuotaRequest & WithQuotaCode(QuotaCodeT &&value)
virtual const char * GetServiceRequestName() const override
GetServiceQuotaRequest & WithContextId(ContextIdT &&value)
AWS_SERVICEQUOTAS_API GetServiceQuotaRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String