AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AdvancedEventSelector.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/cloudtrail/model/AdvancedFieldSelector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudTrail
24{
25namespace Model
26{
27
62 {
63 public:
64 AWS_CLOUDTRAIL_API AdvancedEventSelector();
67 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
68
69
71
75 inline const Aws::String& GetName() const{ return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
78 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
79 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 inline AdvancedEventSelector& WithName(const Aws::String& value) { SetName(value); return *this;}
81 inline AdvancedEventSelector& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 inline AdvancedEventSelector& WithName(const char* value) { SetName(value); return *this;}
84
86
89 inline const Aws::Vector<AdvancedFieldSelector>& GetFieldSelectors() const{ return m_fieldSelectors; }
90 inline bool FieldSelectorsHasBeenSet() const { return m_fieldSelectorsHasBeenSet; }
91 inline void SetFieldSelectors(const Aws::Vector<AdvancedFieldSelector>& value) { m_fieldSelectorsHasBeenSet = true; m_fieldSelectors = value; }
92 inline void SetFieldSelectors(Aws::Vector<AdvancedFieldSelector>&& value) { m_fieldSelectorsHasBeenSet = true; m_fieldSelectors = std::move(value); }
95 inline AdvancedEventSelector& AddFieldSelectors(const AdvancedFieldSelector& value) { m_fieldSelectorsHasBeenSet = true; m_fieldSelectors.push_back(value); return *this; }
96 inline AdvancedEventSelector& AddFieldSelectors(AdvancedFieldSelector&& value) { m_fieldSelectorsHasBeenSet = true; m_fieldSelectors.push_back(std::move(value)); return *this; }
98 private:
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 Aws::Vector<AdvancedFieldSelector> m_fieldSelectors;
104 bool m_fieldSelectorsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace CloudTrail
109} // namespace Aws
AdvancedEventSelector & WithName(const char *value)
void SetFieldSelectors(Aws::Vector< AdvancedFieldSelector > &&value)
AdvancedEventSelector & WithFieldSelectors(Aws::Vector< AdvancedFieldSelector > &&value)
void SetFieldSelectors(const Aws::Vector< AdvancedFieldSelector > &value)
AdvancedEventSelector & AddFieldSelectors(const AdvancedFieldSelector &value)
AWS_CLOUDTRAIL_API AdvancedEventSelector & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AdvancedEventSelector & WithName(Aws::String &&value)
AWS_CLOUDTRAIL_API AdvancedEventSelector(Aws::Utils::Json::JsonView jsonValue)
AdvancedEventSelector & WithFieldSelectors(const Aws::Vector< AdvancedFieldSelector > &value)
AdvancedEventSelector & AddFieldSelectors(AdvancedFieldSelector &&value)
AdvancedEventSelector & WithName(const Aws::String &value)
const Aws::Vector< AdvancedFieldSelector > & GetFieldSelectors() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue