AWS SDK for C++  1.9.21
AWS SDK for C++
Total.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GuardDuty
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Total();
39 
40 
44  inline const Aws::String& GetAmount() const{ return m_amount; }
45 
49  inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
50 
54  inline void SetAmount(const Aws::String& value) { m_amountHasBeenSet = true; m_amount = value; }
55 
59  inline void SetAmount(Aws::String&& value) { m_amountHasBeenSet = true; m_amount = std::move(value); }
60 
64  inline void SetAmount(const char* value) { m_amountHasBeenSet = true; m_amount.assign(value); }
65 
69  inline Total& WithAmount(const Aws::String& value) { SetAmount(value); return *this;}
70 
74  inline Total& WithAmount(Aws::String&& value) { SetAmount(std::move(value)); return *this;}
75 
79  inline Total& WithAmount(const char* value) { SetAmount(value); return *this;}
80 
81 
85  inline const Aws::String& GetUnit() const{ return m_unit; }
86 
90  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
91 
95  inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
96 
100  inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
101 
105  inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
106 
110  inline Total& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
111 
115  inline Total& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
116 
120  inline Total& WithUnit(const char* value) { SetUnit(value); return *this;}
121 
122  private:
123 
124  Aws::String m_amount;
125  bool m_amountHasBeenSet;
126 
127  Aws::String m_unit;
128  bool m_unitHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace GuardDuty
133 } // namespace Aws
Aws::GuardDuty::Model::Total::WithAmount
Total & WithAmount(Aws::String &&value)
Definition: Total.h:74
Aws::GuardDuty::Model::Total::SetAmount
void SetAmount(const char *value)
Definition: Total.h:64
Aws::GuardDuty::Model::Total::SetUnit
void SetUnit(Aws::String &&value)
Definition: Total.h:100
Aws::GuardDuty::Model::Total::GetUnit
const Aws::String & GetUnit() const
Definition: Total.h:85
Aws::GuardDuty::Model::Total::SetAmount
void SetAmount(const Aws::String &value)
Definition: Total.h:54
Aws::GuardDuty::Model::Total::SetUnit
void SetUnit(const char *value)
Definition: Total.h:105
Aws::GuardDuty::Model::Total
Definition: Total.h:33
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::Total::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: Total.h:90
Aws::GuardDuty::Model::Total::WithUnit
Total & WithUnit(const char *value)
Definition: Total.h:120
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::Total::WithUnit
Total & WithUnit(const Aws::String &value)
Definition: Total.h:110
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::Total::operator=
Total & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Total::WithAmount
Total & WithAmount(const Aws::String &value)
Definition: Total.h:69
Aws::GuardDuty::Model::Total::GetAmount
const Aws::String & GetAmount() const
Definition: Total.h:44
Aws::GuardDuty::Model::Total::AmountHasBeenSet
bool AmountHasBeenSet() const
Definition: Total.h:49
Aws::GuardDuty::Model::Total::SetUnit
void SetUnit(const Aws::String &value)
Definition: Total.h:95
Aws::GuardDuty::Model::Total::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::Total::Total
Total(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::Total::SetAmount
void SetAmount(Aws::String &&value)
Definition: Total.h:59
Aws::GuardDuty::Model::Total::Total
Total()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::Total::WithAmount
Total & WithAmount(const char *value)
Definition: Total.h:79
Aws::GuardDuty::Model::Total::WithUnit
Total & WithUnit(Aws::String &&value)
Definition: Total.h:115