AWS SDK for C++  1.9.104
AWS SDK for C++
IPSetForwardedIPConfig.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WAFV2
24 {
25 namespace Model
26 {
27 
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 IPSetForwardedIPConfig& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;}
96 
103  inline IPSetForwardedIPConfig& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;}
104 
111  inline IPSetForwardedIPConfig& 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 IPSetForwardedIPConfig& WithFallbackBehavior(const FallbackBehavior& value) { SetFallbackBehavior(value); return *this;}
173 
184  inline IPSetForwardedIPConfig& WithFallbackBehavior(FallbackBehavior&& value) { SetFallbackBehavior(std::move(value)); return *this;}
185 
186 
200  inline const ForwardedIPPosition& GetPosition() const{ return m_position; }
201 
215  inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
216 
230  inline void SetPosition(const ForwardedIPPosition& value) { m_positionHasBeenSet = true; m_position = value; }
231 
245  inline void SetPosition(ForwardedIPPosition&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
246 
260  inline IPSetForwardedIPConfig& WithPosition(const ForwardedIPPosition& value) { SetPosition(value); return *this;}
261 
275  inline IPSetForwardedIPConfig& WithPosition(ForwardedIPPosition&& value) { SetPosition(std::move(value)); return *this;}
276 
277  private:
278 
279  Aws::String m_headerName;
280  bool m_headerNameHasBeenSet;
281 
282  FallbackBehavior m_fallbackBehavior;
283  bool m_fallbackBehaviorHasBeenSet;
284 
285  ForwardedIPPosition m_position;
286  bool m_positionHasBeenSet;
287  };
288 
289 } // namespace Model
290 } // namespace WAFV2
291 } // namespace Aws
Aws::WAFV2::Model::IPSetForwardedIPConfig::GetHeaderName
const Aws::String & GetHeaderName() const
Definition: IPSetForwardedIPConfig.h:55
Aws::WAFV2::Model::IPSetForwardedIPConfig::SetPosition
void SetPosition(ForwardedIPPosition &&value)
Definition: IPSetForwardedIPConfig.h:245
Aws::WAFV2::Model::IPSetForwardedIPConfig::WithPosition
IPSetForwardedIPConfig & WithPosition(const ForwardedIPPosition &value)
Definition: IPSetForwardedIPConfig.h:260
Aws::WAFV2::Model::IPSetForwardedIPConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::IPSetForwardedIPConfig::SetFallbackBehavior
void SetFallbackBehavior(const FallbackBehavior &value)
Definition: IPSetForwardedIPConfig.h:148
Aws::WAFV2::Model::IPSetForwardedIPConfig::SetHeaderName
void SetHeaderName(const Aws::String &value)
Definition: IPSetForwardedIPConfig.h:71
Aws::WAFV2::Model::IPSetForwardedIPConfig::SetPosition
void SetPosition(const ForwardedIPPosition &value)
Definition: IPSetForwardedIPConfig.h:230
Aws::WAFV2::Model::IPSetForwardedIPConfig::HeaderNameHasBeenSet
bool HeaderNameHasBeenSet() const
Definition: IPSetForwardedIPConfig.h:63
Aws::WAFV2::Model::IPSetForwardedIPConfig::PositionHasBeenSet
bool PositionHasBeenSet() const
Definition: IPSetForwardedIPConfig.h:215
ForwardedIPPosition.h
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
WAFV2_EXPORTS.h
Aws::WAFV2::Model::IPSetForwardedIPConfig::IPSetForwardedIPConfig
IPSetForwardedIPConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::FallbackBehavior
FallbackBehavior
Definition: FallbackBehavior.h:17
Aws::WAFV2::Model::IPSetForwardedIPConfig::WithPosition
IPSetForwardedIPConfig & WithPosition(ForwardedIPPosition &&value)
Definition: IPSetForwardedIPConfig.h:275
Aws::WAFV2::Model::IPSetForwardedIPConfig::FallbackBehaviorHasBeenSet
bool FallbackBehaviorHasBeenSet() const
Definition: IPSetForwardedIPConfig.h:136
Aws::WAFV2::Model::IPSetForwardedIPConfig::SetHeaderName
void SetHeaderName(Aws::String &&value)
Definition: IPSetForwardedIPConfig.h:79
Aws::WAFV2::Model::IPSetForwardedIPConfig::WithFallbackBehavior
IPSetForwardedIPConfig & WithFallbackBehavior(const FallbackBehavior &value)
Definition: IPSetForwardedIPConfig.h:172
Aws::WAFV2::Model::IPSetForwardedIPConfig::WithHeaderName
IPSetForwardedIPConfig & WithHeaderName(Aws::String &&value)
Definition: IPSetForwardedIPConfig.h:103
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::WAFV2::Model::IPSetForwardedIPConfig::GetPosition
const ForwardedIPPosition & GetPosition() const
Definition: IPSetForwardedIPConfig.h:200
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::ForwardedIPPosition
ForwardedIPPosition
Definition: ForwardedIPPosition.h:17
Aws::WAFV2::Model::IPSetForwardedIPConfig::operator=
IPSetForwardedIPConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
FallbackBehavior.h
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::IPSetForwardedIPConfig::WithHeaderName
IPSetForwardedIPConfig & WithHeaderName(const char *value)
Definition: IPSetForwardedIPConfig.h:111
Aws::WAFV2::Model::IPSetForwardedIPConfig::WithFallbackBehavior
IPSetForwardedIPConfig & WithFallbackBehavior(FallbackBehavior &&value)
Definition: IPSetForwardedIPConfig.h:184
Aws::WAFV2::Model::IPSetForwardedIPConfig::WithHeaderName
IPSetForwardedIPConfig & WithHeaderName(const Aws::String &value)
Definition: IPSetForwardedIPConfig.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::IPSetForwardedIPConfig
Definition: IPSetForwardedIPConfig.h:41
Aws::WAFV2::Model::IPSetForwardedIPConfig::SetFallbackBehavior
void SetFallbackBehavior(FallbackBehavior &&value)
Definition: IPSetForwardedIPConfig.h:160
Aws::WAFV2::Model::IPSetForwardedIPConfig::IPSetForwardedIPConfig
IPSetForwardedIPConfig()
Aws::WAFV2::Model::IPSetForwardedIPConfig::GetFallbackBehavior
const FallbackBehavior & GetFallbackBehavior() const
Definition: IPSetForwardedIPConfig.h:124
Aws::WAFV2::Model::IPSetForwardedIPConfig::SetHeaderName
void SetHeaderName(const char *value)
Definition: IPSetForwardedIPConfig.h:87