AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UsageTopAccountsResult.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/UsageFeature.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/model/UsageTopAccountResult.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 GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API UsageTopAccountsResult() = default;
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline UsageFeature GetFeature() const { return m_feature; }
50 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
51 inline void SetFeature(UsageFeature value) { m_featureHasBeenSet = true; m_feature = value; }
52 inline UsageTopAccountsResult& WithFeature(UsageFeature value) { SetFeature(value); return *this;}
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) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
63 template<typename AccountsT = Aws::Vector<UsageTopAccountResult>>
64 UsageTopAccountsResult& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
65 template<typename AccountsT = UsageTopAccountResult>
66 UsageTopAccountsResult& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
68 private:
69
71 bool m_featureHasBeenSet = false;
72
74 bool m_accountsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace GuardDuty
79} // 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