AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Categories.h
1
6#pragma once
7#include <aws/connect-contact-lens/ConnectContactLens_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/connect-contact-lens/model/CategoryDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectContactLens
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CONNECTCONTACTLENS_API Categories() = default;
39 AWS_CONNECTCONTACTLENS_API Categories(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTCONTACTLENS_API Categories& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECTCONTACTLENS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetMatchedCategories() const { return m_matchedCategories; }
49 inline bool MatchedCategoriesHasBeenSet() const { return m_matchedCategoriesHasBeenSet; }
50 template<typename MatchedCategoriesT = Aws::Vector<Aws::String>>
51 void SetMatchedCategories(MatchedCategoriesT&& value) { m_matchedCategoriesHasBeenSet = true; m_matchedCategories = std::forward<MatchedCategoriesT>(value); }
52 template<typename MatchedCategoriesT = Aws::Vector<Aws::String>>
53 Categories& WithMatchedCategories(MatchedCategoriesT&& value) { SetMatchedCategories(std::forward<MatchedCategoriesT>(value)); return *this;}
54 template<typename MatchedCategoriesT = Aws::String>
55 Categories& AddMatchedCategories(MatchedCategoriesT&& value) { m_matchedCategoriesHasBeenSet = true; m_matchedCategories.emplace_back(std::forward<MatchedCategoriesT>(value)); return *this; }
57
59
63 inline const Aws::Map<Aws::String, CategoryDetails>& GetMatchedDetails() const { return m_matchedDetails; }
64 inline bool MatchedDetailsHasBeenSet() const { return m_matchedDetailsHasBeenSet; }
65 template<typename MatchedDetailsT = Aws::Map<Aws::String, CategoryDetails>>
66 void SetMatchedDetails(MatchedDetailsT&& value) { m_matchedDetailsHasBeenSet = true; m_matchedDetails = std::forward<MatchedDetailsT>(value); }
67 template<typename MatchedDetailsT = Aws::Map<Aws::String, CategoryDetails>>
68 Categories& WithMatchedDetails(MatchedDetailsT&& value) { SetMatchedDetails(std::forward<MatchedDetailsT>(value)); return *this;}
69 template<typename MatchedDetailsKeyT = Aws::String, typename MatchedDetailsValueT = CategoryDetails>
70 Categories& AddMatchedDetails(MatchedDetailsKeyT&& key, MatchedDetailsValueT&& value) {
71 m_matchedDetailsHasBeenSet = true; m_matchedDetails.emplace(std::forward<MatchedDetailsKeyT>(key), std::forward<MatchedDetailsValueT>(value)); return *this;
72 }
74 private:
75
76 Aws::Vector<Aws::String> m_matchedCategories;
77 bool m_matchedCategoriesHasBeenSet = false;
78
80 bool m_matchedDetailsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ConnectContactLens
85} // namespace Aws
Categories & AddMatchedDetails(MatchedDetailsKeyT &&key, MatchedDetailsValueT &&value)
Definition Categories.h:70
Categories & WithMatchedCategories(MatchedCategoriesT &&value)
Definition Categories.h:53
const Aws::Vector< Aws::String > & GetMatchedCategories() const
Definition Categories.h:48
void SetMatchedCategories(MatchedCategoriesT &&value)
Definition Categories.h:51
void SetMatchedDetails(MatchedDetailsT &&value)
Definition Categories.h:66
Categories & AddMatchedCategories(MatchedCategoriesT &&value)
Definition Categories.h:55
Categories & WithMatchedDetails(MatchedDetailsT &&value)
Definition Categories.h:68
AWS_CONNECTCONTACTLENS_API Categories(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCONTACTLENS_API Categories & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCONTACTLENS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTCONTACTLENS_API Categories()=default
const Aws::Map< Aws::String, CategoryDetails > & GetMatchedDetails() const
Definition Categories.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue