AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UsageTotal.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/model/Usage.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_INSPECTOR2_API UsageTotal() = default;
37 AWS_INSPECTOR2_API UsageTotal(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API UsageTotal& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccountId() const { return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 template<typename AccountIdT = Aws::String>
49 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
50 template<typename AccountIdT = Aws::String>
51 UsageTotal& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_usageHasBeenSet = true; m_usage = std::forward<UsageT>(value); }
62 template<typename UsageT = Aws::Vector<Usage>>
63 UsageTotal& WithUsage(UsageT&& value) { SetUsage(std::forward<UsageT>(value)); return *this;}
64 template<typename UsageT = Usage>
65 UsageTotal& AddUsage(UsageT&& value) { m_usageHasBeenSet = true; m_usage.emplace_back(std::forward<UsageT>(value)); return *this; }
67 private:
68
69 Aws::String m_accountId;
70 bool m_accountIdHasBeenSet = false;
71
72 Aws::Vector<Usage> m_usage;
73 bool m_usageHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Inspector2
78} // namespace Aws
const Aws::Vector< Usage > & GetUsage() const
Definition UsageTotal.h:58
void SetAccountId(AccountIdT &&value)
Definition UsageTotal.h:49
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
UsageTotal & WithAccountId(AccountIdT &&value)
Definition UsageTotal.h:51
AWS_INSPECTOR2_API UsageTotal(Aws::Utils::Json::JsonView jsonValue)
UsageTotal & WithUsage(UsageT &&value)
Definition UsageTotal.h:63
AWS_INSPECTOR2_API UsageTotal & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccountId() const
Definition UsageTotal.h:46
UsageTotal & AddUsage(UsageT &&value)
Definition UsageTotal.h:65
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