AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
Conditions.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/Range.h>
9#include <aws/customer-profiles/model/Threshold.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
30 public:
31 AWS_CUSTOMERPROFILES_API Conditions() = default;
32 AWS_CUSTOMERPROFILES_API Conditions(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API Conditions& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Range& GetRange() const { return m_range; }
41 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
42 template <typename RangeT = Range>
43 void SetRange(RangeT&& value) {
44 m_rangeHasBeenSet = true;
45 m_range = std::forward<RangeT>(value);
46 }
47 template <typename RangeT = Range>
48 Conditions& WithRange(RangeT&& value) {
49 SetRange(std::forward<RangeT>(value));
50 return *this;
51 }
53
55
58 inline int GetObjectCount() const { return m_objectCount; }
59 inline bool ObjectCountHasBeenSet() const { return m_objectCountHasBeenSet; }
60 inline void SetObjectCount(int value) {
61 m_objectCountHasBeenSet = true;
62 m_objectCount = value;
63 }
64 inline Conditions& WithObjectCount(int value) {
65 SetObjectCount(value);
66 return *this;
67 }
69
71
74 inline const Threshold& GetThreshold() const { return m_threshold; }
75 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
76 template <typename ThresholdT = Threshold>
77 void SetThreshold(ThresholdT&& value) {
78 m_thresholdHasBeenSet = true;
79 m_threshold = std::forward<ThresholdT>(value);
80 }
81 template <typename ThresholdT = Threshold>
82 Conditions& WithThreshold(ThresholdT&& value) {
83 SetThreshold(std::forward<ThresholdT>(value));
84 return *this;
85 }
87 private:
88 Range m_range;
89
90 int m_objectCount{0};
91
92 Threshold m_threshold;
93 bool m_rangeHasBeenSet = false;
94 bool m_objectCountHasBeenSet = false;
95 bool m_thresholdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace CustomerProfiles
100} // namespace Aws
AWS_CUSTOMERPROFILES_API Conditions(Aws::Utils::Json::JsonView jsonValue)
Conditions & WithRange(RangeT &&value)
Definition Conditions.h:48
AWS_CUSTOMERPROFILES_API Conditions()=default
const Threshold & GetThreshold() const
Definition Conditions.h:74
Conditions & WithThreshold(ThresholdT &&value)
Definition Conditions.h:82
Conditions & WithObjectCount(int value)
Definition Conditions.h:64
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetThreshold(ThresholdT &&value)
Definition Conditions.h:77
AWS_CUSTOMERPROFILES_API Conditions & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue