AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyUsageLimitRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/UsageLimitBreachAction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REDSHIFT_API ModifyUsageLimitRequest();
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 "ModifyUsageLimit"; }
32
33 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetUsageLimitId() const{ return m_usageLimitId; }
45 inline bool UsageLimitIdHasBeenSet() const { return m_usageLimitIdHasBeenSet; }
46 inline void SetUsageLimitId(const Aws::String& value) { m_usageLimitIdHasBeenSet = true; m_usageLimitId = value; }
47 inline void SetUsageLimitId(Aws::String&& value) { m_usageLimitIdHasBeenSet = true; m_usageLimitId = std::move(value); }
48 inline void SetUsageLimitId(const char* value) { m_usageLimitIdHasBeenSet = true; m_usageLimitId.assign(value); }
49 inline ModifyUsageLimitRequest& WithUsageLimitId(const Aws::String& value) { SetUsageLimitId(value); return *this;}
50 inline ModifyUsageLimitRequest& WithUsageLimitId(Aws::String&& value) { SetUsageLimitId(std::move(value)); return *this;}
51 inline ModifyUsageLimitRequest& WithUsageLimitId(const char* value) { SetUsageLimitId(value); return *this;}
53
55
59 inline long long GetAmount() const{ return m_amount; }
60 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
61 inline void SetAmount(long long value) { m_amountHasBeenSet = true; m_amount = value; }
62 inline ModifyUsageLimitRequest& WithAmount(long long value) { SetAmount(value); return *this;}
64
66
70 inline const UsageLimitBreachAction& GetBreachAction() const{ return m_breachAction; }
71 inline bool BreachActionHasBeenSet() const { return m_breachActionHasBeenSet; }
72 inline void SetBreachAction(const UsageLimitBreachAction& value) { m_breachActionHasBeenSet = true; m_breachAction = value; }
73 inline void SetBreachAction(UsageLimitBreachAction&& value) { m_breachActionHasBeenSet = true; m_breachAction = std::move(value); }
75 inline ModifyUsageLimitRequest& WithBreachAction(UsageLimitBreachAction&& value) { SetBreachAction(std::move(value)); return *this;}
77 private:
78
79 Aws::String m_usageLimitId;
80 bool m_usageLimitIdHasBeenSet = false;
81
82 long long m_amount;
83 bool m_amountHasBeenSet = false;
84
85 UsageLimitBreachAction m_breachAction;
86 bool m_breachActionHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Redshift
91} // namespace Aws
ModifyUsageLimitRequest & WithUsageLimitId(const Aws::String &value)
ModifyUsageLimitRequest & WithBreachAction(UsageLimitBreachAction &&value)
ModifyUsageLimitRequest & WithBreachAction(const UsageLimitBreachAction &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyUsageLimitRequest & WithAmount(long long value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
ModifyUsageLimitRequest & WithUsageLimitId(const char *value)
const UsageLimitBreachAction & GetBreachAction() const
void SetBreachAction(UsageLimitBreachAction &&value)
virtual const char * GetServiceRequestName() const override
ModifyUsageLimitRequest & WithUsageLimitId(Aws::String &&value)
void SetBreachAction(const UsageLimitBreachAction &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String