AWS SDK for C++  1.9.160
AWS SDK for C++
OfferingStatus.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace DeviceFarm
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const OfferingTransactionType& GetType() const{ return m_type; }
46 
50  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 
55  inline void SetType(const OfferingTransactionType& value) { m_typeHasBeenSet = true; m_type = value; }
56 
60  inline void SetType(OfferingTransactionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
61 
65  inline OfferingStatus& WithType(const OfferingTransactionType& value) { SetType(value); return *this;}
66 
70  inline OfferingStatus& WithType(OfferingTransactionType&& value) { SetType(std::move(value)); return *this;}
71 
72 
76  inline const Offering& GetOffering() const{ return m_offering; }
77 
81  inline bool OfferingHasBeenSet() const { return m_offeringHasBeenSet; }
82 
86  inline void SetOffering(const Offering& value) { m_offeringHasBeenSet = true; m_offering = value; }
87 
91  inline void SetOffering(Offering&& value) { m_offeringHasBeenSet = true; m_offering = std::move(value); }
92 
96  inline OfferingStatus& WithOffering(const Offering& value) { SetOffering(value); return *this;}
97 
101  inline OfferingStatus& WithOffering(Offering&& value) { SetOffering(std::move(value)); return *this;}
102 
103 
107  inline int GetQuantity() const{ return m_quantity; }
108 
112  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
113 
117  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
118 
122  inline OfferingStatus& WithQuantity(int value) { SetQuantity(value); return *this;}
123 
124 
128  inline const Aws::Utils::DateTime& GetEffectiveOn() const{ return m_effectiveOn; }
129 
133  inline bool EffectiveOnHasBeenSet() const { return m_effectiveOnHasBeenSet; }
134 
138  inline void SetEffectiveOn(const Aws::Utils::DateTime& value) { m_effectiveOnHasBeenSet = true; m_effectiveOn = value; }
139 
143  inline void SetEffectiveOn(Aws::Utils::DateTime&& value) { m_effectiveOnHasBeenSet = true; m_effectiveOn = std::move(value); }
144 
148  inline OfferingStatus& WithEffectiveOn(const Aws::Utils::DateTime& value) { SetEffectiveOn(value); return *this;}
149 
153  inline OfferingStatus& WithEffectiveOn(Aws::Utils::DateTime&& value) { SetEffectiveOn(std::move(value)); return *this;}
154 
155  private:
156 
158  bool m_typeHasBeenSet;
159 
160  Offering m_offering;
161  bool m_offeringHasBeenSet;
162 
163  int m_quantity;
164  bool m_quantityHasBeenSet;
165 
166  Aws::Utils::DateTime m_effectiveOn;
167  bool m_effectiveOnHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace DeviceFarm
172 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DeviceFarm::Model::OfferingStatus::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: OfferingStatus.h:50
Aws::DeviceFarm::Model::OfferingStatus::WithQuantity
OfferingStatus & WithQuantity(int value)
Definition: OfferingStatus.h:122
Aws::DeviceFarm::Model::OfferingStatus::OfferingStatus
OfferingStatus()
Aws::DeviceFarm::Model::OfferingStatus::WithOffering
OfferingStatus & WithOffering(const Offering &value)
Definition: OfferingStatus.h:96
Aws::DeviceFarm::Model::OfferingStatus::SetEffectiveOn
void SetEffectiveOn(const Aws::Utils::DateTime &value)
Definition: OfferingStatus.h:138
DateTime.h
Aws::DeviceFarm::Model::OfferingStatus
Definition: OfferingStatus.h:34
Aws::DeviceFarm::Model::OfferingStatus::OfferingHasBeenSet
bool OfferingHasBeenSet() const
Definition: OfferingStatus.h:81
Aws::DeviceFarm::Model::Offering
Definition: Offering.h:36
Aws::DeviceFarm::Model::OfferingStatus::GetOffering
const Offering & GetOffering() const
Definition: OfferingStatus.h:76
Aws::DeviceFarm::Model::OfferingStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DeviceFarm::Model::OfferingStatus::SetType
void SetType(OfferingTransactionType &&value)
Definition: OfferingStatus.h:60
Aws::DeviceFarm::Model::OfferingStatus::SetType
void SetType(const OfferingTransactionType &value)
Definition: OfferingStatus.h:55
Aws::DeviceFarm::Model::OfferingStatus::GetEffectiveOn
const Aws::Utils::DateTime & GetEffectiveOn() const
Definition: OfferingStatus.h:128
Aws::DeviceFarm::Model::OfferingTransactionType
OfferingTransactionType
Definition: OfferingTransactionType.h:17
Aws::DeviceFarm::Model::OfferingStatus::GetType
const OfferingTransactionType & GetType() const
Definition: OfferingStatus.h:45
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::OfferingStatus::WithType
OfferingStatus & WithType(const OfferingTransactionType &value)
Definition: OfferingStatus.h:65
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DeviceFarm::Model::OfferingStatus::SetOffering
void SetOffering(const Offering &value)
Definition: OfferingStatus.h:86
Aws::DeviceFarm::Model::OfferingStatus::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: OfferingStatus.h:112
Aws::DeviceFarm::Model::OfferingStatus::WithEffectiveOn
OfferingStatus & WithEffectiveOn(const Aws::Utils::DateTime &value)
Definition: OfferingStatus.h:148
Aws::DeviceFarm::Model::OfferingStatus::SetOffering
void SetOffering(Offering &&value)
Definition: OfferingStatus.h:91
Aws::DeviceFarm::Model::OfferingStatus::WithOffering
OfferingStatus & WithOffering(Offering &&value)
Definition: OfferingStatus.h:101
Offering.h
Aws::DeviceFarm::Model::OfferingStatus::SetEffectiveOn
void SetEffectiveOn(Aws::Utils::DateTime &&value)
Definition: OfferingStatus.h:143
Aws::DeviceFarm::Model::OfferingStatus::EffectiveOnHasBeenSet
bool EffectiveOnHasBeenSet() const
Definition: OfferingStatus.h:133
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::OfferingStatus::WithEffectiveOn
OfferingStatus & WithEffectiveOn(Aws::Utils::DateTime &&value)
Definition: OfferingStatus.h:153
Aws::DeviceFarm::Model::OfferingStatus::WithType
OfferingStatus & WithType(OfferingTransactionType &&value)
Definition: OfferingStatus.h:70
Aws::DeviceFarm::Model::OfferingStatus::operator=
OfferingStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::OfferingStatus::SetQuantity
void SetQuantity(int value)
Definition: OfferingStatus.h:117
OfferingTransactionType.h
Aws::DeviceFarm::Model::OfferingStatus::GetQuantity
int GetQuantity() const
Definition: OfferingStatus.h:107
Aws::DeviceFarm::Model::OfferingStatus::OfferingStatus
OfferingStatus(Aws::Utils::Json::JsonView jsonValue)