AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
NoBidModuleParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rtbfabric/RTBFabric_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace RTBFabric {
20namespace Model {
21
28 public:
29 AWS_RTBFABRIC_API NoBidModuleParameters() = default;
32 AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetReason() const { return m_reason; }
39 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
40 template <typename ReasonT = Aws::String>
41 void SetReason(ReasonT&& value) {
42 m_reasonHasBeenSet = true;
43 m_reason = std::forward<ReasonT>(value);
44 }
45 template <typename ReasonT = Aws::String>
47 SetReason(std::forward<ReasonT>(value));
48 return *this;
49 }
51
53
56 inline int GetReasonCode() const { return m_reasonCode; }
57 inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
58 inline void SetReasonCode(int value) {
59 m_reasonCodeHasBeenSet = true;
60 m_reasonCode = value;
61 }
63 SetReasonCode(value);
64 return *this;
65 }
67
69
72 inline double GetPassThroughPercentage() const { return m_passThroughPercentage; }
73 inline bool PassThroughPercentageHasBeenSet() const { return m_passThroughPercentageHasBeenSet; }
74 inline void SetPassThroughPercentage(double value) {
75 m_passThroughPercentageHasBeenSet = true;
76 m_passThroughPercentage = value;
77 }
80 return *this;
81 }
83 private:
84 Aws::String m_reason;
85
86 int m_reasonCode{0};
87
88 double m_passThroughPercentage{0.0};
89 bool m_reasonHasBeenSet = false;
90 bool m_reasonCodeHasBeenSet = false;
91 bool m_passThroughPercentageHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace RTBFabric
96} // namespace Aws
NoBidModuleParameters & WithReason(ReasonT &&value)
AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RTBFABRIC_API NoBidModuleParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
NoBidModuleParameters & WithPassThroughPercentage(double value)
NoBidModuleParameters & WithReasonCode(int value)
AWS_RTBFABRIC_API NoBidModuleParameters()=default
AWS_RTBFABRIC_API NoBidModuleParameters(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue