AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UsageTotal.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/Usage.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
30 public:
31 AWS_INSPECTOR2_API UsageTotal() = default;
32 AWS_INSPECTOR2_API UsageTotal(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR2_API UsageTotal& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template <typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) {
44 m_accountIdHasBeenSet = true;
45 m_accountId = std::forward<AccountIdT>(value);
46 }
47 template <typename AccountIdT = Aws::String>
48 UsageTotal& WithAccountId(AccountIdT&& value) {
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Usage>& GetUsage() const { return m_usage; }
59 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
60 template <typename UsageT = Aws::Vector<Usage>>
61 void SetUsage(UsageT&& value) {
62 m_usageHasBeenSet = true;
63 m_usage = std::forward<UsageT>(value);
64 }
65 template <typename UsageT = Aws::Vector<Usage>>
66 UsageTotal& WithUsage(UsageT&& value) {
67 SetUsage(std::forward<UsageT>(value));
68 return *this;
69 }
70 template <typename UsageT = Usage>
71 UsageTotal& AddUsage(UsageT&& value) {
72 m_usageHasBeenSet = true;
73 m_usage.emplace_back(std::forward<UsageT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_accountId;
79
80 Aws::Vector<Usage> m_usage;
81 bool m_accountIdHasBeenSet = false;
82 bool m_usageHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Inspector2
87} // namespace Aws
const Aws::Vector< Usage > & GetUsage() const
Definition UsageTotal.h:58
void SetAccountId(AccountIdT &&value)
Definition UsageTotal.h:43
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
UsageTotal & WithAccountId(AccountIdT &&value)
Definition UsageTotal.h:48
AWS_INSPECTOR2_API UsageTotal(Aws::Utils::Json::JsonView jsonValue)
UsageTotal & WithUsage(UsageT &&value)
Definition UsageTotal.h:66
AWS_INSPECTOR2_API UsageTotal & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccountId() const
Definition UsageTotal.h:40
UsageTotal & AddUsage(UsageT &&value)
Definition UsageTotal.h:71
AWS_INSPECTOR2_API UsageTotal()=default
void SetUsage(UsageT &&value)
Definition UsageTotal.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue