AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UsageFeatureResult.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/UsageFeature.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 UsageFeatureResult() = default;
37 AWS_GUARDDUTY_API UsageFeatureResult(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline UsageFeature GetFeature() const { return m_feature; }
47 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
48 inline void SetFeature(UsageFeature value) { m_featureHasBeenSet = true; m_feature = value; }
49 inline UsageFeatureResult& WithFeature(UsageFeature value) { SetFeature(value); return *this;}
51
53
54 inline const Total& GetTotal() const { return m_total; }
55 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
56 template<typename TotalT = Total>
57 void SetTotal(TotalT&& value) { m_totalHasBeenSet = true; m_total = std::forward<TotalT>(value); }
58 template<typename TotalT = Total>
59 UsageFeatureResult& WithTotal(TotalT&& value) { SetTotal(std::forward<TotalT>(value)); return *this;}
61 private:
62
64 bool m_featureHasBeenSet = false;
65
66 Total m_total;
67 bool m_totalHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace GuardDuty
72} // namespace Aws
AWS_GUARDDUTY_API UsageFeatureResult()=default
UsageFeatureResult & WithTotal(TotalT &&value)
AWS_GUARDDUTY_API UsageFeatureResult(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
UsageFeatureResult & WithFeature(UsageFeature value)
AWS_GUARDDUTY_API UsageFeatureResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue