AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InsightSelector.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/InsightType.h>
9#include <aws/cloudtrail/model/SourceEventCategory.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudTrail {
22namespace Model {
23
31 public:
32 AWS_CLOUDTRAIL_API InsightSelector() = default;
33 AWS_CLOUDTRAIL_API InsightSelector(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
48 inline InsightType GetInsightType() const { return m_insightType; }
49 inline bool InsightTypeHasBeenSet() const { return m_insightTypeHasBeenSet; }
50 inline void SetInsightType(InsightType value) {
51 m_insightTypeHasBeenSet = true;
52 m_insightType = value;
53 }
55 SetInsightType(value);
56 return *this;
57 }
59
61
71 inline const Aws::Vector<SourceEventCategory>& GetEventCategories() const { return m_eventCategories; }
72 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
73 template <typename EventCategoriesT = Aws::Vector<SourceEventCategory>>
74 void SetEventCategories(EventCategoriesT&& value) {
75 m_eventCategoriesHasBeenSet = true;
76 m_eventCategories = std::forward<EventCategoriesT>(value);
77 }
78 template <typename EventCategoriesT = Aws::Vector<SourceEventCategory>>
79 InsightSelector& WithEventCategories(EventCategoriesT&& value) {
80 SetEventCategories(std::forward<EventCategoriesT>(value));
81 return *this;
82 }
84 m_eventCategoriesHasBeenSet = true;
85 m_eventCategories.push_back(value);
86 return *this;
87 }
89 private:
90 InsightType m_insightType{InsightType::NOT_SET};
91
92 Aws::Vector<SourceEventCategory> m_eventCategories;
93 bool m_insightTypeHasBeenSet = false;
94 bool m_eventCategoriesHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace CloudTrail
99} // namespace Aws
const Aws::Vector< SourceEventCategory > & GetEventCategories() const
InsightSelector & AddEventCategories(SourceEventCategory value)
void SetEventCategories(EventCategoriesT &&value)
InsightSelector & WithEventCategories(EventCategoriesT &&value)
AWS_CLOUDTRAIL_API InsightSelector(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API InsightSelector()=default
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
InsightSelector & WithInsightType(InsightType value)
AWS_CLOUDTRAIL_API InsightSelector & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue