AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UsageStatistics.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/model/UsageAccountResult.h>
10#include <aws/guardduty/model/UsageTopAccountsResult.h>
11#include <aws/guardduty/model/UsageDataSourceResult.h>
12#include <aws/guardduty/model/UsageResourceResult.h>
13#include <aws/guardduty/model/UsageFeatureResult.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GuardDuty
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_GUARDDUTY_API UsageStatistics();
41 AWS_GUARDDUTY_API UsageStatistics(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Vector<UsageAccountResult>& GetSumByAccount() const{ return m_sumByAccount; }
51 inline bool SumByAccountHasBeenSet() const { return m_sumByAccountHasBeenSet; }
52 inline void SetSumByAccount(const Aws::Vector<UsageAccountResult>& value) { m_sumByAccountHasBeenSet = true; m_sumByAccount = value; }
53 inline void SetSumByAccount(Aws::Vector<UsageAccountResult>&& value) { m_sumByAccountHasBeenSet = true; m_sumByAccount = std::move(value); }
55 inline UsageStatistics& WithSumByAccount(Aws::Vector<UsageAccountResult>&& value) { SetSumByAccount(std::move(value)); return *this;}
56 inline UsageStatistics& AddSumByAccount(const UsageAccountResult& value) { m_sumByAccountHasBeenSet = true; m_sumByAccount.push_back(value); return *this; }
57 inline UsageStatistics& AddSumByAccount(UsageAccountResult&& value) { m_sumByAccountHasBeenSet = true; m_sumByAccount.push_back(std::move(value)); return *this; }
59
61
66 inline const Aws::Vector<UsageTopAccountsResult>& GetTopAccountsByFeature() const{ return m_topAccountsByFeature; }
67 inline bool TopAccountsByFeatureHasBeenSet() const { return m_topAccountsByFeatureHasBeenSet; }
68 inline void SetTopAccountsByFeature(const Aws::Vector<UsageTopAccountsResult>& value) { m_topAccountsByFeatureHasBeenSet = true; m_topAccountsByFeature = value; }
69 inline void SetTopAccountsByFeature(Aws::Vector<UsageTopAccountsResult>&& value) { m_topAccountsByFeatureHasBeenSet = true; m_topAccountsByFeature = std::move(value); }
72 inline UsageStatistics& AddTopAccountsByFeature(const UsageTopAccountsResult& value) { m_topAccountsByFeatureHasBeenSet = true; m_topAccountsByFeature.push_back(value); return *this; }
73 inline UsageStatistics& AddTopAccountsByFeature(UsageTopAccountsResult&& value) { m_topAccountsByFeatureHasBeenSet = true; m_topAccountsByFeature.push_back(std::move(value)); return *this; }
75
77
80 inline const Aws::Vector<UsageDataSourceResult>& GetSumByDataSource() const{ return m_sumByDataSource; }
81 inline bool SumByDataSourceHasBeenSet() const { return m_sumByDataSourceHasBeenSet; }
82 inline void SetSumByDataSource(const Aws::Vector<UsageDataSourceResult>& value) { m_sumByDataSourceHasBeenSet = true; m_sumByDataSource = value; }
83 inline void SetSumByDataSource(Aws::Vector<UsageDataSourceResult>&& value) { m_sumByDataSourceHasBeenSet = true; m_sumByDataSource = std::move(value); }
86 inline UsageStatistics& AddSumByDataSource(const UsageDataSourceResult& value) { m_sumByDataSourceHasBeenSet = true; m_sumByDataSource.push_back(value); return *this; }
87 inline UsageStatistics& AddSumByDataSource(UsageDataSourceResult&& value) { m_sumByDataSourceHasBeenSet = true; m_sumByDataSource.push_back(std::move(value)); return *this; }
89
91
94 inline const Aws::Vector<UsageResourceResult>& GetSumByResource() const{ return m_sumByResource; }
95 inline bool SumByResourceHasBeenSet() const { return m_sumByResourceHasBeenSet; }
96 inline void SetSumByResource(const Aws::Vector<UsageResourceResult>& value) { m_sumByResourceHasBeenSet = true; m_sumByResource = value; }
97 inline void SetSumByResource(Aws::Vector<UsageResourceResult>&& value) { m_sumByResourceHasBeenSet = true; m_sumByResource = std::move(value); }
99 inline UsageStatistics& WithSumByResource(Aws::Vector<UsageResourceResult>&& value) { SetSumByResource(std::move(value)); return *this;}
100 inline UsageStatistics& AddSumByResource(const UsageResourceResult& value) { m_sumByResourceHasBeenSet = true; m_sumByResource.push_back(value); return *this; }
101 inline UsageStatistics& AddSumByResource(UsageResourceResult&& value) { m_sumByResourceHasBeenSet = true; m_sumByResource.push_back(std::move(value)); return *this; }
103
105
109 inline const Aws::Vector<UsageResourceResult>& GetTopResources() const{ return m_topResources; }
110 inline bool TopResourcesHasBeenSet() const { return m_topResourcesHasBeenSet; }
111 inline void SetTopResources(const Aws::Vector<UsageResourceResult>& value) { m_topResourcesHasBeenSet = true; m_topResources = value; }
112 inline void SetTopResources(Aws::Vector<UsageResourceResult>&& value) { m_topResourcesHasBeenSet = true; m_topResources = std::move(value); }
114 inline UsageStatistics& WithTopResources(Aws::Vector<UsageResourceResult>&& value) { SetTopResources(std::move(value)); return *this;}
115 inline UsageStatistics& AddTopResources(const UsageResourceResult& value) { m_topResourcesHasBeenSet = true; m_topResources.push_back(value); return *this; }
116 inline UsageStatistics& AddTopResources(UsageResourceResult&& value) { m_topResourcesHasBeenSet = true; m_topResources.push_back(std::move(value)); return *this; }
118
120
123 inline const Aws::Vector<UsageFeatureResult>& GetSumByFeature() const{ return m_sumByFeature; }
124 inline bool SumByFeatureHasBeenSet() const { return m_sumByFeatureHasBeenSet; }
125 inline void SetSumByFeature(const Aws::Vector<UsageFeatureResult>& value) { m_sumByFeatureHasBeenSet = true; m_sumByFeature = value; }
126 inline void SetSumByFeature(Aws::Vector<UsageFeatureResult>&& value) { m_sumByFeatureHasBeenSet = true; m_sumByFeature = std::move(value); }
128 inline UsageStatistics& WithSumByFeature(Aws::Vector<UsageFeatureResult>&& value) { SetSumByFeature(std::move(value)); return *this;}
129 inline UsageStatistics& AddSumByFeature(const UsageFeatureResult& value) { m_sumByFeatureHasBeenSet = true; m_sumByFeature.push_back(value); return *this; }
130 inline UsageStatistics& AddSumByFeature(UsageFeatureResult&& value) { m_sumByFeatureHasBeenSet = true; m_sumByFeature.push_back(std::move(value)); return *this; }
132 private:
133
134 Aws::Vector<UsageAccountResult> m_sumByAccount;
135 bool m_sumByAccountHasBeenSet = false;
136
137 Aws::Vector<UsageTopAccountsResult> m_topAccountsByFeature;
138 bool m_topAccountsByFeatureHasBeenSet = false;
139
140 Aws::Vector<UsageDataSourceResult> m_sumByDataSource;
141 bool m_sumByDataSourceHasBeenSet = false;
142
143 Aws::Vector<UsageResourceResult> m_sumByResource;
144 bool m_sumByResourceHasBeenSet = false;
145
147 bool m_topResourcesHasBeenSet = false;
148
149 Aws::Vector<UsageFeatureResult> m_sumByFeature;
150 bool m_sumByFeatureHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace GuardDuty
155} // namespace Aws
UsageStatistics & AddSumByFeature(UsageFeatureResult &&value)
const Aws::Vector< UsageResourceResult > & GetTopResources() const
UsageStatistics & AddTopResources(UsageResourceResult &&value)
void SetSumByResource(Aws::Vector< UsageResourceResult > &&value)
UsageStatistics & WithSumByDataSource(const Aws::Vector< UsageDataSourceResult > &value)
UsageStatistics & WithSumByAccount(const Aws::Vector< UsageAccountResult > &value)
UsageStatistics & WithTopAccountsByFeature(Aws::Vector< UsageTopAccountsResult > &&value)
UsageStatistics & WithSumByResource(Aws::Vector< UsageResourceResult > &&value)
void SetSumByFeature(const Aws::Vector< UsageFeatureResult > &value)
const Aws::Vector< UsageAccountResult > & GetSumByAccount() const
void SetTopAccountsByFeature(Aws::Vector< UsageTopAccountsResult > &&value)
UsageStatistics & WithSumByResource(const Aws::Vector< UsageResourceResult > &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSumByFeature(Aws::Vector< UsageFeatureResult > &&value)
void SetTopResources(Aws::Vector< UsageResourceResult > &&value)
UsageStatistics & AddSumByFeature(const UsageFeatureResult &value)
const Aws::Vector< UsageDataSourceResult > & GetSumByDataSource() const
UsageStatistics & AddSumByDataSource(UsageDataSourceResult &&value)
UsageStatistics & AddSumByAccount(UsageAccountResult &&value)
UsageStatistics & AddSumByResource(UsageResourceResult &&value)
UsageStatistics & WithSumByFeature(const Aws::Vector< UsageFeatureResult > &value)
UsageStatistics & WithSumByFeature(Aws::Vector< UsageFeatureResult > &&value)
void SetSumByAccount(Aws::Vector< UsageAccountResult > &&value)
UsageStatistics & AddTopResources(const UsageResourceResult &value)
const Aws::Vector< UsageTopAccountsResult > & GetTopAccountsByFeature() const
void SetSumByDataSource(Aws::Vector< UsageDataSourceResult > &&value)
UsageStatistics & AddSumByAccount(const UsageAccountResult &value)
const Aws::Vector< UsageResourceResult > & GetSumByResource() const
UsageStatistics & AddTopAccountsByFeature(UsageTopAccountsResult &&value)
void SetSumByDataSource(const Aws::Vector< UsageDataSourceResult > &value)
UsageStatistics & WithTopResources(const Aws::Vector< UsageResourceResult > &value)
UsageStatistics & AddSumByResource(const UsageResourceResult &value)
UsageStatistics & WithSumByAccount(Aws::Vector< UsageAccountResult > &&value)
void SetTopAccountsByFeature(const Aws::Vector< UsageTopAccountsResult > &value)
UsageStatistics & WithTopResources(Aws::Vector< UsageResourceResult > &&value)
AWS_GUARDDUTY_API UsageStatistics(Aws::Utils::Json::JsonView jsonValue)
UsageStatistics & AddSumByDataSource(const UsageDataSourceResult &value)
UsageStatistics & AddTopAccountsByFeature(const UsageTopAccountsResult &value)
void SetSumByAccount(const Aws::Vector< UsageAccountResult > &value)
void SetTopResources(const Aws::Vector< UsageResourceResult > &value)
AWS_GUARDDUTY_API UsageStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSumByResource(const Aws::Vector< UsageResourceResult > &value)
UsageStatistics & WithSumByDataSource(Aws::Vector< UsageDataSourceResult > &&value)
const Aws::Vector< UsageFeatureResult > & GetSumByFeature() const
UsageStatistics & WithTopAccountsByFeature(const Aws::Vector< UsageTopAccountsResult > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue