AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
OrCondition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/qconnect/QConnect_EXPORTS.h>
9#include <aws/qconnect/model/TagCondition.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QConnect {
21namespace Model {
22
30 public:
31 AWS_QCONNECT_API OrCondition() = default;
34 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<TagCondition>& GetAndConditions() const { return m_andConditions; }
42 inline bool AndConditionsHasBeenSet() const { return m_andConditionsHasBeenSet; }
43 template <typename AndConditionsT = Aws::Vector<TagCondition>>
45 m_andConditionsHasBeenSet = true;
46 m_andConditions = std::forward<AndConditionsT>(value);
47 }
48 template <typename AndConditionsT = Aws::Vector<TagCondition>>
50 SetAndConditions(std::forward<AndConditionsT>(value));
51 return *this;
52 }
53 template <typename AndConditionsT = TagCondition>
55 m_andConditionsHasBeenSet = true;
56 m_andConditions.emplace_back(std::forward<AndConditionsT>(value));
57 return *this;
58 }
60
62
65 inline const TagCondition& GetTagCondition() const { return m_tagCondition; }
66 inline bool TagConditionHasBeenSet() const { return m_tagConditionHasBeenSet; }
67 template <typename TagConditionT = TagCondition>
69 m_tagConditionHasBeenSet = true;
70 m_tagCondition = std::forward<TagConditionT>(value);
71 }
72 template <typename TagConditionT = TagCondition>
74 SetTagCondition(std::forward<TagConditionT>(value));
75 return *this;
76 }
78 private:
79 Aws::Vector<TagCondition> m_andConditions;
80
81 TagCondition m_tagCondition;
82 bool m_andConditionsHasBeenSet = false;
83 bool m_tagConditionHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace QConnect
88} // namespace Aws
AWS_QCONNECT_API OrCondition()=default
OrCondition & WithAndConditions(AndConditionsT &&value)
Definition OrCondition.h:49
const TagCondition & GetTagCondition() const
Definition OrCondition.h:65
AWS_QCONNECT_API OrCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
OrCondition & WithTagCondition(TagConditionT &&value)
Definition OrCondition.h:73
void SetTagCondition(TagConditionT &&value)
Definition OrCondition.h:68
OrCondition & AddAndConditions(AndConditionsT &&value)
Definition OrCondition.h:54
AWS_QCONNECT_API OrCondition(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< TagCondition > & GetAndConditions() const
Definition OrCondition.h:41
void SetAndConditions(AndConditionsT &&value)
Definition OrCondition.h:44
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue