AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ForwardedIPConfig.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wafv2/model/FallbackBehavior.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 WAFV2
23{
24namespace Model
25{
26
41 {
42 public:
43 AWS_WAFV2_API ForwardedIPConfig();
46 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
56 inline const Aws::String& GetHeaderName() const{ return m_headerName; }
57 inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; }
58 inline void SetHeaderName(const Aws::String& value) { m_headerNameHasBeenSet = true; m_headerName = value; }
59 inline void SetHeaderName(Aws::String&& value) { m_headerNameHasBeenSet = true; m_headerName = std::move(value); }
60 inline void SetHeaderName(const char* value) { m_headerNameHasBeenSet = true; m_headerName.assign(value); }
61 inline ForwardedIPConfig& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;}
62 inline ForwardedIPConfig& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;}
63 inline ForwardedIPConfig& WithHeaderName(const char* value) { SetHeaderName(value); return *this;}
65
67
77 inline const FallbackBehavior& GetFallbackBehavior() const{ return m_fallbackBehavior; }
78 inline bool FallbackBehaviorHasBeenSet() const { return m_fallbackBehaviorHasBeenSet; }
79 inline void SetFallbackBehavior(const FallbackBehavior& value) { m_fallbackBehaviorHasBeenSet = true; m_fallbackBehavior = value; }
80 inline void SetFallbackBehavior(FallbackBehavior&& value) { m_fallbackBehaviorHasBeenSet = true; m_fallbackBehavior = std::move(value); }
81 inline ForwardedIPConfig& WithFallbackBehavior(const FallbackBehavior& value) { SetFallbackBehavior(value); return *this;}
82 inline ForwardedIPConfig& WithFallbackBehavior(FallbackBehavior&& value) { SetFallbackBehavior(std::move(value)); return *this;}
84 private:
85
86 Aws::String m_headerName;
87 bool m_headerNameHasBeenSet = false;
88
89 FallbackBehavior m_fallbackBehavior;
90 bool m_fallbackBehaviorHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace WAFV2
95} // namespace Aws
void SetFallbackBehavior(FallbackBehavior &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const FallbackBehavior & GetFallbackBehavior() const
AWS_WAFV2_API ForwardedIPConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFallbackBehavior(const FallbackBehavior &value)
ForwardedIPConfig & WithHeaderName(Aws::String &&value)
AWS_WAFV2_API ForwardedIPConfig(Aws::Utils::Json::JsonView jsonValue)
ForwardedIPConfig & WithFallbackBehavior(const FallbackBehavior &value)
ForwardedIPConfig & WithHeaderName(const Aws::String &value)
void SetHeaderName(Aws::String &&value)
void SetHeaderName(const Aws::String &value)
ForwardedIPConfig & WithHeaderName(const char *value)
ForwardedIPConfig & WithFallbackBehavior(FallbackBehavior &&value)
const Aws::String & GetHeaderName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue