AWS SDK for C++

AWS SDK for C++ Version 1.11.831

Loading...
Searching...
No Matches
Recommendation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PartnerCentralSelling {
21namespace Model {
22
29 public:
30 AWS_PARTNERCENTRALSELLING_API Recommendation() = default;
31 AWS_PARTNERCENTRALSELLING_API Recommendation(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PARTNERCENTRALSELLING_API Recommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 template <typename TypeT = Aws::String>
44 void SetType(TypeT&& value) {
45 m_typeHasBeenSet = true;
46 m_type = std::forward<TypeT>(value);
47 }
48 template <typename TypeT = Aws::String>
49 Recommendation& WithType(TypeT&& value) {
50 SetType(std::forward<TypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDetails() const { return m_details; }
60 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
61 template <typename DetailsT = Aws::String>
62 void SetDetails(DetailsT&& value) {
63 m_detailsHasBeenSet = true;
64 m_details = std::forward<DetailsT>(value);
65 }
66 template <typename DetailsT = Aws::String>
67 Recommendation& WithDetails(DetailsT&& value) {
68 SetDetails(std::forward<DetailsT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
78 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
79 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
80 void SetAttributes(AttributesT&& value) {
81 m_attributesHasBeenSet = true;
82 m_attributes = std::forward<AttributesT>(value);
83 }
84 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
85 Recommendation& WithAttributes(AttributesT&& value) {
86 SetAttributes(std::forward<AttributesT>(value));
87 return *this;
88 }
89 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
90 Recommendation& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
91 m_attributesHasBeenSet = true;
92 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_type;
98
99 Aws::String m_details;
100
102 bool m_typeHasBeenSet = false;
103 bool m_detailsHasBeenSet = false;
104 bool m_attributesHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace PartnerCentralSelling
109} // namespace Aws
Recommendation & WithAttributes(AttributesT &&value)
Recommendation & WithDetails(DetailsT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALSELLING_API Recommendation()=default
AWS_PARTNERCENTRALSELLING_API Recommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API Recommendation(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Recommendation & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue