AWS SDK for C++  1.9.107
AWS SDK for C++
IPSetReferenceStatement.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 
40  {
41  public:
46 
47 
52  inline const Aws::String& GetARN() const{ return m_aRN; }
53 
58  inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
59 
64  inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
65 
70  inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
71 
76  inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
77 
82  inline IPSetReferenceStatement& WithARN(const Aws::String& value) { SetARN(value); return *this;}
83 
88  inline IPSetReferenceStatement& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
89 
94  inline IPSetReferenceStatement& WithARN(const char* value) { SetARN(value); return *this;}
95 
96 
104  inline const IPSetForwardedIPConfig& GetIPSetForwardedIPConfig() const{ return m_iPSetForwardedIPConfig; }
105 
113  inline bool IPSetForwardedIPConfigHasBeenSet() const { return m_iPSetForwardedIPConfigHasBeenSet; }
114 
122  inline void SetIPSetForwardedIPConfig(const IPSetForwardedIPConfig& value) { m_iPSetForwardedIPConfigHasBeenSet = true; m_iPSetForwardedIPConfig = value; }
123 
131  inline void SetIPSetForwardedIPConfig(IPSetForwardedIPConfig&& value) { m_iPSetForwardedIPConfigHasBeenSet = true; m_iPSetForwardedIPConfig = std::move(value); }
132 
140  inline IPSetReferenceStatement& WithIPSetForwardedIPConfig(const IPSetForwardedIPConfig& value) { SetIPSetForwardedIPConfig(value); return *this;}
141 
149  inline IPSetReferenceStatement& WithIPSetForwardedIPConfig(IPSetForwardedIPConfig&& value) { SetIPSetForwardedIPConfig(std::move(value)); return *this;}
150 
151  private:
152 
153  Aws::String m_aRN;
154  bool m_aRNHasBeenSet;
155 
156  IPSetForwardedIPConfig m_iPSetForwardedIPConfig;
157  bool m_iPSetForwardedIPConfigHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace WAFV2
162 } // namespace Aws
Aws::WAFV2::Model::IPSetReferenceStatement::ARNHasBeenSet
bool ARNHasBeenSet() const
Definition: IPSetReferenceStatement.h:58
Aws::WAFV2::Model::IPSetReferenceStatement::WithIPSetForwardedIPConfig
IPSetReferenceStatement & WithIPSetForwardedIPConfig(const IPSetForwardedIPConfig &value)
Definition: IPSetReferenceStatement.h:140
Aws::WAFV2::Model::IPSetReferenceStatement::SetIPSetForwardedIPConfig
void SetIPSetForwardedIPConfig(const IPSetForwardedIPConfig &value)
Definition: IPSetReferenceStatement.h:122
IPSetForwardedIPConfig.h
Aws::WAFV2::Model::IPSetReferenceStatement::SetARN
void SetARN(Aws::String &&value)
Definition: IPSetReferenceStatement.h:70
Aws::WAFV2::Model::IPSetReferenceStatement::GetIPSetForwardedIPConfig
const IPSetForwardedIPConfig & GetIPSetForwardedIPConfig() const
Definition: IPSetReferenceStatement.h:104
Aws::WAFV2::Model::IPSetReferenceStatement::WithARN
IPSetReferenceStatement & WithARN(const Aws::String &value)
Definition: IPSetReferenceStatement.h:82
Aws::WAFV2::Model::IPSetReferenceStatement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::IPSetReferenceStatement::SetARN
void SetARN(const char *value)
Definition: IPSetReferenceStatement.h:76
WAFV2_EXPORTS.h
Aws::WAFV2::Model::IPSetReferenceStatement::IPSetReferenceStatement
IPSetReferenceStatement(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::IPSetReferenceStatement::IPSetReferenceStatement
IPSetReferenceStatement()
Aws::WAFV2::Model::IPSetReferenceStatement::SetIPSetForwardedIPConfig
void SetIPSetForwardedIPConfig(IPSetForwardedIPConfig &&value)
Definition: IPSetReferenceStatement.h:131
Aws::WAFV2::Model::IPSetReferenceStatement::IPSetForwardedIPConfigHasBeenSet
bool IPSetForwardedIPConfigHasBeenSet() const
Definition: IPSetReferenceStatement.h:113
Aws::WAFV2::Model::IPSetReferenceStatement::WithARN
IPSetReferenceStatement & WithARN(const char *value)
Definition: IPSetReferenceStatement.h:94
Aws::WAFV2::Model::IPSetReferenceStatement::WithARN
IPSetReferenceStatement & WithARN(Aws::String &&value)
Definition: IPSetReferenceStatement.h:88
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::IPSetReferenceStatement::SetARN
void SetARN(const Aws::String &value)
Definition: IPSetReferenceStatement.h:64
Aws::WAFV2::Model::IPSetReferenceStatement::WithIPSetForwardedIPConfig
IPSetReferenceStatement & WithIPSetForwardedIPConfig(IPSetForwardedIPConfig &&value)
Definition: IPSetReferenceStatement.h:149
Aws::WAFV2::Model::IPSetReferenceStatement::GetARN
const Aws::String & GetARN() const
Definition: IPSetReferenceStatement.h:52
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::IPSetForwardedIPConfig
Definition: IPSetForwardedIPConfig.h:41
Aws::WAFV2::Model::IPSetReferenceStatement::operator=
IPSetReferenceStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::IPSetReferenceStatement
Definition: IPSetReferenceStatement.h:40