AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetValue(const AttributeValue& value) { m_valueHasBeenSet = true; m_value = value; }
49 inline void SetValue(AttributeValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
50 inline DetectedField& WithValue(const AttributeValue& value) { SetValue(value); return *this;}
51 inline DetectedField& WithValue(AttributeValue&& value) { SetValue(std::move(value)); return *this;}
53
55
58 inline const Confidence& GetConfidence() const{ return m_confidence; }
59 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
60 inline void SetConfidence(const Confidence& value) { m_confidenceHasBeenSet = true; m_confidence = value; }
61 inline void SetConfidence(Confidence&& value) { m_confidenceHasBeenSet = true; m_confidence = std::move(value); }
62 inline DetectedField& WithConfidence(const Confidence& value) { SetConfidence(value); return *this;}
63 inline DetectedField& WithConfidence(Confidence&& value) { SetConfidence(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetMessage() const{ return m_message; }
71 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
72 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
73 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
74 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
75 inline DetectedField& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
76 inline DetectedField& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
77 inline DetectedField& WithMessage(const char* value) { SetMessage(value); return *this;}
79 private:
80
81 AttributeValue m_value;
82 bool m_valueHasBeenSet = false;
83
84 Confidence m_confidence;
85 bool m_confidenceHasBeenSet = false;
86
87 Aws::String m_message;
88 bool m_messageHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace LookoutMetrics
93} // namespace Aws
DetectedField & WithMessage(Aws::String &&value)
DetectedField & WithConfidence(const Confidence &value)
AWS_LOOKOUTMETRICS_API DetectedField(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
const AttributeValue & GetValue() const
DetectedField & WithConfidence(Confidence &&value)
AWS_LOOKOUTMETRICS_API DetectedField & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
DetectedField & WithValue(AttributeValue &&value)
DetectedField & WithMessage(const char *value)
void SetValue(const AttributeValue &value)
DetectedField & WithValue(const AttributeValue &value)
DetectedField & WithMessage(const Aws::String &value)
const Confidence & GetConfidence() const
AWS_LOOKOUTMETRICS_API DetectedField()
void SetMessage(const Aws::String &value)
void SetConfidence(const Confidence &value)
void SetValue(AttributeValue &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue