AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ContextKeySelector.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/Type.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ContextKeySelector() = default;
33 AWS_CLOUDTRAIL_API ContextKeySelector(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline Type GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(Type value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetEquals() const { return m_equals; }
60 inline bool EqualsHasBeenSet() const { return m_equalsHasBeenSet; }
61 template <typename EqualsT = Aws::Vector<Aws::String>>
62 void SetEquals(EqualsT&& value) {
63 m_equalsHasBeenSet = true;
64 m_equals = std::forward<EqualsT>(value);
65 }
66 template <typename EqualsT = Aws::Vector<Aws::String>>
67 ContextKeySelector& WithEquals(EqualsT&& value) {
68 SetEquals(std::forward<EqualsT>(value));
69 return *this;
70 }
71 template <typename EqualsT = Aws::String>
72 ContextKeySelector& AddEquals(EqualsT&& value) {
73 m_equalsHasBeenSet = true;
74 m_equals.emplace_back(std::forward<EqualsT>(value));
75 return *this;
76 }
78 private:
79 Type m_type{Type::NOT_SET};
80
82 bool m_typeHasBeenSet = false;
83 bool m_equalsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace CloudTrail
88} // namespace Aws
AWS_CLOUDTRAIL_API ContextKeySelector(Aws::Utils::Json::JsonView jsonValue)
ContextKeySelector & AddEquals(EqualsT &&value)
AWS_CLOUDTRAIL_API ContextKeySelector & operator=(Aws::Utils::Json::JsonView jsonValue)
ContextKeySelector & WithType(Type value)
ContextKeySelector & WithEquals(EqualsT &&value)
AWS_CLOUDTRAIL_API ContextKeySelector()=default
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetEquals() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue