AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
OfferingStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
9#include <aws/devicefarm/model/Offering.h>
10#include <aws/devicefarm/model/OfferingTransactionType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DeviceFarm {
22namespace Model {
23
30 public:
31 AWS_DEVICEFARM_API OfferingStatus() = default;
32 AWS_DEVICEFARM_API OfferingStatus(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVICEFARM_API OfferingStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline OfferingTransactionType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(OfferingTransactionType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline const Offering& GetOffering() const { return m_offering; }
57 inline bool OfferingHasBeenSet() const { return m_offeringHasBeenSet; }
58 template <typename OfferingT = Offering>
59 void SetOffering(OfferingT&& value) {
60 m_offeringHasBeenSet = true;
61 m_offering = std::forward<OfferingT>(value);
62 }
63 template <typename OfferingT = Offering>
64 OfferingStatus& WithOffering(OfferingT&& value) {
65 SetOffering(std::forward<OfferingT>(value));
66 return *this;
67 }
69
71
74 inline int GetQuantity() const { return m_quantity; }
75 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
76 inline void SetQuantity(int value) {
77 m_quantityHasBeenSet = true;
78 m_quantity = value;
79 }
80 inline OfferingStatus& WithQuantity(int value) {
81 SetQuantity(value);
82 return *this;
83 }
85
87
90 inline const Aws::Utils::DateTime& GetEffectiveOn() const { return m_effectiveOn; }
91 inline bool EffectiveOnHasBeenSet() const { return m_effectiveOnHasBeenSet; }
92 template <typename EffectiveOnT = Aws::Utils::DateTime>
93 void SetEffectiveOn(EffectiveOnT&& value) {
94 m_effectiveOnHasBeenSet = true;
95 m_effectiveOn = std::forward<EffectiveOnT>(value);
96 }
97 template <typename EffectiveOnT = Aws::Utils::DateTime>
98 OfferingStatus& WithEffectiveOn(EffectiveOnT&& value) {
99 SetEffectiveOn(std::forward<EffectiveOnT>(value));
100 return *this;
101 }
103 private:
105
106 Offering m_offering;
107
108 int m_quantity{0};
109
110 Aws::Utils::DateTime m_effectiveOn{};
111 bool m_typeHasBeenSet = false;
112 bool m_offeringHasBeenSet = false;
113 bool m_quantityHasBeenSet = false;
114 bool m_effectiveOnHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace DeviceFarm
119} // namespace Aws
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVICEFARM_API OfferingStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
OfferingTransactionType GetType() const
void SetEffectiveOn(EffectiveOnT &&value)
OfferingStatus & WithQuantity(int value)
AWS_DEVICEFARM_API OfferingStatus(Aws::Utils::Json::JsonView jsonValue)
OfferingStatus & WithEffectiveOn(EffectiveOnT &&value)
const Aws::Utils::DateTime & GetEffectiveOn() const
OfferingStatus & WithOffering(OfferingT &&value)
AWS_DEVICEFARM_API OfferingStatus()=default
const Offering & GetOffering() const
void SetType(OfferingTransactionType value)
OfferingStatus & WithType(OfferingTransactionType value)
Aws::Utils::Json::JsonValue JsonValue