AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OfferingTransaction.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/devicefarm/model/OfferingStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/devicefarm/model/MonetaryAmount.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DeviceFarm
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_DEVICEFARM_API OfferingTransaction();
39 AWS_DEVICEFARM_API OfferingTransaction(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const OfferingStatus& GetOfferingStatus() const{ return m_offeringStatus; }
49 inline bool OfferingStatusHasBeenSet() const { return m_offeringStatusHasBeenSet; }
50 inline void SetOfferingStatus(const OfferingStatus& value) { m_offeringStatusHasBeenSet = true; m_offeringStatus = value; }
51 inline void SetOfferingStatus(OfferingStatus&& value) { m_offeringStatusHasBeenSet = true; m_offeringStatus = std::move(value); }
52 inline OfferingTransaction& WithOfferingStatus(const OfferingStatus& value) { SetOfferingStatus(value); return *this;}
53 inline OfferingTransaction& WithOfferingStatus(OfferingStatus&& value) { SetOfferingStatus(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
61 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
62 inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
63 inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
64 inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
65 inline OfferingTransaction& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
66 inline OfferingTransaction& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
67 inline OfferingTransaction& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
69
71
74 inline const Aws::String& GetOfferingPromotionId() const{ return m_offeringPromotionId; }
75 inline bool OfferingPromotionIdHasBeenSet() const { return m_offeringPromotionIdHasBeenSet; }
76 inline void SetOfferingPromotionId(const Aws::String& value) { m_offeringPromotionIdHasBeenSet = true; m_offeringPromotionId = value; }
77 inline void SetOfferingPromotionId(Aws::String&& value) { m_offeringPromotionIdHasBeenSet = true; m_offeringPromotionId = std::move(value); }
78 inline void SetOfferingPromotionId(const char* value) { m_offeringPromotionIdHasBeenSet = true; m_offeringPromotionId.assign(value); }
80 inline OfferingTransaction& WithOfferingPromotionId(Aws::String&& value) { SetOfferingPromotionId(std::move(value)); return *this;}
81 inline OfferingTransaction& WithOfferingPromotionId(const char* value) { SetOfferingPromotionId(value); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetCreatedOn() const{ return m_createdOn; }
89 inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; }
90 inline void SetCreatedOn(const Aws::Utils::DateTime& value) { m_createdOnHasBeenSet = true; m_createdOn = value; }
91 inline void SetCreatedOn(Aws::Utils::DateTime&& value) { m_createdOnHasBeenSet = true; m_createdOn = std::move(value); }
92 inline OfferingTransaction& WithCreatedOn(const Aws::Utils::DateTime& value) { SetCreatedOn(value); return *this;}
93 inline OfferingTransaction& WithCreatedOn(Aws::Utils::DateTime&& value) { SetCreatedOn(std::move(value)); return *this;}
95
97
100 inline const MonetaryAmount& GetCost() const{ return m_cost; }
101 inline bool CostHasBeenSet() const { return m_costHasBeenSet; }
102 inline void SetCost(const MonetaryAmount& value) { m_costHasBeenSet = true; m_cost = value; }
103 inline void SetCost(MonetaryAmount&& value) { m_costHasBeenSet = true; m_cost = std::move(value); }
104 inline OfferingTransaction& WithCost(const MonetaryAmount& value) { SetCost(value); return *this;}
105 inline OfferingTransaction& WithCost(MonetaryAmount&& value) { SetCost(std::move(value)); return *this;}
107 private:
108
109 OfferingStatus m_offeringStatus;
110 bool m_offeringStatusHasBeenSet = false;
111
112 Aws::String m_transactionId;
113 bool m_transactionIdHasBeenSet = false;
114
115 Aws::String m_offeringPromotionId;
116 bool m_offeringPromotionIdHasBeenSet = false;
117
118 Aws::Utils::DateTime m_createdOn;
119 bool m_createdOnHasBeenSet = false;
120
121 MonetaryAmount m_cost;
122 bool m_costHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace DeviceFarm
127} // namespace Aws
OfferingTransaction & WithOfferingStatus(OfferingStatus &&value)
OfferingTransaction & WithCreatedOn(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreatedOn() const
void SetTransactionId(const Aws::String &value)
void SetOfferingStatus(const OfferingStatus &value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
OfferingTransaction & WithTransactionId(Aws::String &&value)
OfferingTransaction & WithOfferingPromotionId(const Aws::String &value)
OfferingTransaction & WithOfferingPromotionId(const char *value)
OfferingTransaction & WithCost(const MonetaryAmount &value)
AWS_DEVICEFARM_API OfferingTransaction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API OfferingTransaction(Aws::Utils::Json::JsonView jsonValue)
OfferingTransaction & WithCreatedOn(Aws::Utils::DateTime &&value)
OfferingTransaction & WithTransactionId(const char *value)
void SetCreatedOn(Aws::Utils::DateTime &&value)
const OfferingStatus & GetOfferingStatus() const
void SetCost(const MonetaryAmount &value)
OfferingTransaction & WithTransactionId(const Aws::String &value)
OfferingTransaction & WithOfferingStatus(const OfferingStatus &value)
void SetCreatedOn(const Aws::Utils::DateTime &value)
OfferingTransaction & WithCost(MonetaryAmount &&value)
void SetOfferingPromotionId(const Aws::String &value)
OfferingTransaction & WithOfferingPromotionId(Aws::String &&value)
const Aws::String & GetOfferingPromotionId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue