AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Total.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
28class Total {
29 public:
30 AWS_GUARDDUTY_API Total() = default;
31 AWS_GUARDDUTY_API Total(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API Total& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAmount() const { return m_amount; }
40 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
41 template <typename AmountT = Aws::String>
42 void SetAmount(AmountT&& value) {
43 m_amountHasBeenSet = true;
44 m_amount = std::forward<AmountT>(value);
45 }
46 template <typename AmountT = Aws::String>
47 Total& WithAmount(AmountT&& value) {
48 SetAmount(std::forward<AmountT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetUnit() const { return m_unit; }
58 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
59 template <typename UnitT = Aws::String>
60 void SetUnit(UnitT&& value) {
61 m_unitHasBeenSet = true;
62 m_unit = std::forward<UnitT>(value);
63 }
64 template <typename UnitT = Aws::String>
65 Total& WithUnit(UnitT&& value) {
66 SetUnit(std::forward<UnitT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_amount;
72
73 Aws::String m_unit;
74 bool m_amountHasBeenSet = false;
75 bool m_unitHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace GuardDuty
80} // namespace Aws
bool UnitHasBeenSet() const
Definition Total.h:58
bool AmountHasBeenSet() const
Definition Total.h:40
void SetAmount(AmountT &&value)
Definition Total.h:42
void SetUnit(UnitT &&value)
Definition Total.h:60
Total & WithUnit(UnitT &&value)
Definition Total.h:65
const Aws::String & GetUnit() const
Definition Total.h:57
AWS_GUARDDUTY_API Total()=default
Total & WithAmount(AmountT &&value)
Definition Total.h:47
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAmount() const
Definition Total.h:39
AWS_GUARDDUTY_API Total(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Total & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue