AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UsageFeatureResult.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/Total.h>
9#include <aws/guardduty/model/UsageFeature.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 UsageFeatureResult() = default;
32 AWS_GUARDDUTY_API UsageFeatureResult(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline UsageFeature GetFeature() const { return m_feature; }
41 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
42 inline void SetFeature(UsageFeature value) {
43 m_featureHasBeenSet = true;
44 m_feature = value;
45 }
47 SetFeature(value);
48 return *this;
49 }
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) {
58 m_totalHasBeenSet = true;
59 m_total = std::forward<TotalT>(value);
60 }
61 template <typename TotalT = Total>
62 UsageFeatureResult& WithTotal(TotalT&& value) {
63 SetTotal(std::forward<TotalT>(value));
64 return *this;
65 }
67 private:
69
70 Total m_total;
71 bool m_featureHasBeenSet = false;
72 bool m_totalHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace GuardDuty
77} // 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