AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateConsumableResourceRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Batch {
16namespace Model {
17
21 public:
22 AWS_BATCH_API UpdateConsumableResourceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateConsumableResource"; }
29
30 AWS_BATCH_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetConsumableResource() const { return m_consumableResource; }
37 inline bool ConsumableResourceHasBeenSet() const { return m_consumableResourceHasBeenSet; }
38 template <typename ConsumableResourceT = Aws::String>
39 void SetConsumableResource(ConsumableResourceT&& value) {
40 m_consumableResourceHasBeenSet = true;
41 m_consumableResource = std::forward<ConsumableResourceT>(value);
42 }
43 template <typename ConsumableResourceT = Aws::String>
45 SetConsumableResource(std::forward<ConsumableResourceT>(value));
46 return *this;
47 }
49
51
60 inline const Aws::String& GetOperation() const { return m_operation; }
61 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
62 template <typename OperationT = Aws::String>
63 void SetOperation(OperationT&& value) {
64 m_operationHasBeenSet = true;
65 m_operation = std::forward<OperationT>(value);
66 }
67 template <typename OperationT = Aws::String>
69 SetOperation(std::forward<OperationT>(value));
70 return *this;
71 }
73
75
81 inline long long GetQuantity() const { return m_quantity; }
82 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
83 inline void SetQuantity(long long value) {
84 m_quantityHasBeenSet = true;
85 m_quantity = value;
86 }
88 SetQuantity(value);
89 return *this;
90 }
92
94
100 inline const Aws::String& GetClientToken() const { return m_clientToken; }
101 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
102 template <typename ClientTokenT = Aws::String>
103 void SetClientToken(ClientTokenT&& value) {
104 m_clientTokenHasBeenSet = true;
105 m_clientToken = std::forward<ClientTokenT>(value);
106 }
107 template <typename ClientTokenT = Aws::String>
109 SetClientToken(std::forward<ClientTokenT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_consumableResource;
115
116 Aws::String m_operation;
117
118 long long m_quantity{0};
119
121 bool m_consumableResourceHasBeenSet = false;
122 bool m_operationHasBeenSet = false;
123 bool m_quantityHasBeenSet = false;
124 bool m_clientTokenHasBeenSet = true;
125};
126
127} // namespace Model
128} // namespace Batch
129} // namespace Aws
UpdateConsumableResourceRequest & WithQuantity(long long value)
UpdateConsumableResourceRequest & WithConsumableResource(ConsumableResourceT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
UpdateConsumableResourceRequest & WithOperation(OperationT &&value)
UpdateConsumableResourceRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String