AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DetectedField.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/lookoutmetrics/model/AttributeValue.h>
9#include <aws/lookoutmetrics/model/Confidence.h>
10#include <aws/core/utils/memory/stl/AWSString.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 LookoutMetrics
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_LOOKOUTMETRICS_API DetectedField() = default;
37 AWS_LOOKOUTMETRICS_API DetectedField(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOOKOUTMETRICS_API DetectedField& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const AttributeValue& GetValue() const { return m_value; }
47 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
48 template<typename ValueT = AttributeValue>
49 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
50 template<typename ValueT = AttributeValue>
51 DetectedField& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
53
55
58 inline Confidence GetConfidence() const { return m_confidence; }
59 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
60 inline void SetConfidence(Confidence value) { m_confidenceHasBeenSet = true; m_confidence = value; }
61 inline DetectedField& WithConfidence(Confidence value) { SetConfidence(value); return *this;}
63
65
68 inline const Aws::String& GetMessage() const { return m_message; }
69 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
70 template<typename MessageT = Aws::String>
71 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
72 template<typename MessageT = Aws::String>
73 DetectedField& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
75 private:
76
77 AttributeValue m_value;
78 bool m_valueHasBeenSet = false;
79
80 Confidence m_confidence{Confidence::NOT_SET};
81 bool m_confidenceHasBeenSet = false;
82
83 Aws::String m_message;
84 bool m_messageHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace LookoutMetrics
89} // namespace Aws
DetectedField & WithMessage(MessageT &&value)
AWS_LOOKOUTMETRICS_API DetectedField(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
const AttributeValue & GetValue() const
AWS_LOOKOUTMETRICS_API DetectedField & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectedField & WithConfidence(Confidence value)
const Aws::String & GetMessage() const
AWS_LOOKOUTMETRICS_API DetectedField()=default
DetectedField & WithValue(ValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue