AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateReservationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
10#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace RedshiftServerless {
16namespace Model {
17
21 public:
22 AWS_REDSHIFTSERVERLESS_API CreateReservationRequest() = 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 "CreateReservation"; }
29
30 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
31
32 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline int GetCapacity() const { return m_capacity; }
39 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
40 inline void SetCapacity(int value) {
41 m_capacityHasBeenSet = true;
42 m_capacity = value;
43 }
45 SetCapacity(value);
46 return *this;
47 }
49
51
59 inline const Aws::String& GetClientToken() const { return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 template <typename ClientTokenT = Aws::String>
62 void SetClientToken(ClientTokenT&& value) {
63 m_clientTokenHasBeenSet = true;
64 m_clientToken = std::forward<ClientTokenT>(value);
65 }
66 template <typename ClientTokenT = Aws::String>
68 SetClientToken(std::forward<ClientTokenT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
79 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
80 template <typename OfferingIdT = Aws::String>
81 void SetOfferingId(OfferingIdT&& value) {
82 m_offeringIdHasBeenSet = true;
83 m_offeringId = std::forward<OfferingIdT>(value);
84 }
85 template <typename OfferingIdT = Aws::String>
87 SetOfferingId(std::forward<OfferingIdT>(value));
88 return *this;
89 }
91 private:
92 int m_capacity{0};
93
95
96 Aws::String m_offeringId;
97 bool m_capacityHasBeenSet = false;
98 bool m_clientTokenHasBeenSet = true;
99 bool m_offeringIdHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace RedshiftServerless
104} // namespace Aws
AWS_REDSHIFTSERVERLESS_API CreateReservationRequest()=default
CreateReservationRequest & WithClientToken(ClientTokenT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateReservationRequest & WithOfferingId(OfferingIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String