1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/guardduty/GuardDuty_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
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 
26   /**
27    * <p>Contains the total usage with the corresponding currency unit for that
28    * value.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/Total">AWS API
30    * Reference</a></p>
31    */
32   class AWS_GUARDDUTY_API Total
33   {
34   public:
35     Total();
36     Total(Aws::Utils::Json::JsonView jsonValue);
37     Total& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The total usage.</p>
43      */
GetAmount()44     inline const Aws::String& GetAmount() const{ return m_amount; }
45 
46     /**
47      * <p>The total usage.</p>
48      */
AmountHasBeenSet()49     inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
50 
51     /**
52      * <p>The total usage.</p>
53      */
SetAmount(const Aws::String & value)54     inline void SetAmount(const Aws::String& value) { m_amountHasBeenSet = true; m_amount = value; }
55 
56     /**
57      * <p>The total usage.</p>
58      */
SetAmount(Aws::String && value)59     inline void SetAmount(Aws::String&& value) { m_amountHasBeenSet = true; m_amount = std::move(value); }
60 
61     /**
62      * <p>The total usage.</p>
63      */
SetAmount(const char * value)64     inline void SetAmount(const char* value) { m_amountHasBeenSet = true; m_amount.assign(value); }
65 
66     /**
67      * <p>The total usage.</p>
68      */
WithAmount(const Aws::String & value)69     inline Total& WithAmount(const Aws::String& value) { SetAmount(value); return *this;}
70 
71     /**
72      * <p>The total usage.</p>
73      */
WithAmount(Aws::String && value)74     inline Total& WithAmount(Aws::String&& value) { SetAmount(std::move(value)); return *this;}
75 
76     /**
77      * <p>The total usage.</p>
78      */
WithAmount(const char * value)79     inline Total& WithAmount(const char* value) { SetAmount(value); return *this;}
80 
81 
82     /**
83      * <p>The currency unit that the amount is given in.</p>
84      */
GetUnit()85     inline const Aws::String& GetUnit() const{ return m_unit; }
86 
87     /**
88      * <p>The currency unit that the amount is given in.</p>
89      */
UnitHasBeenSet()90     inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
91 
92     /**
93      * <p>The currency unit that the amount is given in.</p>
94      */
SetUnit(const Aws::String & value)95     inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
96 
97     /**
98      * <p>The currency unit that the amount is given in.</p>
99      */
SetUnit(Aws::String && value)100     inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
101 
102     /**
103      * <p>The currency unit that the amount is given in.</p>
104      */
SetUnit(const char * value)105     inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
106 
107     /**
108      * <p>The currency unit that the amount is given in.</p>
109      */
WithUnit(const Aws::String & value)110     inline Total& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
111 
112     /**
113      * <p>The currency unit that the amount is given in.</p>
114      */
WithUnit(Aws::String && value)115     inline Total& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
116 
117     /**
118      * <p>The currency unit that the amount is given in.</p>
119      */
WithUnit(const char * value)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
134