AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TextMatchItem.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/model/MatchOffset.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 DataZone
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DATAZONE_API TextMatchItem() = default;
38 AWS_DATAZONE_API TextMatchItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAttribute() const { return m_attribute; }
48 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
49 template<typename AttributeT = Aws::String>
50 void SetAttribute(AttributeT&& value) { m_attributeHasBeenSet = true; m_attribute = std::forward<AttributeT>(value); }
51 template<typename AttributeT = Aws::String>
52 TextMatchItem& WithAttribute(AttributeT&& value) { SetAttribute(std::forward<AttributeT>(value)); return *this;}
54
56
59 inline const Aws::Vector<MatchOffset>& GetMatchOffsets() const { return m_matchOffsets; }
60 inline bool MatchOffsetsHasBeenSet() const { return m_matchOffsetsHasBeenSet; }
61 template<typename MatchOffsetsT = Aws::Vector<MatchOffset>>
62 void SetMatchOffsets(MatchOffsetsT&& value) { m_matchOffsetsHasBeenSet = true; m_matchOffsets = std::forward<MatchOffsetsT>(value); }
63 template<typename MatchOffsetsT = Aws::Vector<MatchOffset>>
64 TextMatchItem& WithMatchOffsets(MatchOffsetsT&& value) { SetMatchOffsets(std::forward<MatchOffsetsT>(value)); return *this;}
65 template<typename MatchOffsetsT = MatchOffset>
66 TextMatchItem& AddMatchOffsets(MatchOffsetsT&& value) { m_matchOffsetsHasBeenSet = true; m_matchOffsets.emplace_back(std::forward<MatchOffsetsT>(value)); return *this; }
68
70
73 inline const Aws::String& GetText() const { return m_text; }
74 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
75 template<typename TextT = Aws::String>
76 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
77 template<typename TextT = Aws::String>
78 TextMatchItem& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
80 private:
81
82 Aws::String m_attribute;
83 bool m_attributeHasBeenSet = false;
84
85 Aws::Vector<MatchOffset> m_matchOffsets;
86 bool m_matchOffsetsHasBeenSet = false;
87
88 Aws::String m_text;
89 bool m_textHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace DataZone
94} // 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