AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UsageDataSourceResult.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/DataSource.h>
9#include <aws/guardduty/model/Total.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
30 public:
31 AWS_GUARDDUTY_API UsageDataSourceResult() = default;
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline DataSource GetDataSource() const { return m_dataSource; }
41 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
42 inline void SetDataSource(DataSource value) {
43 m_dataSourceHasBeenSet = true;
44 m_dataSource = value;
45 }
47 SetDataSource(value);
48 return *this;
49 }
51
53
56 inline const Total& GetTotal() const { return m_total; }
57 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
58 template <typename TotalT = Total>
59 void SetTotal(TotalT&& value) {
60 m_totalHasBeenSet = true;
61 m_total = std::forward<TotalT>(value);
62 }
63 template <typename TotalT = Total>
65 SetTotal(std::forward<TotalT>(value));
66 return *this;
67 }
69 private:
70 DataSource m_dataSource{DataSource::NOT_SET};
71
72 Total m_total;
73 bool m_dataSourceHasBeenSet = false;
74 bool m_totalHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace GuardDuty
79} // namespace Aws
AWS_GUARDDUTY_API UsageDataSourceResult()=default
AWS_GUARDDUTY_API UsageDataSourceResult(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API UsageDataSourceResult & operator=(Aws::Utils::Json::JsonView jsonValue)
UsageDataSourceResult & WithTotal(TotalT &&value)
UsageDataSourceResult & WithDataSource(DataSource value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue