AWS SDK for C++  1.9.158
AWS SDK for C++
OfferingTransaction.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace DeviceFarm
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const OfferingStatus& GetOfferingStatus() const{ return m_offeringStatus; }
48 
52  inline bool OfferingStatusHasBeenSet() const { return m_offeringStatusHasBeenSet; }
53 
57  inline void SetOfferingStatus(const OfferingStatus& value) { m_offeringStatusHasBeenSet = true; m_offeringStatus = value; }
58 
62  inline void SetOfferingStatus(OfferingStatus&& value) { m_offeringStatusHasBeenSet = true; m_offeringStatus = std::move(value); }
63 
67  inline OfferingTransaction& WithOfferingStatus(const OfferingStatus& value) { SetOfferingStatus(value); return *this;}
68 
72  inline OfferingTransaction& WithOfferingStatus(OfferingStatus&& value) { SetOfferingStatus(std::move(value)); return *this;}
73 
74 
78  inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
79 
83  inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
84 
88  inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
89 
93  inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
94 
98  inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
99 
103  inline OfferingTransaction& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
104 
108  inline OfferingTransaction& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
109 
113  inline OfferingTransaction& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
114 
115 
119  inline const Aws::String& GetOfferingPromotionId() const{ return m_offeringPromotionId; }
120 
124  inline bool OfferingPromotionIdHasBeenSet() const { return m_offeringPromotionIdHasBeenSet; }
125 
129  inline void SetOfferingPromotionId(const Aws::String& value) { m_offeringPromotionIdHasBeenSet = true; m_offeringPromotionId = value; }
130 
134  inline void SetOfferingPromotionId(Aws::String&& value) { m_offeringPromotionIdHasBeenSet = true; m_offeringPromotionId = std::move(value); }
135 
139  inline void SetOfferingPromotionId(const char* value) { m_offeringPromotionIdHasBeenSet = true; m_offeringPromotionId.assign(value); }
140 
144  inline OfferingTransaction& WithOfferingPromotionId(const Aws::String& value) { SetOfferingPromotionId(value); return *this;}
145 
149  inline OfferingTransaction& WithOfferingPromotionId(Aws::String&& value) { SetOfferingPromotionId(std::move(value)); return *this;}
150 
154  inline OfferingTransaction& WithOfferingPromotionId(const char* value) { SetOfferingPromotionId(value); return *this;}
155 
156 
160  inline const Aws::Utils::DateTime& GetCreatedOn() const{ return m_createdOn; }
161 
165  inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; }
166 
170  inline void SetCreatedOn(const Aws::Utils::DateTime& value) { m_createdOnHasBeenSet = true; m_createdOn = value; }
171 
175  inline void SetCreatedOn(Aws::Utils::DateTime&& value) { m_createdOnHasBeenSet = true; m_createdOn = std::move(value); }
176 
180  inline OfferingTransaction& WithCreatedOn(const Aws::Utils::DateTime& value) { SetCreatedOn(value); return *this;}
181 
185  inline OfferingTransaction& WithCreatedOn(Aws::Utils::DateTime&& value) { SetCreatedOn(std::move(value)); return *this;}
186 
187 
191  inline const MonetaryAmount& GetCost() const{ return m_cost; }
192 
196  inline bool CostHasBeenSet() const { return m_costHasBeenSet; }
197 
201  inline void SetCost(const MonetaryAmount& value) { m_costHasBeenSet = true; m_cost = value; }
202 
206  inline void SetCost(MonetaryAmount&& value) { m_costHasBeenSet = true; m_cost = std::move(value); }
207 
211  inline OfferingTransaction& WithCost(const MonetaryAmount& value) { SetCost(value); return *this;}
212 
216  inline OfferingTransaction& WithCost(MonetaryAmount&& value) { SetCost(std::move(value)); return *this;}
217 
218  private:
219 
220  OfferingStatus m_offeringStatus;
221  bool m_offeringStatusHasBeenSet;
222 
223  Aws::String m_transactionId;
224  bool m_transactionIdHasBeenSet;
225 
226  Aws::String m_offeringPromotionId;
227  bool m_offeringPromotionIdHasBeenSet;
228 
229  Aws::Utils::DateTime m_createdOn;
230  bool m_createdOnHasBeenSet;
231 
232  MonetaryAmount m_cost;
233  bool m_costHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace DeviceFarm
238 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DeviceFarm::Model::OfferingTransaction::GetCost
const MonetaryAmount & GetCost() const
Definition: OfferingTransaction.h:191
Aws::DeviceFarm::Model::OfferingTransaction::WithCost
OfferingTransaction & WithCost(MonetaryAmount &&value)
Definition: OfferingTransaction.h:216
Aws::DeviceFarm::Model::OfferingTransaction::SetCreatedOn
void SetCreatedOn(Aws::Utils::DateTime &&value)
Definition: OfferingTransaction.h:175
Aws::DeviceFarm::Model::OfferingTransaction::SetTransactionId
void SetTransactionId(Aws::String &&value)
Definition: OfferingTransaction.h:93
Aws::DeviceFarm::Model::OfferingTransaction::operator=
OfferingTransaction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::OfferingTransaction::GetCreatedOn
const Aws::Utils::DateTime & GetCreatedOn() const
Definition: OfferingTransaction.h:160
Aws::DeviceFarm::Model::OfferingTransaction::WithCost
OfferingTransaction & WithCost(const MonetaryAmount &value)
Definition: OfferingTransaction.h:211
Aws::DeviceFarm::Model::OfferingTransaction::WithTransactionId
OfferingTransaction & WithTransactionId(const Aws::String &value)
Definition: OfferingTransaction.h:103
Aws::DeviceFarm::Model::OfferingTransaction::WithCreatedOn
OfferingTransaction & WithCreatedOn(const Aws::Utils::DateTime &value)
Definition: OfferingTransaction.h:180
DateTime.h
Aws::DeviceFarm::Model::OfferingStatus
Definition: OfferingStatus.h:34
Aws::DeviceFarm::Model::OfferingTransaction::WithCreatedOn
OfferingTransaction & WithCreatedOn(Aws::Utils::DateTime &&value)
Definition: OfferingTransaction.h:185
Aws::DeviceFarm::Model::OfferingTransaction::WithTransactionId
OfferingTransaction & WithTransactionId(const char *value)
Definition: OfferingTransaction.h:113
Aws::DeviceFarm::Model::OfferingTransaction::CostHasBeenSet
bool CostHasBeenSet() const
Definition: OfferingTransaction.h:196
Aws::DeviceFarm::Model::OfferingTransaction::GetTransactionId
const Aws::String & GetTransactionId() const
Definition: OfferingTransaction.h:78
Aws::DeviceFarm::Model::MonetaryAmount
Definition: MonetaryAmount.h:33
Aws::DeviceFarm::Model::OfferingTransaction::SetOfferingPromotionId
void SetOfferingPromotionId(Aws::String &&value)
Definition: OfferingTransaction.h:134
Aws::DeviceFarm::Model::OfferingTransaction::OfferingTransaction
OfferingTransaction()
Aws::DeviceFarm::Model::OfferingTransaction::SetOfferingPromotionId
void SetOfferingPromotionId(const char *value)
Definition: OfferingTransaction.h:139
Aws::DeviceFarm::Model::OfferingTransaction::WithOfferingPromotionId
OfferingTransaction & WithOfferingPromotionId(const char *value)
Definition: OfferingTransaction.h:154
Aws::DeviceFarm::Model::OfferingTransaction::GetOfferingPromotionId
const Aws::String & GetOfferingPromotionId() const
Definition: OfferingTransaction.h:119
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::OfferingTransaction::WithOfferingStatus
OfferingTransaction & WithOfferingStatus(const OfferingStatus &value)
Definition: OfferingTransaction.h:67
Aws::DeviceFarm::Model::OfferingTransaction::SetOfferingStatus
void SetOfferingStatus(const OfferingStatus &value)
Definition: OfferingTransaction.h:57
Aws::DeviceFarm::Model::OfferingTransaction::SetOfferingStatus
void SetOfferingStatus(OfferingStatus &&value)
Definition: OfferingTransaction.h:62
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DeviceFarm::Model::OfferingTransaction::WithOfferingPromotionId
OfferingTransaction & WithOfferingPromotionId(Aws::String &&value)
Definition: OfferingTransaction.h:149
Aws::DeviceFarm::Model::OfferingTransaction::SetCost
void SetCost(MonetaryAmount &&value)
Definition: OfferingTransaction.h:206
Aws::DeviceFarm::Model::OfferingTransaction::SetTransactionId
void SetTransactionId(const char *value)
Definition: OfferingTransaction.h:98
Aws::DeviceFarm::Model::OfferingTransaction::SetOfferingPromotionId
void SetOfferingPromotionId(const Aws::String &value)
Definition: OfferingTransaction.h:129
Aws::DeviceFarm::Model::OfferingTransaction::OfferingStatusHasBeenSet
bool OfferingStatusHasBeenSet() const
Definition: OfferingTransaction.h:52
MonetaryAmount.h
Aws::DeviceFarm::Model::OfferingTransaction::SetCreatedOn
void SetCreatedOn(const Aws::Utils::DateTime &value)
Definition: OfferingTransaction.h:170
Aws::DeviceFarm::Model::OfferingTransaction::WithOfferingPromotionId
OfferingTransaction & WithOfferingPromotionId(const Aws::String &value)
Definition: OfferingTransaction.h:144
Aws::DeviceFarm::Model::OfferingTransaction::WithTransactionId
OfferingTransaction & WithTransactionId(Aws::String &&value)
Definition: OfferingTransaction.h:108
Aws::DeviceFarm::Model::OfferingTransaction::OfferingTransaction
OfferingTransaction(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::DeviceFarm::Model::OfferingTransaction
Definition: OfferingTransaction.h:36
Aws::DeviceFarm::Model::OfferingTransaction::WithOfferingStatus
OfferingTransaction & WithOfferingStatus(OfferingStatus &&value)
Definition: OfferingTransaction.h:72
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::OfferingTransaction::SetCost
void SetCost(const MonetaryAmount &value)
Definition: OfferingTransaction.h:201
Aws::DeviceFarm::Model::OfferingTransaction::SetTransactionId
void SetTransactionId(const Aws::String &value)
Definition: OfferingTransaction.h:88
Aws::DeviceFarm::Model::OfferingTransaction::CreatedOnHasBeenSet
bool CreatedOnHasBeenSet() const
Definition: OfferingTransaction.h:165
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::OfferingTransaction::OfferingPromotionIdHasBeenSet
bool OfferingPromotionIdHasBeenSet() const
Definition: OfferingTransaction.h:124
OfferingStatus.h
Aws::DeviceFarm::Model::OfferingTransaction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DeviceFarm::Model::OfferingTransaction::GetOfferingStatus
const OfferingStatus & GetOfferingStatus() const
Definition: OfferingTransaction.h:47
Aws::DeviceFarm::Model::OfferingTransaction::TransactionIdHasBeenSet
bool TransactionIdHasBeenSet() const
Definition: OfferingTransaction.h:83