AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
UsageTopAccountsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/UsageFeature.h>
10#include <aws/guardduty/model/UsageTopAccountResult.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API UsageTopAccountsResult() = default;
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline UsageFeature GetFeature() const { return m_feature; }
44 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
45 inline void SetFeature(UsageFeature value) {
46 m_featureHasBeenSet = true;
47 m_feature = value;
48 }
50 SetFeature(value);
51 return *this;
52 }
54
56
59 inline const Aws::Vector<UsageTopAccountResult>& GetAccounts() const { return m_accounts; }
60 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
61 template <typename AccountsT = Aws::Vector<UsageTopAccountResult>>
62 void SetAccounts(AccountsT&& value) {
63 m_accountsHasBeenSet = true;
64 m_accounts = std::forward<AccountsT>(value);
65 }
66 template <typename AccountsT = Aws::Vector<UsageTopAccountResult>>
68 SetAccounts(std::forward<AccountsT>(value));
69 return *this;
70 }
71 template <typename AccountsT = UsageTopAccountResult>
72 UsageTopAccountsResult& AddAccounts(AccountsT&& value) {
73 m_accountsHasBeenSet = true;
74 m_accounts.emplace_back(std::forward<AccountsT>(value));
75 return *this;
76 }
78 private:
80
82 bool m_featureHasBeenSet = false;
83 bool m_accountsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace GuardDuty
88} // namespace Aws
AWS_GUARDDUTY_API UsageTopAccountsResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< UsageTopAccountResult > & GetAccounts() const
UsageTopAccountsResult & AddAccounts(AccountsT &&value)
AWS_GUARDDUTY_API UsageTopAccountsResult(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API UsageTopAccountsResult()=default
UsageTopAccountsResult & WithAccounts(AccountsT &&value)
UsageTopAccountsResult & WithFeature(UsageFeature value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue