AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
OpenRtbAttributeModuleParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/rtbfabric/RTBFabric_EXPORTS.h>
9#include <aws/rtbfabric/model/Action.h>
10#include <aws/rtbfabric/model/Filter.h>
11#include <aws/rtbfabric/model/FilterType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace RTBFabric {
23namespace Model {
24
32 public:
33 AWS_RTBFABRIC_API OpenRtbAttributeModuleParameters() = default;
36 AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline FilterType GetFilterType() const { return m_filterType; }
43 inline bool FilterTypeHasBeenSet() const { return m_filterTypeHasBeenSet; }
44 inline void SetFilterType(FilterType value) {
45 m_filterTypeHasBeenSet = true;
46 m_filterType = value;
47 }
49 SetFilterType(value);
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Filter>& GetFilterConfiguration() const { return m_filterConfiguration; }
59 inline bool FilterConfigurationHasBeenSet() const { return m_filterConfigurationHasBeenSet; }
60 template <typename FilterConfigurationT = Aws::Vector<Filter>>
61 void SetFilterConfiguration(FilterConfigurationT&& value) {
62 m_filterConfigurationHasBeenSet = true;
63 m_filterConfiguration = std::forward<FilterConfigurationT>(value);
64 }
65 template <typename FilterConfigurationT = Aws::Vector<Filter>>
67 SetFilterConfiguration(std::forward<FilterConfigurationT>(value));
68 return *this;
69 }
70 template <typename FilterConfigurationT = Filter>
72 m_filterConfigurationHasBeenSet = true;
73 m_filterConfiguration.emplace_back(std::forward<FilterConfigurationT>(value));
74 return *this;
75 }
77
79
82 inline const Action& GetAction() const { return m_action; }
83 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
84 template <typename ActionT = Action>
85 void SetAction(ActionT&& value) {
86 m_actionHasBeenSet = true;
87 m_action = std::forward<ActionT>(value);
88 }
89 template <typename ActionT = Action>
91 SetAction(std::forward<ActionT>(value));
92 return *this;
93 }
95
97
100 inline double GetHoldbackPercentage() const { return m_holdbackPercentage; }
101 inline bool HoldbackPercentageHasBeenSet() const { return m_holdbackPercentageHasBeenSet; }
102 inline void SetHoldbackPercentage(double value) {
103 m_holdbackPercentageHasBeenSet = true;
104 m_holdbackPercentage = value;
105 }
108 return *this;
109 }
111 private:
112 FilterType m_filterType{FilterType::NOT_SET};
113
114 Aws::Vector<Filter> m_filterConfiguration;
115
116 Action m_action;
117
118 double m_holdbackPercentage{0.0};
119 bool m_filterTypeHasBeenSet = false;
120 bool m_filterConfigurationHasBeenSet = false;
121 bool m_actionHasBeenSet = false;
122 bool m_holdbackPercentageHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace RTBFabric
127} // namespace Aws
OpenRtbAttributeModuleParameters & WithAction(ActionT &&value)
AWS_RTBFABRIC_API OpenRtbAttributeModuleParameters(Aws::Utils::Json::JsonView jsonValue)
OpenRtbAttributeModuleParameters & WithHoldbackPercentage(double value)
AWS_RTBFABRIC_API OpenRtbAttributeModuleParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
OpenRtbAttributeModuleParameters & WithFilterConfiguration(FilterConfigurationT &&value)
AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
OpenRtbAttributeModuleParameters & WithFilterType(FilterType value)
OpenRtbAttributeModuleParameters & AddFilterConfiguration(FilterConfigurationT &&value)
AWS_RTBFABRIC_API OpenRtbAttributeModuleParameters()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue