AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OfferingStatus.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/devicefarm/model/OfferingTransactionType.h>
9#include <aws/devicefarm/model/Offering.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DeviceFarm
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_DEVICEFARM_API OfferingStatus() = default;
37 AWS_DEVICEFARM_API OfferingStatus(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVICEFARM_API OfferingStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline OfferingTransactionType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(OfferingTransactionType value) { m_typeHasBeenSet = true; m_type = value; }
49 inline OfferingStatus& WithType(OfferingTransactionType value) { SetType(value); return *this;}
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) { m_offeringHasBeenSet = true; m_offering = std::forward<OfferingT>(value); }
60 template<typename OfferingT = Offering>
61 OfferingStatus& WithOffering(OfferingT&& value) { SetOffering(std::forward<OfferingT>(value)); return *this;}
63
65
68 inline int GetQuantity() const { return m_quantity; }
69 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
70 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
71 inline OfferingStatus& WithQuantity(int value) { SetQuantity(value); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetEffectiveOn() const { return m_effectiveOn; }
79 inline bool EffectiveOnHasBeenSet() const { return m_effectiveOnHasBeenSet; }
80 template<typename EffectiveOnT = Aws::Utils::DateTime>
81 void SetEffectiveOn(EffectiveOnT&& value) { m_effectiveOnHasBeenSet = true; m_effectiveOn = std::forward<EffectiveOnT>(value); }
82 template<typename EffectiveOnT = Aws::Utils::DateTime>
83 OfferingStatus& WithEffectiveOn(EffectiveOnT&& value) { SetEffectiveOn(std::forward<EffectiveOnT>(value)); return *this;}
85 private:
86
88 bool m_typeHasBeenSet = false;
89
90 Offering m_offering;
91 bool m_offeringHasBeenSet = false;
92
93 int m_quantity{0};
94 bool m_quantityHasBeenSet = false;
95
96 Aws::Utils::DateTime m_effectiveOn{};
97 bool m_effectiveOnHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace DeviceFarm
102} // 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