AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Threshold.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9#include <aws/customer-profiles/model/Operator.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
28class Threshold {
29 public:
30 AWS_CUSTOMERPROFILES_API Threshold() = default;
31 AWS_CUSTOMERPROFILES_API Threshold(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CUSTOMERPROFILES_API Threshold& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetValue() const { return m_value; }
40 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
41 template <typename ValueT = Aws::String>
42 void SetValue(ValueT&& value) {
43 m_valueHasBeenSet = true;
44 m_value = std::forward<ValueT>(value);
45 }
46 template <typename ValueT = Aws::String>
47 Threshold& WithValue(ValueT&& value) {
48 SetValue(std::forward<ValueT>(value));
49 return *this;
50 }
52
54
57 inline Operator GetOperator() const { return m_operator; }
58 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
59 inline void SetOperator(Operator value) {
60 m_operatorHasBeenSet = true;
61 m_operator = value;
62 }
64 SetOperator(value);
65 return *this;
66 }
68 private:
69 Aws::String m_value;
70
71 Operator m_operator{Operator::NOT_SET};
72 bool m_valueHasBeenSet = false;
73 bool m_operatorHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace CustomerProfiles
78} // namespace Aws
Threshold & WithOperator(Operator value)
Definition Threshold.h:63
AWS_CUSTOMERPROFILES_API Threshold()=default
AWS_CUSTOMERPROFILES_API Threshold(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetValue() const
Definition Threshold.h:39
Threshold & WithValue(ValueT &&value)
Definition Threshold.h:47
AWS_CUSTOMERPROFILES_API Threshold & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue