AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Promotion.h
1
6#pragma once
7#include <aws/personalize-runtime/PersonalizeRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PersonalizeRuntime
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_PERSONALIZERUNTIME_API Promotion();
38 AWS_PERSONALIZERUNTIME_API Promotion(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PERSONALIZERUNTIME_API Promotion& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PERSONALIZERUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline Promotion& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline Promotion& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline Promotion& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline int GetPercentPromotedItems() const{ return m_percentPromotedItems; }
62 inline bool PercentPromotedItemsHasBeenSet() const { return m_percentPromotedItemsHasBeenSet; }
63 inline void SetPercentPromotedItems(int value) { m_percentPromotedItemsHasBeenSet = true; m_percentPromotedItems = value; }
64 inline Promotion& WithPercentPromotedItems(int value) { SetPercentPromotedItems(value); return *this;}
66
68
74 inline const Aws::String& GetFilterArn() const{ return m_filterArn; }
75 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
76 inline void SetFilterArn(const Aws::String& value) { m_filterArnHasBeenSet = true; m_filterArn = value; }
77 inline void SetFilterArn(Aws::String&& value) { m_filterArnHasBeenSet = true; m_filterArn = std::move(value); }
78 inline void SetFilterArn(const char* value) { m_filterArnHasBeenSet = true; m_filterArn.assign(value); }
79 inline Promotion& WithFilterArn(const Aws::String& value) { SetFilterArn(value); return *this;}
80 inline Promotion& WithFilterArn(Aws::String&& value) { SetFilterArn(std::move(value)); return *this;}
81 inline Promotion& WithFilterArn(const char* value) { SetFilterArn(value); return *this;}
83
85
99 inline const Aws::Map<Aws::String, Aws::String>& GetFilterValues() const{ return m_filterValues; }
100 inline bool FilterValuesHasBeenSet() const { return m_filterValuesHasBeenSet; }
101 inline void SetFilterValues(const Aws::Map<Aws::String, Aws::String>& value) { m_filterValuesHasBeenSet = true; m_filterValues = value; }
102 inline void SetFilterValues(Aws::Map<Aws::String, Aws::String>&& value) { m_filterValuesHasBeenSet = true; m_filterValues = std::move(value); }
104 inline Promotion& WithFilterValues(Aws::Map<Aws::String, Aws::String>&& value) { SetFilterValues(std::move(value)); return *this;}
105 inline Promotion& AddFilterValues(const Aws::String& key, const Aws::String& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, value); return *this; }
106 inline Promotion& AddFilterValues(Aws::String&& key, const Aws::String& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), value); return *this; }
107 inline Promotion& AddFilterValues(const Aws::String& key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, std::move(value)); return *this; }
108 inline Promotion& AddFilterValues(Aws::String&& key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), std::move(value)); return *this; }
109 inline Promotion& AddFilterValues(const char* key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, std::move(value)); return *this; }
110 inline Promotion& AddFilterValues(Aws::String&& key, const char* value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), value); return *this; }
111 inline Promotion& AddFilterValues(const char* key, const char* value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, value); return *this; }
113 private:
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 int m_percentPromotedItems;
119 bool m_percentPromotedItemsHasBeenSet = false;
120
121 Aws::String m_filterArn;
122 bool m_filterArnHasBeenSet = false;
123
125 bool m_filterValuesHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace PersonalizeRuntime
130} // namespace Aws
void SetFilterArn(const char *value)
Definition Promotion.h:78
Promotion & WithName(Aws::String &&value)
Definition Promotion.h:53
Promotion & WithFilterArn(const char *value)
Definition Promotion.h:81
Promotion & WithName(const char *value)
Definition Promotion.h:54
const Aws::String & GetFilterArn() const
Definition Promotion.h:74
Promotion & AddFilterValues(Aws::String &&key, const Aws::String &value)
Definition Promotion.h:106
Promotion & AddFilterValues(const Aws::String &key, Aws::String &&value)
Definition Promotion.h:107
void SetFilterValues(Aws::Map< Aws::String, Aws::String > &&value)
Definition Promotion.h:102
Promotion & AddFilterValues(Aws::String &&key, const char *value)
Definition Promotion.h:110
void SetFilterArn(Aws::String &&value)
Definition Promotion.h:77
Promotion & AddFilterValues(const char *key, Aws::String &&value)
Definition Promotion.h:109
AWS_PERSONALIZERUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition Promotion.h:47
Promotion & WithName(const Aws::String &value)
Definition Promotion.h:52
AWS_PERSONALIZERUNTIME_API Promotion & operator=(Aws::Utils::Json::JsonView jsonValue)
Promotion & WithFilterValues(Aws::Map< Aws::String, Aws::String > &&value)
Definition Promotion.h:104
Promotion & WithPercentPromotedItems(int value)
Definition Promotion.h:64
void SetName(Aws::String &&value)
Definition Promotion.h:50
void SetName(const Aws::String &value)
Definition Promotion.h:49
Promotion & AddFilterValues(const char *key, const char *value)
Definition Promotion.h:111
Promotion & AddFilterValues(Aws::String &&key, Aws::String &&value)
Definition Promotion.h:108
Promotion & WithFilterArn(Aws::String &&value)
Definition Promotion.h:80
void SetFilterValues(const Aws::Map< Aws::String, Aws::String > &value)
Definition Promotion.h:101
Promotion & AddFilterValues(const Aws::String &key, const Aws::String &value)
Definition Promotion.h:105
const Aws::Map< Aws::String, Aws::String > & GetFilterValues() const
Definition Promotion.h:99
Promotion & WithFilterValues(const Aws::Map< Aws::String, Aws::String > &value)
Definition Promotion.h:103
AWS_PERSONALIZERUNTIME_API Promotion()
void SetFilterArn(const Aws::String &value)
Definition Promotion.h:76
Promotion & WithFilterArn(const Aws::String &value)
Definition Promotion.h:79
AWS_PERSONALIZERUNTIME_API Promotion(Aws::Utils::Json::JsonView jsonValue)
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