AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PurchaseOfferingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devicefarm/DeviceFarmRequest.h>
9#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace DeviceFarm {
15namespace Model {
16
23 public:
24 AWS_DEVICEFARM_API PurchaseOfferingRequest() = 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 "PurchaseOffering"; }
31
32 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
41 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
42 template <typename OfferingIdT = Aws::String>
43 void SetOfferingId(OfferingIdT&& value) {
44 m_offeringIdHasBeenSet = true;
45 m_offeringId = std::forward<OfferingIdT>(value);
46 }
47 template <typename OfferingIdT = Aws::String>
49 SetOfferingId(std::forward<OfferingIdT>(value));
50 return *this;
51 }
53
55
58 inline int GetQuantity() const { return m_quantity; }
59 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
60 inline void SetQuantity(int value) {
61 m_quantityHasBeenSet = true;
62 m_quantity = value;
63 }
65 SetQuantity(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetOfferingPromotionId() const { return m_offeringPromotionId; }
75 inline bool OfferingPromotionIdHasBeenSet() const { return m_offeringPromotionIdHasBeenSet; }
76 template <typename OfferingPromotionIdT = Aws::String>
77 void SetOfferingPromotionId(OfferingPromotionIdT&& value) {
78 m_offeringPromotionIdHasBeenSet = true;
79 m_offeringPromotionId = std::forward<OfferingPromotionIdT>(value);
80 }
81 template <typename OfferingPromotionIdT = Aws::String>
82 PurchaseOfferingRequest& WithOfferingPromotionId(OfferingPromotionIdT&& value) {
83 SetOfferingPromotionId(std::forward<OfferingPromotionIdT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_offeringId;
89
90 int m_quantity{0};
91
92 Aws::String m_offeringPromotionId;
93 bool m_offeringIdHasBeenSet = false;
94 bool m_quantityHasBeenSet = false;
95 bool m_offeringPromotionIdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace DeviceFarm
100} // namespace Aws
AWS_DEVICEFARM_API PurchaseOfferingRequest()=default
PurchaseOfferingRequest & WithOfferingId(OfferingIdT &&value)
virtual const char * GetServiceRequestName() const override
PurchaseOfferingRequest & WithOfferingPromotionId(OfferingPromotionIdT &&value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
void SetOfferingPromotionId(OfferingPromotionIdT &&value)
PurchaseOfferingRequest & WithQuantity(int value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String