AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GUARDDUTY_API UsageDataSourceResult();
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const DataSource& GetDataSource() const{ return m_dataSource; }
47 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
48 inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; }
49 inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); }
50 inline UsageDataSourceResult& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;}
51 inline UsageDataSourceResult& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;}
53
55
58 inline const Total& GetTotal() const{ return m_total; }
59 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
60 inline void SetTotal(const Total& value) { m_totalHasBeenSet = true; m_total = value; }
61 inline void SetTotal(Total&& value) { m_totalHasBeenSet = true; m_total = std::move(value); }
62 inline UsageDataSourceResult& WithTotal(const Total& value) { SetTotal(value); return *this;}
63 inline UsageDataSourceResult& WithTotal(Total&& value) { SetTotal(std::move(value)); return *this;}
65 private:
66
67 DataSource m_dataSource;
68 bool m_dataSourceHasBeenSet = false;
69
70 Total m_total;
71 bool m_totalHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace GuardDuty
76} // namespace Aws
UsageDataSourceResult & WithDataSource(const DataSource &value)
AWS_GUARDDUTY_API UsageDataSourceResult(Aws::Utils::Json::JsonView jsonValue)
UsageDataSourceResult & WithTotal(Total &&value)
AWS_GUARDDUTY_API UsageDataSourceResult & operator=(Aws::Utils::Json::JsonView jsonValue)
UsageDataSourceResult & WithTotal(const Total &value)
UsageDataSourceResult & WithDataSource(DataSource &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue