AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
ActivityReward.h
1
6#pragma once
7#include <aws/freetier/FreeTier_EXPORTS.h>
8#include <aws/freetier/model/MonetaryAmount.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace FreeTier {
20namespace Model {
21
29 public:
30 AWS_FREETIER_API ActivityReward() = default;
31 AWS_FREETIER_API ActivityReward(Aws::Utils::Json::JsonView jsonValue);
33 AWS_FREETIER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const MonetaryAmount& GetCredit() const { return m_credit; }
40 inline bool CreditHasBeenSet() const { return m_creditHasBeenSet; }
41 template <typename CreditT = MonetaryAmount>
42 void SetCredit(CreditT&& value) {
43 m_creditHasBeenSet = true;
44 m_credit = std::forward<CreditT>(value);
45 }
46 template <typename CreditT = MonetaryAmount>
47 ActivityReward& WithCredit(CreditT&& value) {
48 SetCredit(std::forward<CreditT>(value));
49 return *this;
50 }
52 private:
53 MonetaryAmount m_credit;
54 bool m_creditHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace FreeTier
59} // namespace Aws
AWS_FREETIER_API ActivityReward(Aws::Utils::Json::JsonView jsonValue)
AWS_FREETIER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FREETIER_API ActivityReward()=default
AWS_FREETIER_API ActivityReward & operator=(Aws::Utils::Json::JsonView jsonValue)
ActivityReward & WithCredit(CreditT &&value)
const MonetaryAmount & GetCredit() const
Aws::Utils::Json::JsonValue JsonValue