AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.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
35 {
36 public:
37 AWS_CLOUDTRAIL_API ContextKeySelector() = default;
38 AWS_CLOUDTRAIL_API ContextKeySelector(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline Type GetType() const { return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
51 inline ContextKeySelector& WithType(Type value) { SetType(value); return *this;}
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) { m_equalsHasBeenSet = true; m_equals = std::forward<EqualsT>(value); }
63 template<typename EqualsT = Aws::Vector<Aws::String>>
64 ContextKeySelector& WithEquals(EqualsT&& value) { SetEquals(std::forward<EqualsT>(value)); return *this;}
65 template<typename EqualsT = Aws::String>
66 ContextKeySelector& AddEquals(EqualsT&& value) { m_equalsHasBeenSet = true; m_equals.emplace_back(std::forward<EqualsT>(value)); return *this; }
68 private:
69
70 Type m_type{Type::NOT_SET};
71 bool m_typeHasBeenSet = false;
72
74 bool m_equalsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CloudTrail
79} // 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