AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CompoundCondition.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/BooleanCondition.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCases {
21namespace Model {
22class BooleanCondition;
23
34 public:
35 AWS_CONNECTCASES_API CompoundCondition() = default;
36 AWS_CONNECTCASES_API CompoundCondition(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCASES_API CompoundCondition& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Vector<BooleanCondition>& GetConditions() const { return m_conditions; }
45 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
46 template <typename ConditionsT = Aws::Vector<BooleanCondition>>
47 void SetConditions(ConditionsT&& value) {
48 m_conditionsHasBeenSet = true;
49 m_conditions = std::forward<ConditionsT>(value);
50 }
51 template <typename ConditionsT = Aws::Vector<BooleanCondition>>
52 CompoundCondition& WithConditions(ConditionsT&& value) {
53 SetConditions(std::forward<ConditionsT>(value));
54 return *this;
55 }
56 template <typename ConditionsT = BooleanCondition>
57 CompoundCondition& AddConditions(ConditionsT&& value) {
58 m_conditionsHasBeenSet = true;
59 m_conditions.emplace_back(std::forward<ConditionsT>(value));
60 return *this;
61 }
63 private:
65 bool m_conditionsHasBeenSet = false;
66};
67
68} // namespace Model
69} // namespace ConnectCases
70} // namespace Aws
AWS_CONNECTCASES_API CompoundCondition()=default
const Aws::Vector< BooleanCondition > & GetConditions() const
AWS_CONNECTCASES_API CompoundCondition(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
CompoundCondition & AddConditions(ConditionsT &&value)
AWS_CONNECTCASES_API CompoundCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
CompoundCondition & WithConditions(ConditionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue