AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
IpSet.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/globalaccelerator/model/IpAddressFamily.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GlobalAccelerator
24{
25namespace Model
26{
27
34 class IpSet
35 {
36 public:
37 AWS_GLOBALACCELERATOR_API IpSet() = default;
38 AWS_GLOBALACCELERATOR_API IpSet(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GLOBALACCELERATOR_API IpSet& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<Aws::String>& GetIpAddresses() const { return m_ipAddresses; }
49 inline bool IpAddressesHasBeenSet() const { return m_ipAddressesHasBeenSet; }
50 template<typename IpAddressesT = Aws::Vector<Aws::String>>
51 void SetIpAddresses(IpAddressesT&& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses = std::forward<IpAddressesT>(value); }
52 template<typename IpAddressesT = Aws::Vector<Aws::String>>
53 IpSet& WithIpAddresses(IpAddressesT&& value) { SetIpAddresses(std::forward<IpAddressesT>(value)); return *this;}
54 template<typename IpAddressesT = Aws::String>
55 IpSet& AddIpAddresses(IpAddressesT&& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses.emplace_back(std::forward<IpAddressesT>(value)); return *this; }
57
59
62 inline IpAddressFamily GetIpAddressFamily() const { return m_ipAddressFamily; }
63 inline bool IpAddressFamilyHasBeenSet() const { return m_ipAddressFamilyHasBeenSet; }
64 inline void SetIpAddressFamily(IpAddressFamily value) { m_ipAddressFamilyHasBeenSet = true; m_ipAddressFamily = value; }
65 inline IpSet& WithIpAddressFamily(IpAddressFamily value) { SetIpAddressFamily(value); return *this;}
67 private:
68
69 Aws::Vector<Aws::String> m_ipAddresses;
70 bool m_ipAddressesHasBeenSet = false;
71
73 bool m_ipAddressFamilyHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace GlobalAccelerator
78} // namespace Aws
IpSet & WithIpAddresses(IpAddressesT &&value)
Definition IpSet.h:53
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLOBALACCELERATOR_API IpSet(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API IpSet & operator=(Aws::Utils::Json::JsonView jsonValue)
IpAddressFamily GetIpAddressFamily() const
Definition IpSet.h:62
void SetIpAddressFamily(IpAddressFamily value)
Definition IpSet.h:64
AWS_GLOBALACCELERATOR_API IpSet()=default
bool IpAddressFamilyHasBeenSet() const
Definition IpSet.h:63
IpSet & WithIpAddressFamily(IpAddressFamily value)
Definition IpSet.h:65
IpSet & AddIpAddresses(IpAddressesT &&value)
Definition IpSet.h:55
const Aws::Vector< Aws::String > & GetIpAddresses() const
Definition IpSet.h:48
void SetIpAddresses(IpAddressesT &&value)
Definition IpSet.h:51
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue