AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommendationTrigger.h
1
6#pragma once
7#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/wisdom/model/RecommendationTriggerData.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wisdom/model/RecommendationSourceType.h>
12#include <aws/wisdom/model/RecommendationTriggerType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ConnectWisdomService
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger();
42 AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const RecommendationTriggerData& GetData() const{ return m_data; }
52 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
53 inline void SetData(const RecommendationTriggerData& value) { m_dataHasBeenSet = true; m_data = value; }
54 inline void SetData(RecommendationTriggerData&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
55 inline RecommendationTrigger& WithData(const RecommendationTriggerData& value) { SetData(value); return *this;}
56 inline RecommendationTrigger& WithData(RecommendationTriggerData&& value) { SetData(std::move(value)); return *this;}
58
60
63 inline const Aws::String& GetId() const{ return m_id; }
64 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
66 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
67 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 inline RecommendationTrigger& WithId(const Aws::String& value) { SetId(value); return *this;}
69 inline RecommendationTrigger& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
70 inline RecommendationTrigger& WithId(const char* value) { SetId(value); return *this;}
72
74
77 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const{ return m_recommendationIds; }
78 inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
79 inline void SetRecommendationIds(const Aws::Vector<Aws::String>& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = value; }
80 inline void SetRecommendationIds(Aws::Vector<Aws::String>&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = std::move(value); }
83 inline RecommendationTrigger& AddRecommendationIds(const Aws::String& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
84 inline RecommendationTrigger& AddRecommendationIds(Aws::String&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(std::move(value)); return *this; }
85 inline RecommendationTrigger& AddRecommendationIds(const char* value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
87
89
95 inline const RecommendationSourceType& GetSource() const{ return m_source; }
96 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
97 inline void SetSource(const RecommendationSourceType& value) { m_sourceHasBeenSet = true; m_source = value; }
98 inline void SetSource(RecommendationSourceType&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
99 inline RecommendationTrigger& WithSource(const RecommendationSourceType& value) { SetSource(value); return *this;}
100 inline RecommendationTrigger& WithSource(RecommendationSourceType&& value) { SetSource(std::move(value)); return *this;}
102
104
107 inline const RecommendationTriggerType& GetType() const{ return m_type; }
108 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
109 inline void SetType(const RecommendationTriggerType& value) { m_typeHasBeenSet = true; m_type = value; }
110 inline void SetType(RecommendationTriggerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
111 inline RecommendationTrigger& WithType(const RecommendationTriggerType& value) { SetType(value); return *this;}
112 inline RecommendationTrigger& WithType(RecommendationTriggerType&& value) { SetType(std::move(value)); return *this;}
114 private:
115
117 bool m_dataHasBeenSet = false;
118
119 Aws::String m_id;
120 bool m_idHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_recommendationIds;
123 bool m_recommendationIdsHasBeenSet = false;
124
126 bool m_sourceHasBeenSet = false;
127
129 bool m_typeHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace ConnectWisdomService
134} // namespace Aws
RecommendationTrigger & AddRecommendationIds(Aws::String &&value)
RecommendationTrigger & WithType(RecommendationTriggerType &&value)
void SetType(const RecommendationTriggerType &value)
RecommendationTrigger & WithRecommendationIds(const Aws::Vector< Aws::String > &value)
RecommendationTrigger & WithSource(RecommendationSourceType &&value)
RecommendationTrigger & AddRecommendationIds(const char *value)
RecommendationTrigger & AddRecommendationIds(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationTrigger & WithType(const RecommendationTriggerType &value)
RecommendationTrigger & WithId(const char *value)
AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRecommendationIds(Aws::Vector< Aws::String > &&value)
RecommendationTrigger & WithData(RecommendationTriggerData &&value)
AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger()
void SetData(const RecommendationTriggerData &value)
const RecommendationTriggerData & GetData() const
void SetRecommendationIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetRecommendationIds() const
RecommendationTrigger & WithData(const RecommendationTriggerData &value)
RecommendationTrigger & WithSource(const RecommendationSourceType &value)
RecommendationTrigger & WithId(Aws::String &&value)
RecommendationTrigger & WithId(const Aws::String &value)
RecommendationTrigger & WithRecommendationIds(Aws::Vector< Aws::String > &&value)
void SetSource(const RecommendationSourceType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue