AWS SDK for C++

AWS SDK for C++ Version 1.11.617

Loading...
Searching...
No Matches
SearchFilter.h
1
6#pragma once
7#include <aws/medical-imaging/MedicalImaging_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medical-imaging/model/Operator.h>
10#include <aws/medical-imaging/model/SearchByAttributeValue.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 MedicalImaging
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MEDICALIMAGING_API SearchFilter() = default;
37 AWS_MEDICALIMAGING_API SearchFilter(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDICALIMAGING_API SearchFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDICALIMAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<SearchByAttributeValue>& GetValues() const { return m_values; }
47 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
48 template<typename ValuesT = Aws::Vector<SearchByAttributeValue>>
49 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
50 template<typename ValuesT = Aws::Vector<SearchByAttributeValue>>
51 SearchFilter& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
52 template<typename ValuesT = SearchByAttributeValue>
53 SearchFilter& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
55
57
60 inline Operator GetOperator() const { return m_operator; }
61 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
62 inline void SetOperator(Operator value) { m_operatorHasBeenSet = true; m_operator = value; }
63 inline SearchFilter& WithOperator(Operator value) { SetOperator(value); return *this;}
65 private:
66
68 bool m_valuesHasBeenSet = false;
69
70 Operator m_operator{Operator::NOT_SET};
71 bool m_operatorHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace MedicalImaging
76} // namespace Aws
AWS_MEDICALIMAGING_API SearchFilter(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SearchByAttributeValue > & GetValues() const
AWS_MEDICALIMAGING_API SearchFilter()=default
AWS_MEDICALIMAGING_API Aws::Utils::Json::JsonValue Jsonize() const
SearchFilter & AddValues(ValuesT &&value)
AWS_MEDICALIMAGING_API SearchFilter & operator=(Aws::Utils::Json::JsonView jsonValue)
SearchFilter & WithOperator(Operator value)
SearchFilter & WithValues(ValuesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue