AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/rtbfabric/RTBFabric_EXPORTS.h>
8#include <aws/rtbfabric/model/HeaderTagAction.h>
9#include <aws/rtbfabric/model/NoBidAction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace RTBFabric {
21namespace Model {
22
28class Action {
29 public:
30 AWS_RTBFABRIC_API Action() = default;
31 AWS_RTBFABRIC_API Action(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RTBFABRIC_API Action& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const NoBidAction& GetNoBid() const { return m_noBid; }
40 inline bool NoBidHasBeenSet() const { return m_noBidHasBeenSet; }
41 template <typename NoBidT = NoBidAction>
42 void SetNoBid(NoBidT&& value) {
43 m_noBidHasBeenSet = true;
44 m_noBid = std::forward<NoBidT>(value);
45 }
46 template <typename NoBidT = NoBidAction>
47 Action& WithNoBid(NoBidT&& value) {
48 SetNoBid(std::forward<NoBidT>(value));
49 return *this;
50 }
52
54
57 inline const HeaderTagAction& GetHeaderTag() const { return m_headerTag; }
58 inline bool HeaderTagHasBeenSet() const { return m_headerTagHasBeenSet; }
59 template <typename HeaderTagT = HeaderTagAction>
60 void SetHeaderTag(HeaderTagT&& value) {
61 m_headerTagHasBeenSet = true;
62 m_headerTag = std::forward<HeaderTagT>(value);
63 }
64 template <typename HeaderTagT = HeaderTagAction>
65 Action& WithHeaderTag(HeaderTagT&& value) {
66 SetHeaderTag(std::forward<HeaderTagT>(value));
67 return *this;
68 }
70 private:
71 NoBidAction m_noBid;
72
73 HeaderTagAction m_headerTag;
74 bool m_noBidHasBeenSet = false;
75 bool m_headerTagHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace RTBFabric
80} // namespace Aws
void SetHeaderTag(HeaderTagT &&value)
Definition Action.h:60
AWS_RTBFABRIC_API Action()=default
AWS_RTBFABRIC_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
bool HeaderTagHasBeenSet() const
Definition Action.h:58
AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
bool NoBidHasBeenSet() const
Definition Action.h:40
const HeaderTagAction & GetHeaderTag() const
Definition Action.h:57
AWS_RTBFABRIC_API Action(Aws::Utils::Json::JsonView jsonValue)
const NoBidAction & GetNoBid() const
Definition Action.h:39
void SetNoBid(NoBidT &&value)
Definition Action.h:42
Action & WithHeaderTag(HeaderTagT &&value)
Definition Action.h:65
Action & WithNoBid(NoBidT &&value)
Definition Action.h:47
Aws::Utils::Json::JsonValue JsonValue