AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleAction.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/model/FixedResponseAction.h>
9#include <aws/vpc-lattice/model/ForwardAction.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 VPCLattice
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_VPCLATTICE_API RuleAction();
36 AWS_VPCLATTICE_API RuleAction(Aws::Utils::Json::JsonView jsonValue);
37 AWS_VPCLATTICE_API RuleAction& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const FixedResponseAction& GetFixedResponse() const{ return m_fixedResponse; }
46 inline bool FixedResponseHasBeenSet() const { return m_fixedResponseHasBeenSet; }
47 inline void SetFixedResponse(const FixedResponseAction& value) { m_fixedResponseHasBeenSet = true; m_fixedResponse = value; }
48 inline void SetFixedResponse(FixedResponseAction&& value) { m_fixedResponseHasBeenSet = true; m_fixedResponse = std::move(value); }
49 inline RuleAction& WithFixedResponse(const FixedResponseAction& value) { SetFixedResponse(value); return *this;}
50 inline RuleAction& WithFixedResponse(FixedResponseAction&& value) { SetFixedResponse(std::move(value)); return *this;}
52
54
58 inline const ForwardAction& GetForward() const{ return m_forward; }
59 inline bool ForwardHasBeenSet() const { return m_forwardHasBeenSet; }
60 inline void SetForward(const ForwardAction& value) { m_forwardHasBeenSet = true; m_forward = value; }
61 inline void SetForward(ForwardAction&& value) { m_forwardHasBeenSet = true; m_forward = std::move(value); }
62 inline RuleAction& WithForward(const ForwardAction& value) { SetForward(value); return *this;}
63 inline RuleAction& WithForward(ForwardAction&& value) { SetForward(std::move(value)); return *this;}
65 private:
66
67 FixedResponseAction m_fixedResponse;
68 bool m_fixedResponseHasBeenSet = false;
69
70 ForwardAction m_forward;
71 bool m_forwardHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace VPCLattice
76} // namespace Aws
void SetForward(ForwardAction &&value)
Definition RuleAction.h:61
RuleAction & WithFixedResponse(FixedResponseAction &&value)
Definition RuleAction.h:50
RuleAction & WithFixedResponse(const FixedResponseAction &value)
Definition RuleAction.h:49
AWS_VPCLATTICE_API RuleAction()
RuleAction & WithForward(ForwardAction &&value)
Definition RuleAction.h:63
const FixedResponseAction & GetFixedResponse() const
Definition RuleAction.h:45
void SetFixedResponse(FixedResponseAction &&value)
Definition RuleAction.h:48
void SetFixedResponse(const FixedResponseAction &value)
Definition RuleAction.h:47
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API RuleAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetForward(const ForwardAction &value)
Definition RuleAction.h:60
RuleAction & WithForward(const ForwardAction &value)
Definition RuleAction.h:62
AWS_VPCLATTICE_API RuleAction(Aws::Utils::Json::JsonView jsonValue)
const ForwardAction & GetForward() const
Definition RuleAction.h:58
Aws::Utils::Json::JsonValue JsonValue