AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Total.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty
22{
23namespace Model
24{
25
32 class Total
33 {
34 public:
35 AWS_GUARDDUTY_API Total() = default;
36 AWS_GUARDDUTY_API Total(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Total& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAmount() const { return m_amount; }
46 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
47 template<typename AmountT = Aws::String>
48 void SetAmount(AmountT&& value) { m_amountHasBeenSet = true; m_amount = std::forward<AmountT>(value); }
49 template<typename AmountT = Aws::String>
50 Total& WithAmount(AmountT&& value) { SetAmount(std::forward<AmountT>(value)); return *this;}
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) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
61 template<typename UnitT = Aws::String>
62 Total& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
64 private:
65
66 Aws::String m_amount;
67 bool m_amountHasBeenSet = false;
68
69 Aws::String m_unit;
70 bool m_unitHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace GuardDuty
75} // namespace Aws
bool UnitHasBeenSet() const
Definition Total.h:58
bool AmountHasBeenSet() const
Definition Total.h:46
void SetAmount(AmountT &&value)
Definition Total.h:48
void SetUnit(UnitT &&value)
Definition Total.h:60
Total & WithUnit(UnitT &&value)
Definition Total.h:62
const Aws::String & GetUnit() const
Definition Total.h:57
AWS_GUARDDUTY_API Total()=default
Total & WithAmount(AmountT &&value)
Definition Total.h:50
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAmount() const
Definition Total.h:45
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