AWS SDK for C++  1.9.106
AWS SDK for C++
ForwardedIPConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAFV2
23 {
24 namespace Model
25 {
26 
41  {
42  public:
47 
48 
55  inline const Aws::String& GetHeaderName() const{ return m_headerName; }
56 
63  inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; }
64 
71  inline void SetHeaderName(const Aws::String& value) { m_headerNameHasBeenSet = true; m_headerName = value; }
72 
79  inline void SetHeaderName(Aws::String&& value) { m_headerNameHasBeenSet = true; m_headerName = std::move(value); }
80 
87  inline void SetHeaderName(const char* value) { m_headerNameHasBeenSet = true; m_headerName.assign(value); }
88 
95  inline ForwardedIPConfig& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;}
96 
103  inline ForwardedIPConfig& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;}
104 
111  inline ForwardedIPConfig& WithHeaderName(const char* value) { SetHeaderName(value); return *this;}
112 
113 
124  inline const FallbackBehavior& GetFallbackBehavior() const{ return m_fallbackBehavior; }
125 
136  inline bool FallbackBehaviorHasBeenSet() const { return m_fallbackBehaviorHasBeenSet; }
137 
148  inline void SetFallbackBehavior(const FallbackBehavior& value) { m_fallbackBehaviorHasBeenSet = true; m_fallbackBehavior = value; }
149 
160  inline void SetFallbackBehavior(FallbackBehavior&& value) { m_fallbackBehaviorHasBeenSet = true; m_fallbackBehavior = std::move(value); }
161 
172  inline ForwardedIPConfig& WithFallbackBehavior(const FallbackBehavior& value) { SetFallbackBehavior(value); return *this;}
173 
184  inline ForwardedIPConfig& WithFallbackBehavior(FallbackBehavior&& value) { SetFallbackBehavior(std::move(value)); return *this;}
185 
186  private:
187 
188  Aws::String m_headerName;
189  bool m_headerNameHasBeenSet;
190 
191  FallbackBehavior m_fallbackBehavior;
192  bool m_fallbackBehaviorHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace WAFV2
197 } // namespace Aws
Aws::WAFV2::Model::ForwardedIPConfig::WithHeaderName
ForwardedIPConfig & WithHeaderName(const Aws::String &value)
Definition: ForwardedIPConfig.h:95
Aws::WAFV2::Model::ForwardedIPConfig::SetHeaderName
void SetHeaderName(const char *value)
Definition: ForwardedIPConfig.h:87
Aws::WAFV2::Model::ForwardedIPConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::ForwardedIPConfig::WithHeaderName
ForwardedIPConfig & WithHeaderName(const char *value)
Definition: ForwardedIPConfig.h:111
Aws::WAFV2::Model::ForwardedIPConfig::SetFallbackBehavior
void SetFallbackBehavior(FallbackBehavior &&value)
Definition: ForwardedIPConfig.h:160
Aws::WAFV2::Model::ForwardedIPConfig::WithFallbackBehavior
ForwardedIPConfig & WithFallbackBehavior(const FallbackBehavior &value)
Definition: ForwardedIPConfig.h:172
Aws::WAFV2::Model::ForwardedIPConfig::GetHeaderName
const Aws::String & GetHeaderName() const
Definition: ForwardedIPConfig.h:55
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::ForwardedIPConfig::SetHeaderName
void SetHeaderName(Aws::String &&value)
Definition: ForwardedIPConfig.h:79
WAFV2_EXPORTS.h
Aws::WAFV2::Model::ForwardedIPConfig
Definition: ForwardedIPConfig.h:41
Aws::WAFV2::Model::FallbackBehavior
FallbackBehavior
Definition: FallbackBehavior.h:17
Aws::WAFV2::Model::ForwardedIPConfig::SetHeaderName
void SetHeaderName(const Aws::String &value)
Definition: ForwardedIPConfig.h:71
Aws::WAFV2::Model::ForwardedIPConfig::ForwardedIPConfig
ForwardedIPConfig()
Aws::WAFV2::Model::ForwardedIPConfig::operator=
ForwardedIPConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::ForwardedIPConfig::ForwardedIPConfig
ForwardedIPConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::ForwardedIPConfig::SetFallbackBehavior
void SetFallbackBehavior(const FallbackBehavior &value)
Definition: ForwardedIPConfig.h:148
FallbackBehavior.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::ForwardedIPConfig::WithFallbackBehavior
ForwardedIPConfig & WithFallbackBehavior(FallbackBehavior &&value)
Definition: ForwardedIPConfig.h:184
Aws::WAFV2::Model::ForwardedIPConfig::HeaderNameHasBeenSet
bool HeaderNameHasBeenSet() const
Definition: ForwardedIPConfig.h:63
Aws::WAFV2::Model::ForwardedIPConfig::WithHeaderName
ForwardedIPConfig & WithHeaderName(Aws::String &&value)
Definition: ForwardedIPConfig.h:103
Aws::WAFV2::Model::ForwardedIPConfig::GetFallbackBehavior
const FallbackBehavior & GetFallbackBehavior() const
Definition: ForwardedIPConfig.h:124
Aws::WAFV2::Model::ForwardedIPConfig::FallbackBehaviorHasBeenSet
bool FallbackBehaviorHasBeenSet() const
Definition: ForwardedIPConfig.h:136