AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const OfferingTransactionType& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const OfferingTransactionType& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(OfferingTransactionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline OfferingStatus& WithType(const OfferingTransactionType& value) { SetType(value); return *this;}
51 inline OfferingStatus& WithType(OfferingTransactionType&& value) { SetType(std::move(value)); return *this;}
53
55
58 inline const Offering& GetOffering() const{ return m_offering; }
59 inline bool OfferingHasBeenSet() const { return m_offeringHasBeenSet; }
60 inline void SetOffering(const Offering& value) { m_offeringHasBeenSet = true; m_offering = value; }
61 inline void SetOffering(Offering&& value) { m_offeringHasBeenSet = true; m_offering = std::move(value); }
62 inline OfferingStatus& WithOffering(const Offering& value) { SetOffering(value); return *this;}
63 inline OfferingStatus& WithOffering(Offering&& value) { SetOffering(std::move(value)); return *this;}
65
67
70 inline int GetQuantity() const{ return m_quantity; }
71 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
72 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
73 inline OfferingStatus& WithQuantity(int value) { SetQuantity(value); return *this;}
75
77
80 inline const Aws::Utils::DateTime& GetEffectiveOn() const{ return m_effectiveOn; }
81 inline bool EffectiveOnHasBeenSet() const { return m_effectiveOnHasBeenSet; }
82 inline void SetEffectiveOn(const Aws::Utils::DateTime& value) { m_effectiveOnHasBeenSet = true; m_effectiveOn = value; }
83 inline void SetEffectiveOn(Aws::Utils::DateTime&& value) { m_effectiveOnHasBeenSet = true; m_effectiveOn = std::move(value); }
84 inline OfferingStatus& WithEffectiveOn(const Aws::Utils::DateTime& value) { SetEffectiveOn(value); return *this;}
85 inline OfferingStatus& WithEffectiveOn(Aws::Utils::DateTime&& value) { SetEffectiveOn(std::move(value)); return *this;}
87 private:
88
90 bool m_typeHasBeenSet = false;
91
92 Offering m_offering;
93 bool m_offeringHasBeenSet = false;
94
95 int m_quantity;
96 bool m_quantityHasBeenSet = false;
97
98 Aws::Utils::DateTime m_effectiveOn;
99 bool m_effectiveOnHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace DeviceFarm
104} // namespace Aws
const OfferingTransactionType & GetType() const
OfferingStatus & WithType(OfferingTransactionType &&value)
void SetType(OfferingTransactionType &&value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
OfferingStatus & WithOffering(const Offering &value)
AWS_DEVICEFARM_API OfferingStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
OfferingStatus & WithType(const OfferingTransactionType &value)
OfferingStatus & WithOffering(Offering &&value)
OfferingStatus & WithQuantity(int value)
AWS_DEVICEFARM_API OfferingStatus(Aws::Utils::Json::JsonView jsonValue)
void SetType(const OfferingTransactionType &value)
void SetEffectiveOn(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEffectiveOn() const
const Offering & GetOffering() const
OfferingStatus & WithEffectiveOn(const Aws::Utils::DateTime &value)
void SetOffering(const Offering &value)
OfferingStatus & WithEffectiveOn(Aws::Utils::DateTime &&value)
void SetEffectiveOn(const Aws::Utils::DateTime &value)
Aws::Utils::Json::JsonValue JsonValue