AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAmount(const Aws::String& value) { m_amountHasBeenSet = true; m_amount = value; }
48 inline void SetAmount(Aws::String&& value) { m_amountHasBeenSet = true; m_amount = std::move(value); }
49 inline void SetAmount(const char* value) { m_amountHasBeenSet = true; m_amount.assign(value); }
50 inline Total& WithAmount(const Aws::String& value) { SetAmount(value); return *this;}
51 inline Total& WithAmount(Aws::String&& value) { SetAmount(std::move(value)); return *this;}
52 inline Total& WithAmount(const char* value) { SetAmount(value); return *this;}
54
56
59 inline const Aws::String& GetUnit() const{ return m_unit; }
60 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
61 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
62 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
63 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
64 inline Total& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
65 inline Total& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
66 inline Total& WithUnit(const char* value) { SetUnit(value); return *this;}
68 private:
69
70 Aws::String m_amount;
71 bool m_amountHasBeenSet = false;
72
73 Aws::String m_unit;
74 bool m_unitHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace GuardDuty
79} // namespace Aws
bool UnitHasBeenSet() const
Definition Total.h:60
Total & WithAmount(Aws::String &&value)
Definition Total.h:51
bool AmountHasBeenSet() const
Definition Total.h:46
void SetUnit(const char *value)
Definition Total.h:63
const Aws::String & GetUnit() const
Definition Total.h:59
Total & WithUnit(const char *value)
Definition Total.h:66
AWS_GUARDDUTY_API Total()
void SetAmount(const Aws::String &value)
Definition Total.h:47
void SetAmount(Aws::String &&value)
Definition Total.h:48
Total & WithAmount(const char *value)
Definition Total.h:52
void SetUnit(const Aws::String &value)
Definition Total.h:61
Total & WithAmount(const Aws::String &value)
Definition Total.h:50
Total & WithUnit(const Aws::String &value)
Definition Total.h:64
Total & WithUnit(Aws::String &&value)
Definition Total.h:65
void SetUnit(Aws::String &&value)
Definition Total.h:62
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)
void SetAmount(const char *value)
Definition Total.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue