AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UsageTopAccountResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/Total.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
30 public:
31 AWS_GUARDDUTY_API UsageTopAccountResult() = default;
34 AWS_GUARDDUTY_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 UsageTopAccountResult& WithAccountId(AccountIdT&& value) {
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
53
55
56 inline const Total& GetTotal() const { return m_total; }
57 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
58 template <typename TotalT = Total>
59 void SetTotal(TotalT&& value) {
60 m_totalHasBeenSet = true;
61 m_total = std::forward<TotalT>(value);
62 }
63 template <typename TotalT = Total>
65 SetTotal(std::forward<TotalT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_accountId;
71
72 Total m_total;
73 bool m_accountIdHasBeenSet = false;
74 bool m_totalHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace GuardDuty
79} // namespace Aws
AWS_GUARDDUTY_API UsageTopAccountResult & operator=(Aws::Utils::Json::JsonView jsonValue)
UsageTopAccountResult & WithTotal(TotalT &&value)
AWS_GUARDDUTY_API UsageTopAccountResult(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API UsageTopAccountResult()=default
UsageTopAccountResult & WithAccountId(AccountIdT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue