AWS SDK for C++  1.9.104
AWS SDK for C++
UsageStatistics.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace GuardDuty
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::Vector<UsageAccountResult>& GetSumByAccount() const{ return m_sumByAccount; }
48 
52  inline bool SumByAccountHasBeenSet() const { return m_sumByAccountHasBeenSet; }
53 
57  inline void SetSumByAccount(const Aws::Vector<UsageAccountResult>& value) { m_sumByAccountHasBeenSet = true; m_sumByAccount = value; }
58 
62  inline void SetSumByAccount(Aws::Vector<UsageAccountResult>&& value) { m_sumByAccountHasBeenSet = true; m_sumByAccount = std::move(value); }
63 
67  inline UsageStatistics& WithSumByAccount(const Aws::Vector<UsageAccountResult>& value) { SetSumByAccount(value); return *this;}
68 
72  inline UsageStatistics& WithSumByAccount(Aws::Vector<UsageAccountResult>&& value) { SetSumByAccount(std::move(value)); return *this;}
73 
77  inline UsageStatistics& AddSumByAccount(const UsageAccountResult& value) { m_sumByAccountHasBeenSet = true; m_sumByAccount.push_back(value); return *this; }
78 
82  inline UsageStatistics& AddSumByAccount(UsageAccountResult&& value) { m_sumByAccountHasBeenSet = true; m_sumByAccount.push_back(std::move(value)); return *this; }
83 
84 
88  inline const Aws::Vector<UsageDataSourceResult>& GetSumByDataSource() const{ return m_sumByDataSource; }
89 
93  inline bool SumByDataSourceHasBeenSet() const { return m_sumByDataSourceHasBeenSet; }
94 
98  inline void SetSumByDataSource(const Aws::Vector<UsageDataSourceResult>& value) { m_sumByDataSourceHasBeenSet = true; m_sumByDataSource = value; }
99 
103  inline void SetSumByDataSource(Aws::Vector<UsageDataSourceResult>&& value) { m_sumByDataSourceHasBeenSet = true; m_sumByDataSource = std::move(value); }
104 
108  inline UsageStatistics& WithSumByDataSource(const Aws::Vector<UsageDataSourceResult>& value) { SetSumByDataSource(value); return *this;}
109 
113  inline UsageStatistics& WithSumByDataSource(Aws::Vector<UsageDataSourceResult>&& value) { SetSumByDataSource(std::move(value)); return *this;}
114 
118  inline UsageStatistics& AddSumByDataSource(const UsageDataSourceResult& value) { m_sumByDataSourceHasBeenSet = true; m_sumByDataSource.push_back(value); return *this; }
119 
123  inline UsageStatistics& AddSumByDataSource(UsageDataSourceResult&& value) { m_sumByDataSourceHasBeenSet = true; m_sumByDataSource.push_back(std::move(value)); return *this; }
124 
125 
129  inline const Aws::Vector<UsageResourceResult>& GetSumByResource() const{ return m_sumByResource; }
130 
134  inline bool SumByResourceHasBeenSet() const { return m_sumByResourceHasBeenSet; }
135 
139  inline void SetSumByResource(const Aws::Vector<UsageResourceResult>& value) { m_sumByResourceHasBeenSet = true; m_sumByResource = value; }
140 
144  inline void SetSumByResource(Aws::Vector<UsageResourceResult>&& value) { m_sumByResourceHasBeenSet = true; m_sumByResource = std::move(value); }
145 
149  inline UsageStatistics& WithSumByResource(const Aws::Vector<UsageResourceResult>& value) { SetSumByResource(value); return *this;}
150 
154  inline UsageStatistics& WithSumByResource(Aws::Vector<UsageResourceResult>&& value) { SetSumByResource(std::move(value)); return *this;}
155 
159  inline UsageStatistics& AddSumByResource(const UsageResourceResult& value) { m_sumByResourceHasBeenSet = true; m_sumByResource.push_back(value); return *this; }
160 
164  inline UsageStatistics& AddSumByResource(UsageResourceResult&& value) { m_sumByResourceHasBeenSet = true; m_sumByResource.push_back(std::move(value)); return *this; }
165 
166 
171  inline const Aws::Vector<UsageResourceResult>& GetTopResources() const{ return m_topResources; }
172 
177  inline bool TopResourcesHasBeenSet() const { return m_topResourcesHasBeenSet; }
178 
183  inline void SetTopResources(const Aws::Vector<UsageResourceResult>& value) { m_topResourcesHasBeenSet = true; m_topResources = value; }
184 
189  inline void SetTopResources(Aws::Vector<UsageResourceResult>&& value) { m_topResourcesHasBeenSet = true; m_topResources = std::move(value); }
190 
195  inline UsageStatistics& WithTopResources(const Aws::Vector<UsageResourceResult>& value) { SetTopResources(value); return *this;}
196 
201  inline UsageStatistics& WithTopResources(Aws::Vector<UsageResourceResult>&& value) { SetTopResources(std::move(value)); return *this;}
202 
207  inline UsageStatistics& AddTopResources(const UsageResourceResult& value) { m_topResourcesHasBeenSet = true; m_topResources.push_back(value); return *this; }
208 
213  inline UsageStatistics& AddTopResources(UsageResourceResult&& value) { m_topResourcesHasBeenSet = true; m_topResources.push_back(std::move(value)); return *this; }
214 
215  private:
216 
217  Aws::Vector<UsageAccountResult> m_sumByAccount;
218  bool m_sumByAccountHasBeenSet;
219 
220  Aws::Vector<UsageDataSourceResult> m_sumByDataSource;
221  bool m_sumByDataSourceHasBeenSet;
222 
223  Aws::Vector<UsageResourceResult> m_sumByResource;
224  bool m_sumByResourceHasBeenSet;
225 
226  Aws::Vector<UsageResourceResult> m_topResources;
227  bool m_topResourcesHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace GuardDuty
232 } // namespace Aws
Aws::GuardDuty::Model::UsageStatistics::UsageStatistics
UsageStatistics(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::UsageStatistics::SetTopResources
void SetTopResources(Aws::Vector< UsageResourceResult > &&value)
Definition: UsageStatistics.h:189
Aws::GuardDuty::Model::UsageStatistics::GetSumByResource
const Aws::Vector< UsageResourceResult > & GetSumByResource() const
Definition: UsageStatistics.h:129
Aws::GuardDuty::Model::UsageStatistics::SetSumByDataSource
void SetSumByDataSource(const Aws::Vector< UsageDataSourceResult > &value)
Definition: UsageStatistics.h:98
Aws::GuardDuty::Model::UsageStatistics::GetSumByDataSource
const Aws::Vector< UsageDataSourceResult > & GetSumByDataSource() const
Definition: UsageStatistics.h:88
Aws::GuardDuty::Model::UsageStatistics::AddSumByDataSource
UsageStatistics & AddSumByDataSource(const UsageDataSourceResult &value)
Definition: UsageStatistics.h:118
Aws::GuardDuty::Model::UsageStatistics::GetTopResources
const Aws::Vector< UsageResourceResult > & GetTopResources() const
Definition: UsageStatistics.h:171
Aws::GuardDuty::Model::UsageStatistics::WithTopResources
UsageStatistics & WithTopResources(Aws::Vector< UsageResourceResult > &&value)
Definition: UsageStatistics.h:201
Aws::GuardDuty::Model::UsageStatistics::AddTopResources
UsageStatistics & AddTopResources(const UsageResourceResult &value)
Definition: UsageStatistics.h:207
Aws::GuardDuty::Model::UsageStatistics::SetSumByResource
void SetSumByResource(Aws::Vector< UsageResourceResult > &&value)
Definition: UsageStatistics.h:144
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::UsageStatistics::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::UsageDataSourceResult
Definition: UsageDataSourceResult.h:34
AWSVector.h
Aws::GuardDuty::Model::UsageStatistics::WithSumByResource
UsageStatistics & WithSumByResource(const Aws::Vector< UsageResourceResult > &value)
Definition: UsageStatistics.h:149
Aws::GuardDuty::Model::UsageStatistics::SumByAccountHasBeenSet
bool SumByAccountHasBeenSet() const
Definition: UsageStatistics.h:52
UsageResourceResult.h
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::UsageStatistics
Definition: UsageStatistics.h:36
Aws::GuardDuty::Model::UsageStatistics::AddSumByResource
UsageStatistics & AddSumByResource(const UsageResourceResult &value)
Definition: UsageStatistics.h:159
Aws::GuardDuty::Model::UsageStatistics::AddSumByAccount
UsageStatistics & AddSumByAccount(UsageAccountResult &&value)
Definition: UsageStatistics.h:82
Aws::GuardDuty::Model::UsageStatistics::WithSumByDataSource
UsageStatistics & WithSumByDataSource(const Aws::Vector< UsageDataSourceResult > &value)
Definition: UsageStatistics.h:108
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
UsageDataSourceResult.h
Aws::GuardDuty::Model::UsageStatistics::AddSumByAccount
UsageStatistics & AddSumByAccount(const UsageAccountResult &value)
Definition: UsageStatistics.h:77
Aws::GuardDuty::Model::UsageStatistics::SumByDataSourceHasBeenSet
bool SumByDataSourceHasBeenSet() const
Definition: UsageStatistics.h:93
Aws::GuardDuty::Model::UsageStatistics::WithSumByAccount
UsageStatistics & WithSumByAccount(Aws::Vector< UsageAccountResult > &&value)
Definition: UsageStatistics.h:72
Aws::GuardDuty::Model::UsageStatistics::SetSumByAccount
void SetSumByAccount(const Aws::Vector< UsageAccountResult > &value)
Definition: UsageStatistics.h:57
Aws::GuardDuty::Model::UsageStatistics::TopResourcesHasBeenSet
bool TopResourcesHasBeenSet() const
Definition: UsageStatistics.h:177
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::UsageStatistics::WithTopResources
UsageStatistics & WithTopResources(const Aws::Vector< UsageResourceResult > &value)
Definition: UsageStatistics.h:195
Aws::GuardDuty::Model::UsageStatistics::operator=
UsageStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::UsageStatistics::AddTopResources
UsageStatistics & AddTopResources(UsageResourceResult &&value)
Definition: UsageStatistics.h:213
Aws::GuardDuty::Model::UsageStatistics::GetSumByAccount
const Aws::Vector< UsageAccountResult > & GetSumByAccount() const
Definition: UsageStatistics.h:47
Aws::GuardDuty::Model::UsageStatistics::SumByResourceHasBeenSet
bool SumByResourceHasBeenSet() const
Definition: UsageStatistics.h:134
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::UsageResourceResult
Definition: UsageResourceResult.h:34
Aws::GuardDuty::Model::UsageStatistics::SetSumByResource
void SetSumByResource(const Aws::Vector< UsageResourceResult > &value)
Definition: UsageStatistics.h:139
Aws::GuardDuty::Model::UsageStatistics::AddSumByDataSource
UsageStatistics & AddSumByDataSource(UsageDataSourceResult &&value)
Definition: UsageStatistics.h:123
Aws::GuardDuty::Model::UsageStatistics::WithSumByResource
UsageStatistics & WithSumByResource(Aws::Vector< UsageResourceResult > &&value)
Definition: UsageStatistics.h:154
Aws::GuardDuty::Model::UsageStatistics::AddSumByResource
UsageStatistics & AddSumByResource(UsageResourceResult &&value)
Definition: UsageStatistics.h:164
UsageAccountResult.h
Aws::GuardDuty::Model::UsageStatistics::SetTopResources
void SetTopResources(const Aws::Vector< UsageResourceResult > &value)
Definition: UsageStatistics.h:183
Aws::GuardDuty::Model::UsageStatistics::UsageStatistics
UsageStatistics()
Aws::GuardDuty::Model::UsageStatistics::SetSumByDataSource
void SetSumByDataSource(Aws::Vector< UsageDataSourceResult > &&value)
Definition: UsageStatistics.h:103
Aws::GuardDuty::Model::UsageStatistics::WithSumByAccount
UsageStatistics & WithSumByAccount(const Aws::Vector< UsageAccountResult > &value)
Definition: UsageStatistics.h:67
Aws::GuardDuty::Model::UsageAccountResult
Definition: UsageAccountResult.h:34
Aws::GuardDuty::Model::UsageStatistics::WithSumByDataSource
UsageStatistics & WithSumByDataSource(Aws::Vector< UsageDataSourceResult > &&value)
Definition: UsageStatistics.h:113
Aws::GuardDuty::Model::UsageStatistics::SetSumByAccount
void SetSumByAccount(Aws::Vector< UsageAccountResult > &&value)
Definition: UsageStatistics.h:62