AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateReservationRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace RedshiftServerless
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REDSHIFTSERVERLESS_API CreateReservationRequest() = default;
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 "CreateReservation"; }
32
33 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline int GetCapacity() const { return m_capacity; }
43 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
44 inline void SetCapacity(int value) { m_capacityHasBeenSet = true; m_capacity = value; }
45 inline CreateReservationRequest& WithCapacity(int value) { SetCapacity(value); return *this;}
47
49
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) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
61 template<typename ClientTokenT = Aws::String>
62 CreateReservationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
64
66
70 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
71 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
72 template<typename OfferingIdT = Aws::String>
73 void SetOfferingId(OfferingIdT&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::forward<OfferingIdT>(value); }
74 template<typename OfferingIdT = Aws::String>
75 CreateReservationRequest& WithOfferingId(OfferingIdT&& value) { SetOfferingId(std::forward<OfferingIdT>(value)); return *this;}
77 private:
78
79 int m_capacity{0};
80 bool m_capacityHasBeenSet = false;
81
83 bool m_clientTokenHasBeenSet = true;
84
85 Aws::String m_offeringId;
86 bool m_offeringIdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace RedshiftServerless
91} // 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