AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateSpendingLimitRequest.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/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Braket {
18namespace Model {
19
23 public:
24 AWS_BRAKET_API CreateSpendingLimitRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSpendingLimit"; }
31
32 AWS_BRAKET_API Aws::String SerializePayload() const override;
33
35
40 inline const Aws::String& GetClientToken() const { return m_clientToken; }
41 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
42 template <typename ClientTokenT = Aws::String>
43 void SetClientToken(ClientTokenT&& value) {
44 m_clientTokenHasBeenSet = true;
45 m_clientToken = std::forward<ClientTokenT>(value);
46 }
47 template <typename ClientTokenT = Aws::String>
49 SetClientToken(std::forward<ClientTokenT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
60 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
61 template <typename DeviceArnT = Aws::String>
62 void SetDeviceArn(DeviceArnT&& value) {
63 m_deviceArnHasBeenSet = true;
64 m_deviceArn = std::forward<DeviceArnT>(value);
65 }
66 template <typename DeviceArnT = Aws::String>
68 SetDeviceArn(std::forward<DeviceArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetSpendingLimit() const { return m_spendingLimit; }
78 inline bool SpendingLimitHasBeenSet() const { return m_spendingLimitHasBeenSet; }
79 template <typename SpendingLimitT = Aws::String>
80 void SetSpendingLimit(SpendingLimitT&& value) {
81 m_spendingLimitHasBeenSet = true;
82 m_spendingLimit = std::forward<SpendingLimitT>(value);
83 }
84 template <typename SpendingLimitT = Aws::String>
86 SetSpendingLimit(std::forward<SpendingLimitT>(value));
87 return *this;
88 }
90
92
96 inline const TimePeriod& GetTimePeriod() const { return m_timePeriod; }
97 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
98 template <typename TimePeriodT = TimePeriod>
99 void SetTimePeriod(TimePeriodT&& value) {
100 m_timePeriodHasBeenSet = true;
101 m_timePeriod = std::forward<TimePeriodT>(value);
102 }
103 template <typename TimePeriodT = TimePeriod>
105 SetTimePeriod(std::forward<TimePeriodT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 void SetTags(TagsT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags = std::forward<TagsT>(value);
121 }
122 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 SetTags(std::forward<TagsT>(value));
125 return *this;
126 }
127 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
128 CreateSpendingLimitRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
131 return *this;
132 }
134 private:
136
137 Aws::String m_deviceArn;
138
139 Aws::String m_spendingLimit;
140
141 TimePeriod m_timePeriod;
142
144 bool m_clientTokenHasBeenSet = true;
145 bool m_deviceArnHasBeenSet = false;
146 bool m_spendingLimitHasBeenSet = false;
147 bool m_timePeriodHasBeenSet = false;
148 bool m_tagsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace Braket
153} // namespace Aws
CreateSpendingLimitRequest & WithTimePeriod(TimePeriodT &&value)
CreateSpendingLimitRequest & WithSpendingLimit(SpendingLimitT &&value)
CreateSpendingLimitRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_BRAKET_API Aws::String SerializePayload() const override
CreateSpendingLimitRequest & WithClientToken(ClientTokenT &&value)
CreateSpendingLimitRequest & WithDeviceArn(DeviceArnT &&value)
AWS_BRAKET_API CreateSpendingLimitRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSpendingLimitRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String