AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
TextMatchItem.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/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/MatchOffset.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataZone {
22namespace Model {
23
31 public:
32 AWS_DATAZONE_API TextMatchItem() = default;
33 AWS_DATAZONE_API TextMatchItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAttribute() const { return m_attribute; }
42 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
43 template <typename AttributeT = Aws::String>
44 void SetAttribute(AttributeT&& value) {
45 m_attributeHasBeenSet = true;
46 m_attribute = std::forward<AttributeT>(value);
47 }
48 template <typename AttributeT = Aws::String>
49 TextMatchItem& WithAttribute(AttributeT&& value) {
50 SetAttribute(std::forward<AttributeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetText() const { return m_text; }
60 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
61 template <typename TextT = Aws::String>
62 void SetText(TextT&& value) {
63 m_textHasBeenSet = true;
64 m_text = std::forward<TextT>(value);
65 }
66 template <typename TextT = Aws::String>
67 TextMatchItem& WithText(TextT&& value) {
68 SetText(std::forward<TextT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<MatchOffset>& GetMatchOffsets() const { return m_matchOffsets; }
78 inline bool MatchOffsetsHasBeenSet() const { return m_matchOffsetsHasBeenSet; }
79 template <typename MatchOffsetsT = Aws::Vector<MatchOffset>>
80 void SetMatchOffsets(MatchOffsetsT&& value) {
81 m_matchOffsetsHasBeenSet = true;
82 m_matchOffsets = std::forward<MatchOffsetsT>(value);
83 }
84 template <typename MatchOffsetsT = Aws::Vector<MatchOffset>>
85 TextMatchItem& WithMatchOffsets(MatchOffsetsT&& value) {
86 SetMatchOffsets(std::forward<MatchOffsetsT>(value));
87 return *this;
88 }
89 template <typename MatchOffsetsT = MatchOffset>
90 TextMatchItem& AddMatchOffsets(MatchOffsetsT&& value) {
91 m_matchOffsetsHasBeenSet = true;
92 m_matchOffsets.emplace_back(std::forward<MatchOffsetsT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_attribute;
98
99 Aws::String m_text;
100
101 Aws::Vector<MatchOffset> m_matchOffsets;
102 bool m_attributeHasBeenSet = false;
103 bool m_textHasBeenSet = false;
104 bool m_matchOffsetsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace DataZone
109} // namespace Aws
void SetAttribute(AttributeT &&value)
const Aws::String & GetAttribute() const
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetText() const
const Aws::Vector< MatchOffset > & GetMatchOffsets() const
AWS_DATAZONE_API TextMatchItem(Aws::Utils::Json::JsonView jsonValue)
TextMatchItem & WithText(TextT &&value)
TextMatchItem & WithAttribute(AttributeT &&value)
AWS_DATAZONE_API TextMatchItem()=default
AWS_DATAZONE_API TextMatchItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMatchOffsets(MatchOffsetsT &&value)
TextMatchItem & WithMatchOffsets(MatchOffsetsT &&value)
TextMatchItem & AddMatchOffsets(MatchOffsetsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue