AWS SDK for C++  1.9.153
AWS SDK for C++
RateBasedStatementManagedKeysIPSet.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 
35  {
36  public:
41 
42 
47  inline const IPAddressVersion& GetIPAddressVersion() const{ return m_iPAddressVersion; }
48 
53  inline bool IPAddressVersionHasBeenSet() const { return m_iPAddressVersionHasBeenSet; }
54 
59  inline void SetIPAddressVersion(const IPAddressVersion& value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = value; }
60 
65  inline void SetIPAddressVersion(IPAddressVersion&& value) { m_iPAddressVersionHasBeenSet = true; m_iPAddressVersion = std::move(value); }
66 
71  inline RateBasedStatementManagedKeysIPSet& WithIPAddressVersion(const IPAddressVersion& value) { SetIPAddressVersion(value); return *this;}
72 
77  inline RateBasedStatementManagedKeysIPSet& WithIPAddressVersion(IPAddressVersion&& value) { SetIPAddressVersion(std::move(value)); return *this;}
78 
79 
83  inline const Aws::Vector<Aws::String>& GetAddresses() const{ return m_addresses; }
84 
88  inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
89 
93  inline void SetAddresses(const Aws::Vector<Aws::String>& value) { m_addressesHasBeenSet = true; m_addresses = value; }
94 
98  inline void SetAddresses(Aws::Vector<Aws::String>&& value) { m_addressesHasBeenSet = true; m_addresses = std::move(value); }
99 
103  inline RateBasedStatementManagedKeysIPSet& WithAddresses(const Aws::Vector<Aws::String>& value) { SetAddresses(value); return *this;}
104 
108  inline RateBasedStatementManagedKeysIPSet& WithAddresses(Aws::Vector<Aws::String>&& value) { SetAddresses(std::move(value)); return *this;}
109 
113  inline RateBasedStatementManagedKeysIPSet& AddAddresses(const Aws::String& value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
114 
118  inline RateBasedStatementManagedKeysIPSet& AddAddresses(Aws::String&& value) { m_addressesHasBeenSet = true; m_addresses.push_back(std::move(value)); return *this; }
119 
123  inline RateBasedStatementManagedKeysIPSet& AddAddresses(const char* value) { m_addressesHasBeenSet = true; m_addresses.push_back(value); return *this; }
124 
125  private:
126 
127  IPAddressVersion m_iPAddressVersion;
128  bool m_iPAddressVersionHasBeenSet;
129 
130  Aws::Vector<Aws::String> m_addresses;
131  bool m_addressesHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace WAFV2
136 } // namespace Aws
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::GetIPAddressVersion
const IPAddressVersion & GetIPAddressVersion() const
Definition: RateBasedStatementManagedKeysIPSet.h:47
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::WithIPAddressVersion
RateBasedStatementManagedKeysIPSet & WithIPAddressVersion(const IPAddressVersion &value)
Definition: RateBasedStatementManagedKeysIPSet.h:71
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::WithAddresses
RateBasedStatementManagedKeysIPSet & WithAddresses(Aws::Vector< Aws::String > &&value)
Definition: RateBasedStatementManagedKeysIPSet.h:108
IPAddressVersion.h
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::IPAddressVersionHasBeenSet
bool IPAddressVersionHasBeenSet() const
Definition: RateBasedStatementManagedKeysIPSet.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
AWSVector.h
WAFV2_EXPORTS.h
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::RateBasedStatementManagedKeysIPSet
RateBasedStatementManagedKeysIPSet()
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::AddressesHasBeenSet
bool AddressesHasBeenSet() const
Definition: RateBasedStatementManagedKeysIPSet.h:88
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::AddAddresses
RateBasedStatementManagedKeysIPSet & AddAddresses(const char *value)
Definition: RateBasedStatementManagedKeysIPSet.h:123
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::SetAddresses
void SetAddresses(Aws::Vector< Aws::String > &&value)
Definition: RateBasedStatementManagedKeysIPSet.h:98
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::WithAddresses
RateBasedStatementManagedKeysIPSet & WithAddresses(const Aws::Vector< Aws::String > &value)
Definition: RateBasedStatementManagedKeysIPSet.h:103
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::WithIPAddressVersion
RateBasedStatementManagedKeysIPSet & WithIPAddressVersion(IPAddressVersion &&value)
Definition: RateBasedStatementManagedKeysIPSet.h:77
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::GetAddresses
const Aws::Vector< Aws::String > & GetAddresses() const
Definition: RateBasedStatementManagedKeysIPSet.h:83
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::SetIPAddressVersion
void SetIPAddressVersion(const IPAddressVersion &value)
Definition: RateBasedStatementManagedKeysIPSet.h:59
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::operator=
RateBasedStatementManagedKeysIPSet & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::AddAddresses
RateBasedStatementManagedKeysIPSet & AddAddresses(const Aws::String &value)
Definition: RateBasedStatementManagedKeysIPSet.h:113
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet
Definition: RateBasedStatementManagedKeysIPSet.h:35
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::SetAddresses
void SetAddresses(const Aws::Vector< Aws::String > &value)
Definition: RateBasedStatementManagedKeysIPSet.h:93
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::WAFV2::Model::IPAddressVersion
IPAddressVersion
Definition: IPAddressVersion.h:17
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::RateBasedStatementManagedKeysIPSet::RateBasedStatementManagedKeysIPSet
RateBasedStatementManagedKeysIPSet(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::AddAddresses
RateBasedStatementManagedKeysIPSet & AddAddresses(Aws::String &&value)
Definition: RateBasedStatementManagedKeysIPSet.h:118
Aws::WAFV2::Model::RateBasedStatementManagedKeysIPSet::SetIPAddressVersion
void SetIPAddressVersion(IPAddressVersion &&value)
Definition: RateBasedStatementManagedKeysIPSet.h:65