AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
Categories.h
1
6#pragma once
7#include <aws/connect-contact-lens/ConnectContactLens_EXPORTS.h>
8#include <aws/connect-contact-lens/model/CategoryDetails.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectContactLens {
23namespace Model {
24
32 public:
33 AWS_CONNECTCONTACTLENS_API Categories() = default;
34 AWS_CONNECTCONTACTLENS_API Categories(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECTCONTACTLENS_API Categories& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTCONTACTLENS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Aws::String>& GetMatchedCategories() const { return m_matchedCategories; }
43 inline bool MatchedCategoriesHasBeenSet() const { return m_matchedCategoriesHasBeenSet; }
44 template <typename MatchedCategoriesT = Aws::Vector<Aws::String>>
45 void SetMatchedCategories(MatchedCategoriesT&& value) {
46 m_matchedCategoriesHasBeenSet = true;
47 m_matchedCategories = std::forward<MatchedCategoriesT>(value);
48 }
49 template <typename MatchedCategoriesT = Aws::Vector<Aws::String>>
50 Categories& WithMatchedCategories(MatchedCategoriesT&& value) {
51 SetMatchedCategories(std::forward<MatchedCategoriesT>(value));
52 return *this;
53 }
54 template <typename MatchedCategoriesT = Aws::String>
55 Categories& AddMatchedCategories(MatchedCategoriesT&& value) {
56 m_matchedCategoriesHasBeenSet = true;
57 m_matchedCategories.emplace_back(std::forward<MatchedCategoriesT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Map<Aws::String, CategoryDetails>& GetMatchedDetails() const { return m_matchedDetails; }
68 inline bool MatchedDetailsHasBeenSet() const { return m_matchedDetailsHasBeenSet; }
69 template <typename MatchedDetailsT = Aws::Map<Aws::String, CategoryDetails>>
70 void SetMatchedDetails(MatchedDetailsT&& value) {
71 m_matchedDetailsHasBeenSet = true;
72 m_matchedDetails = std::forward<MatchedDetailsT>(value);
73 }
74 template <typename MatchedDetailsT = Aws::Map<Aws::String, CategoryDetails>>
75 Categories& WithMatchedDetails(MatchedDetailsT&& value) {
76 SetMatchedDetails(std::forward<MatchedDetailsT>(value));
77 return *this;
78 }
79 template <typename MatchedDetailsKeyT = Aws::String, typename MatchedDetailsValueT = CategoryDetails>
80 Categories& AddMatchedDetails(MatchedDetailsKeyT&& key, MatchedDetailsValueT&& value) {
81 m_matchedDetailsHasBeenSet = true;
82 m_matchedDetails.emplace(std::forward<MatchedDetailsKeyT>(key), std::forward<MatchedDetailsValueT>(value));
83 return *this;
84 }
86 private:
87 Aws::Vector<Aws::String> m_matchedCategories;
88
90 bool m_matchedCategoriesHasBeenSet = false;
91 bool m_matchedDetailsHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace ConnectContactLens
96} // namespace Aws
Categories & AddMatchedDetails(MatchedDetailsKeyT &&key, MatchedDetailsValueT &&value)
Definition Categories.h:80
Categories & WithMatchedCategories(MatchedCategoriesT &&value)
Definition Categories.h:50
const Aws::Vector< Aws::String > & GetMatchedCategories() const
Definition Categories.h:42
void SetMatchedCategories(MatchedCategoriesT &&value)
Definition Categories.h:45
void SetMatchedDetails(MatchedDetailsT &&value)
Definition Categories.h:70
Categories & AddMatchedCategories(MatchedCategoriesT &&value)
Definition Categories.h:55
Categories & WithMatchedDetails(MatchedDetailsT &&value)
Definition Categories.h:75
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:67
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