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>
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>
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>>
65 template<
typename MatchOffsetsT = MatchOffset>
66 TextMatchItem&
AddMatchOffsets(MatchOffsetsT&& value) { m_matchOffsetsHasBeenSet =
true; m_matchOffsets.emplace_back(std::forward<MatchOffsetsT>(value));
return *
this; }
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>
83 bool m_attributeHasBeenSet =
false;
86 bool m_matchOffsetsHasBeenSet =
false;
89 bool m_textHasBeenSet =
false;
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)
bool AttributeHasBeenSet() const
void SetMatchOffsets(MatchOffsetsT &&value)
bool TextHasBeenSet() const
void SetText(TextT &&value)
TextMatchItem & WithMatchOffsets(MatchOffsetsT &&value)
TextMatchItem & AddMatchOffsets(MatchOffsetsT &&value)
bool MatchOffsetsHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue