AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const UsageFeature& GetFeature() const{ return m_feature; }
50 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
51 inline void SetFeature(const UsageFeature& value) { m_featureHasBeenSet = true; m_feature = value; }
52 inline void SetFeature(UsageFeature&& value) { m_featureHasBeenSet = true; m_feature = std::move(value); }
53 inline UsageTopAccountsResult& WithFeature(const UsageFeature& value) { SetFeature(value); return *this;}
54 inline UsageTopAccountsResult& WithFeature(UsageFeature&& value) { SetFeature(std::move(value)); return *this;}
56
58
61 inline const Aws::Vector<UsageTopAccountResult>& GetAccounts() const{ return m_accounts; }
62 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
63 inline void SetAccounts(const Aws::Vector<UsageTopAccountResult>& value) { m_accountsHasBeenSet = true; m_accounts = value; }
64 inline void SetAccounts(Aws::Vector<UsageTopAccountResult>&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); }
66 inline UsageTopAccountsResult& WithAccounts(Aws::Vector<UsageTopAccountResult>&& value) { SetAccounts(std::move(value)); return *this;}
67 inline UsageTopAccountsResult& AddAccounts(const UsageTopAccountResult& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
68 inline UsageTopAccountsResult& AddAccounts(UsageTopAccountResult&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; }
70 private:
71
72 UsageFeature m_feature;
73 bool m_featureHasBeenSet = false;
74
76 bool m_accountsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace GuardDuty
81} // namespace Aws
AWS_GUARDDUTY_API UsageTopAccountsResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< UsageTopAccountResult > & GetAccounts() const
UsageTopAccountsResult & WithAccounts(const Aws::Vector< UsageTopAccountResult > &value)
void SetAccounts(Aws::Vector< UsageTopAccountResult > &&value)
AWS_GUARDDUTY_API UsageTopAccountsResult(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
UsageTopAccountsResult & WithFeature(UsageFeature &&value)
void SetAccounts(const Aws::Vector< UsageTopAccountResult > &value)
UsageTopAccountsResult & WithAccounts(Aws::Vector< UsageTopAccountResult > &&value)
UsageTopAccountsResult & AddAccounts(UsageTopAccountResult &&value)
UsageTopAccountsResult & AddAccounts(const UsageTopAccountResult &value)
UsageTopAccountsResult & WithFeature(const UsageFeature &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue