AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RenewOfferingRequest.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 RenewOfferingRequest() = 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 "RenewOffering"; }
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>
48 RenewOfferingRequest& WithOfferingId(OfferingIdT&& value) {
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 private:
70 Aws::String m_offeringId;
71
72 int m_quantity{0};
73 bool m_offeringIdHasBeenSet = false;
74 bool m_quantityHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace DeviceFarm
79} // namespace Aws
AWS_DEVICEFARM_API RenewOfferingRequest()=default
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RenewOfferingRequest & WithQuantity(int value)
RenewOfferingRequest & WithOfferingId(OfferingIdT &&value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String