AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
ModuleParameters.h
1
6#pragma once
7#include <aws/rtbfabric/RTBFabric_EXPORTS.h>
8#include <aws/rtbfabric/model/NoBidModuleParameters.h>
9#include <aws/rtbfabric/model/OpenRtbAttributeModuleParameters.h>
10#include <aws/rtbfabric/model/RateLimiterModuleParameters.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RTBFabric {
22namespace Model {
23
30 public:
31 AWS_RTBFABRIC_API ModuleParameters() = default;
32 AWS_RTBFABRIC_API ModuleParameters(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const NoBidModuleParameters& GetNoBid() const { return m_noBid; }
41 inline bool NoBidHasBeenSet() const { return m_noBidHasBeenSet; }
42 template <typename NoBidT = NoBidModuleParameters>
43 void SetNoBid(NoBidT&& value) {
44 m_noBidHasBeenSet = true;
45 m_noBid = std::forward<NoBidT>(value);
46 }
47 template <typename NoBidT = NoBidModuleParameters>
48 ModuleParameters& WithNoBid(NoBidT&& value) {
49 SetNoBid(std::forward<NoBidT>(value));
50 return *this;
51 }
53
55
58 inline const OpenRtbAttributeModuleParameters& GetOpenRtbAttribute() const { return m_openRtbAttribute; }
59 inline bool OpenRtbAttributeHasBeenSet() const { return m_openRtbAttributeHasBeenSet; }
60 template <typename OpenRtbAttributeT = OpenRtbAttributeModuleParameters>
61 void SetOpenRtbAttribute(OpenRtbAttributeT&& value) {
62 m_openRtbAttributeHasBeenSet = true;
63 m_openRtbAttribute = std::forward<OpenRtbAttributeT>(value);
64 }
65 template <typename OpenRtbAttributeT = OpenRtbAttributeModuleParameters>
66 ModuleParameters& WithOpenRtbAttribute(OpenRtbAttributeT&& value) {
67 SetOpenRtbAttribute(std::forward<OpenRtbAttributeT>(value));
68 return *this;
69 }
71
73
76 inline const RateLimiterModuleParameters& GetRateLimiter() const { return m_rateLimiter; }
77 inline bool RateLimiterHasBeenSet() const { return m_rateLimiterHasBeenSet; }
78 template <typename RateLimiterT = RateLimiterModuleParameters>
79 void SetRateLimiter(RateLimiterT&& value) {
80 m_rateLimiterHasBeenSet = true;
81 m_rateLimiter = std::forward<RateLimiterT>(value);
82 }
83 template <typename RateLimiterT = RateLimiterModuleParameters>
84 ModuleParameters& WithRateLimiter(RateLimiterT&& value) {
85 SetRateLimiter(std::forward<RateLimiterT>(value));
86 return *this;
87 }
89 private:
91
92 OpenRtbAttributeModuleParameters m_openRtbAttribute;
93
94 RateLimiterModuleParameters m_rateLimiter;
95 bool m_noBidHasBeenSet = false;
96 bool m_openRtbAttributeHasBeenSet = false;
97 bool m_rateLimiterHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace RTBFabric
102} // namespace Aws
void SetRateLimiter(RateLimiterT &&value)
AWS_RTBFABRIC_API ModuleParameters(Aws::Utils::Json::JsonView jsonValue)
void SetOpenRtbAttribute(OpenRtbAttributeT &&value)
ModuleParameters & WithNoBid(NoBidT &&value)
ModuleParameters & WithRateLimiter(RateLimiterT &&value)
const NoBidModuleParameters & GetNoBid() const
const RateLimiterModuleParameters & GetRateLimiter() const
const OpenRtbAttributeModuleParameters & GetOpenRtbAttribute() const
AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
ModuleParameters & WithOpenRtbAttribute(OpenRtbAttributeT &&value)
AWS_RTBFABRIC_API ModuleParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RTBFABRIC_API ModuleParameters()=default
Aws::Utils::Json::JsonValue JsonValue