AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateSpendingLimitRequest.h
1
6#pragma once
7#include <aws/braket/BraketRequest.h>
8#include <aws/braket/Braket_EXPORTS.h>
9#include <aws/braket/model/TimePeriod.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Braket {
17namespace Model {
18
22 public:
23 AWS_BRAKET_API UpdateSpendingLimitRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateSpendingLimit"; }
30
31 AWS_BRAKET_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetSpendingLimitArn() const { return m_spendingLimitArn; }
38 inline bool SpendingLimitArnHasBeenSet() const { return m_spendingLimitArnHasBeenSet; }
39 template <typename SpendingLimitArnT = Aws::String>
40 void SetSpendingLimitArn(SpendingLimitArnT&& value) {
41 m_spendingLimitArnHasBeenSet = true;
42 m_spendingLimitArn = std::forward<SpendingLimitArnT>(value);
43 }
44 template <typename SpendingLimitArnT = Aws::String>
46 SetSpendingLimitArn(std::forward<SpendingLimitArnT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetClientToken() const { return m_clientToken; }
58 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
59 template <typename ClientTokenT = Aws::String>
60 void SetClientToken(ClientTokenT&& value) {
61 m_clientTokenHasBeenSet = true;
62 m_clientToken = std::forward<ClientTokenT>(value);
63 }
64 template <typename ClientTokenT = Aws::String>
66 SetClientToken(std::forward<ClientTokenT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetSpendingLimit() const { return m_spendingLimit; }
76 inline bool SpendingLimitHasBeenSet() const { return m_spendingLimitHasBeenSet; }
77 template <typename SpendingLimitT = Aws::String>
78 void SetSpendingLimit(SpendingLimitT&& value) {
79 m_spendingLimitHasBeenSet = true;
80 m_spendingLimit = std::forward<SpendingLimitT>(value);
81 }
82 template <typename SpendingLimitT = Aws::String>
84 SetSpendingLimit(std::forward<SpendingLimitT>(value));
85 return *this;
86 }
88
90
94 inline const TimePeriod& GetTimePeriod() const { return m_timePeriod; }
95 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
96 template <typename TimePeriodT = TimePeriod>
97 void SetTimePeriod(TimePeriodT&& value) {
98 m_timePeriodHasBeenSet = true;
99 m_timePeriod = std::forward<TimePeriodT>(value);
100 }
101 template <typename TimePeriodT = TimePeriod>
103 SetTimePeriod(std::forward<TimePeriodT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_spendingLimitArn;
109
111
112 Aws::String m_spendingLimit;
113
114 TimePeriod m_timePeriod;
115 bool m_spendingLimitArnHasBeenSet = false;
116 bool m_clientTokenHasBeenSet = true;
117 bool m_spendingLimitHasBeenSet = false;
118 bool m_timePeriodHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Braket
123} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateSpendingLimitRequest & WithSpendingLimitArn(SpendingLimitArnT &&value)
AWS_BRAKET_API UpdateSpendingLimitRequest()=default
AWS_BRAKET_API Aws::String SerializePayload() const override
UpdateSpendingLimitRequest & WithSpendingLimit(SpendingLimitT &&value)
UpdateSpendingLimitRequest & WithTimePeriod(TimePeriodT &&value)
UpdateSpendingLimitRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String