AWS SDK for C++  1.9.21
AWS SDK for C++
UsageDataSourceResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GuardDuty
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const DataSource& GetDataSource() const{ return m_dataSource; }
46 
50  inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
51 
55  inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; }
56 
60  inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); }
61 
65  inline UsageDataSourceResult& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;}
66 
70  inline UsageDataSourceResult& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;}
71 
72 
76  inline const Total& GetTotal() const{ return m_total; }
77 
81  inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
82 
86  inline void SetTotal(const Total& value) { m_totalHasBeenSet = true; m_total = value; }
87 
91  inline void SetTotal(Total&& value) { m_totalHasBeenSet = true; m_total = std::move(value); }
92 
96  inline UsageDataSourceResult& WithTotal(const Total& value) { SetTotal(value); return *this;}
97 
101  inline UsageDataSourceResult& WithTotal(Total&& value) { SetTotal(std::move(value)); return *this;}
102 
103  private:
104 
105  DataSource m_dataSource;
106  bool m_dataSourceHasBeenSet;
107 
108  Total m_total;
109  bool m_totalHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace GuardDuty
114 } // namespace Aws
Aws::GuardDuty::Model::UsageDataSourceResult::operator=
UsageDataSourceResult & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSource.h
Total.h
Aws::GuardDuty::Model::UsageDataSourceResult::SetTotal
void SetTotal(const Total &value)
Definition: UsageDataSourceResult.h:86
Aws::GuardDuty::Model::UsageDataSourceResult::GetTotal
const Total & GetTotal() const
Definition: UsageDataSourceResult.h:76
Aws::GuardDuty::Model::UsageDataSourceResult::SetDataSource
void SetDataSource(DataSource &&value)
Definition: UsageDataSourceResult.h:60
Aws::GuardDuty::Model::UsageDataSourceResult::UsageDataSourceResult
UsageDataSourceResult()
Aws::GuardDuty::Model::UsageDataSourceResult::SetDataSource
void SetDataSource(const DataSource &value)
Definition: UsageDataSourceResult.h:55
Aws::GuardDuty::Model::UsageDataSourceResult::WithDataSource
UsageDataSourceResult & WithDataSource(DataSource &&value)
Definition: UsageDataSourceResult.h:70
Aws::GuardDuty::Model::UsageDataSourceResult::SetTotal
void SetTotal(Total &&value)
Definition: UsageDataSourceResult.h:91
Aws::GuardDuty::Model::UsageDataSourceResult::TotalHasBeenSet
bool TotalHasBeenSet() const
Definition: UsageDataSourceResult.h:81
Aws::GuardDuty::Model::UsageDataSourceResult
Definition: UsageDataSourceResult.h:34
Aws::GuardDuty::Model::Total
Definition: Total.h:33
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::UsageDataSourceResult::DataSourceHasBeenSet
bool DataSourceHasBeenSet() const
Definition: UsageDataSourceResult.h:50
Aws::GuardDuty::Model::UsageDataSourceResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::UsageDataSourceResult::UsageDataSourceResult
UsageDataSourceResult(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::UsageDataSourceResult::GetDataSource
const DataSource & GetDataSource() const
Definition: UsageDataSourceResult.h:45
Aws::GuardDuty::Model::UsageDataSourceResult::WithDataSource
UsageDataSourceResult & WithDataSource(const DataSource &value)
Definition: UsageDataSourceResult.h:65
Aws::GuardDuty::Model::UsageDataSourceResult::WithTotal
UsageDataSourceResult & WithTotal(Total &&value)
Definition: UsageDataSourceResult.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::DataSource
DataSource
Definition: DataSource.h:17
Aws::GuardDuty::Model::UsageDataSourceResult::WithTotal
UsageDataSourceResult & WithTotal(const Total &value)
Definition: UsageDataSourceResult.h:96