AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
MatchRationaleItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/TextMatchItem.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
30 public:
31 AWS_DATAZONE_API MatchRationaleItem() = default;
34 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<TextMatchItem>& GetTextMatches() const { return m_textMatches; }
41 inline bool TextMatchesHasBeenSet() const { return m_textMatchesHasBeenSet; }
42 template <typename TextMatchesT = Aws::Vector<TextMatchItem>>
43 void SetTextMatches(TextMatchesT&& value) {
44 m_textMatchesHasBeenSet = true;
45 m_textMatches = std::forward<TextMatchesT>(value);
46 }
47 template <typename TextMatchesT = Aws::Vector<TextMatchItem>>
48 MatchRationaleItem& WithTextMatches(TextMatchesT&& value) {
49 SetTextMatches(std::forward<TextMatchesT>(value));
50 return *this;
51 }
52 template <typename TextMatchesT = TextMatchItem>
53 MatchRationaleItem& AddTextMatches(TextMatchesT&& value) {
54 m_textMatchesHasBeenSet = true;
55 m_textMatches.emplace_back(std::forward<TextMatchesT>(value));
56 return *this;
57 }
59 private:
60 Aws::Vector<TextMatchItem> m_textMatches;
61 bool m_textMatchesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace DataZone
66} // namespace Aws
AWS_DATAZONE_API MatchRationaleItem(Aws::Utils::Json::JsonView jsonValue)
MatchRationaleItem & AddTextMatches(TextMatchesT &&value)
AWS_DATAZONE_API MatchRationaleItem()=default
const Aws::Vector< TextMatchItem > & GetTextMatches() const
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
MatchRationaleItem & WithTextMatches(TextMatchesT &&value)
AWS_DATAZONE_API MatchRationaleItem & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue