AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
FetchCriterion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/FetchCriterionCondition.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API FetchCriterion() = default;
33 AWS_GUARDDUTY_API FetchCriterion(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetField() const { return m_field; }
42 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
43 template <typename FieldT = Aws::String>
44 void SetField(FieldT&& value) {
45 m_fieldHasBeenSet = true;
46 m_field = std::forward<FieldT>(value);
47 }
48 template <typename FieldT = Aws::String>
49 FetchCriterion& WithField(FieldT&& value) {
50 SetField(std::forward<FieldT>(value));
51 return *this;
52 }
54
56
62 inline FetchCriterionCondition GetCondition() const { return m_condition; }
63 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
65 m_conditionHasBeenSet = true;
66 m_condition = value;
67 }
69 SetCondition(value);
70 return *this;
71 }
73
75
79 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
80 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
81 template <typename ValuesT = Aws::Vector<Aws::String>>
82 void SetValues(ValuesT&& value) {
83 m_valuesHasBeenSet = true;
84 m_values = std::forward<ValuesT>(value);
85 }
86 template <typename ValuesT = Aws::Vector<Aws::String>>
87 FetchCriterion& WithValues(ValuesT&& value) {
88 SetValues(std::forward<ValuesT>(value));
89 return *this;
90 }
91 template <typename ValuesT = Aws::String>
92 FetchCriterion& AddValues(ValuesT&& value) {
93 m_valuesHasBeenSet = true;
94 m_values.emplace_back(std::forward<ValuesT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_field;
100
102
104 bool m_fieldHasBeenSet = false;
105 bool m_conditionHasBeenSet = false;
106 bool m_valuesHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace GuardDuty
111} // namespace Aws
FetchCriterion & WithField(FieldT &&value)
AWS_GUARDDUTY_API FetchCriterion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetField() const
FetchCriterion & WithCondition(FetchCriterionCondition value)
AWS_GUARDDUTY_API FetchCriterion(Aws::Utils::Json::JsonView jsonValue)
FetchCriterion & AddValues(ValuesT &&value)
void SetCondition(FetchCriterionCondition value)
AWS_GUARDDUTY_API FetchCriterion()=default
const Aws::Vector< Aws::String > & GetValues() const
FetchCriterion & WithValues(ValuesT &&value)
FetchCriterionCondition GetCondition() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue