AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateUsageLimitRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/redshift-serverless/model/UsageLimitBreachAction.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RedshiftServerless
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REDSHIFTSERVERLESS_API UpdateUsageLimitRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateUsageLimit"; }
32
33 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
45 inline long long GetAmount() const { return m_amount; }
46 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
47 inline void SetAmount(long long value) { m_amountHasBeenSet = true; m_amount = value; }
48 inline UpdateUsageLimitRequest& WithAmount(long long value) { SetAmount(value); return *this;}
50
52
56 inline UsageLimitBreachAction GetBreachAction() const { return m_breachAction; }
57 inline bool BreachActionHasBeenSet() const { return m_breachActionHasBeenSet; }
58 inline void SetBreachAction(UsageLimitBreachAction value) { m_breachActionHasBeenSet = true; m_breachAction = value; }
61
63
66 inline const Aws::String& GetUsageLimitId() const { return m_usageLimitId; }
67 inline bool UsageLimitIdHasBeenSet() const { return m_usageLimitIdHasBeenSet; }
68 template<typename UsageLimitIdT = Aws::String>
69 void SetUsageLimitId(UsageLimitIdT&& value) { m_usageLimitIdHasBeenSet = true; m_usageLimitId = std::forward<UsageLimitIdT>(value); }
70 template<typename UsageLimitIdT = Aws::String>
71 UpdateUsageLimitRequest& WithUsageLimitId(UsageLimitIdT&& value) { SetUsageLimitId(std::forward<UsageLimitIdT>(value)); return *this;}
73 private:
74
75 long long m_amount{0};
76 bool m_amountHasBeenSet = false;
77
79 bool m_breachActionHasBeenSet = false;
80
81 Aws::String m_usageLimitId;
82 bool m_usageLimitIdHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace RedshiftServerless
87} // namespace Aws
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_REDSHIFTSERVERLESS_API UpdateUsageLimitRequest()=default
UpdateUsageLimitRequest & WithBreachAction(UsageLimitBreachAction value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
UpdateUsageLimitRequest & WithAmount(long long value)
UpdateUsageLimitRequest & WithUsageLimitId(UsageLimitIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String