AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AggregationConfiguration.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/EventCategoryAggregation.h>
9#include <aws/cloudtrail/model/Template.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 AggregationConfiguration() = default;
35 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Template>& GetTemplates() const { return m_templates; }
43 inline bool TemplatesHasBeenSet() const { return m_templatesHasBeenSet; }
44 template <typename TemplatesT = Aws::Vector<Template>>
45 void SetTemplates(TemplatesT&& value) {
46 m_templatesHasBeenSet = true;
47 m_templates = std::forward<TemplatesT>(value);
48 }
49 template <typename TemplatesT = Aws::Vector<Template>>
51 SetTemplates(std::forward<TemplatesT>(value));
52 return *this;
53 }
55 m_templatesHasBeenSet = true;
56 m_templates.push_back(value);
57 return *this;
58 }
60
62
65 inline EventCategoryAggregation GetEventCategory() const { return m_eventCategory; }
66 inline bool EventCategoryHasBeenSet() const { return m_eventCategoryHasBeenSet; }
68 m_eventCategoryHasBeenSet = true;
69 m_eventCategory = value;
70 }
72 SetEventCategory(value);
73 return *this;
74 }
76 private:
77 Aws::Vector<Template> m_templates;
78
80 bool m_templatesHasBeenSet = false;
81 bool m_eventCategoryHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace CloudTrail
86} // namespace Aws
AWS_CLOUDTRAIL_API AggregationConfiguration()=default
AggregationConfiguration & WithEventCategory(EventCategoryAggregation value)
AWS_CLOUDTRAIL_API AggregationConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Template > & GetTemplates() const
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDTRAIL_API AggregationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventCategory(EventCategoryAggregation value)
AggregationConfiguration & WithTemplates(TemplatesT &&value)
AggregationConfiguration & AddTemplates(Template value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue